package com.application.zhangshi_app_android.ui.function;
|
|
import android.app.Application;
|
|
import androidx.annotation.NonNull;
|
import androidx.lifecycle.MutableLiveData;
|
|
import com.android.app_base.base.viewmodel.BaseViewModel;
|
import com.application.zhangshi_app_android.bean.PropertyBean;
|
import com.application.zhangshi_app_android.bean.TourismExperienceBean;
|
import com.application.zhangshi_app_android.data.DataRepository;
|
|
import java.util.List;
|
|
/**
|
* @author Ljj
|
* @date 2023.05.08. 20:28
|
* @desc 旅游经历 ViewModel
|
*/
|
public class TourismExperienceActivityViewModel extends BaseViewModel<DataRepository> {
|
private MutableLiveData<List<TourismExperienceBean>> dataListLiveData;
|
public TourismExperienceActivityViewModel(@NonNull Application application) {
|
super(application);
|
}
|
|
@Override
|
protected DataRepository initModel() {
|
return DataRepository.getInstance();
|
}
|
|
/**
|
* 获取旅游经历数据
|
*/
|
public void getTourismExperienceData() {
|
}
|
|
public MutableLiveData<List<TourismExperienceBean>> getDataListLiveData() {
|
if (dataListLiveData == null) {
|
dataListLiveData = new MutableLiveData<>();
|
}
|
return dataListLiveData;
|
}
|
|
public void setDataListLiveData(MutableLiveData<List<TourismExperienceBean>> dataListLiveData) {
|
this.dataListLiveData = dataListLiveData;
|
}
|
}
|