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.CleanStorageBean;
|
import com.application.zhangshi_app_android.bean.PropertyBean;
|
import com.application.zhangshi_app_android.data.DataRepository;
|
|
/**
|
* @author Ljj
|
* @date 2023.04.21. 21:16
|
* @desc
|
*/
|
public class PropertyDetailActivityViewModel extends BaseViewModel<DataRepository> {
|
|
private MutableLiveData<PropertyBean> beanLiveData;
|
|
public PropertyDetailActivityViewModel(@NonNull Application application) {
|
super(application);
|
}
|
|
@Override
|
protected DataRepository initModel() {
|
return DataRepository.getInstance();
|
}
|
|
|
public MutableLiveData<PropertyBean> getBeanLiveData() {
|
if (beanLiveData == null) {
|
beanLiveData = new MutableLiveData<>();
|
}
|
return beanLiveData;
|
}
|
|
public void setBeanLiveData(MutableLiveData<PropertyBean> beanLiveData) {
|
this.beanLiveData = beanLiveData;
|
}
|
}
|