package com.application.zhangshi_app_android.ui.function; import static com.android.app_base.base.BaseConfig.CODE_SUCCESS; import android.app.Application; import androidx.annotation.NonNull; import androidx.databinding.DataBindingUtil; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModelProvider; import com.android.app_base.http.ResultData; import com.android.app_base.manager.AppManager; import com.android.app_base.utils.RxUtils; import com.android.app_base.utils.ToastUtils; import com.android.app_base.base.viewmodel.BaseViewModel; import com.application.zhangshi_app_android.R; import com.application.zhangshi_app_android.bean.FamilyMemorabiliaBean; import com.application.zhangshi_app_android.bean.GrowthExperienceBean; import com.application.zhangshi_app_android.data.DataRepository; import java.util.List; import io.reactivex.Observer; import io.reactivex.disposables.Disposable; /** * @author Gss * @date 2023.03.31. 21:33 * @desc 成长经历 viewModel */ public class GrowthExperienceActivityViewModel extends BaseViewModel { private MutableLiveData beanMutableLiveData; private MutableLiveData> checkListLiveData; private MutableLiveData> dataListLiveData; private MutableLiveData stringMutableLiveData; public GrowthExperienceActivityViewModel(@NonNull Application application) { super(application); } @Override protected DataRepository initModel() { return DataRepository.getInstance(); } @Override public void onCreate(@NonNull LifecycleOwner owner) { super.onCreate(owner); GrowthExperienceActivityViewModel viewModel=new ViewModelProvider(this).get(GrowthExperienceActivityViewModel.class); DataBindingUtil.setContentView(this, R.layout.activity_growth_experience).setViewModel(viewModel); } }