| package com.dayu.henanlibrary.model; | 
|   | 
| import androidx.lifecycle.LiveData; | 
|   | 
| import com.dayu.baselibrary.activity.BaseActivity; | 
| import com.dayu.henanlibrary.activity.HNBaseActivity; | 
| import com.dayu.henanlibrary.dao.RechargeDao; | 
| import com.dayu.henanlibrary.dbBean.RechargeBean; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * Created by Android Studio. | 
|  * author: zuo | 
|  * Date: 2023-11-23 | 
|  * Time: 9:06 | 
|  * 备注:充值记录的mode | 
|  */ | 
| public class RechargeListModel { | 
|     LiveData<List<RechargeBean>> rechargeList; | 
|     RechargeDao rechargeDao; | 
|   | 
|     public RechargeListModel(HNBaseActivity baseActivity) { | 
|         rechargeDao = baseActivity.asynchBaseDao.rechargeDao(); | 
|     } | 
|   | 
|     public LiveData<List<RechargeBean>> getAllRechargeList() { | 
|         rechargeList = rechargeDao.findAll(); | 
|         return rechargeList; | 
|     } | 
|   | 
|     public LiveData<List<RechargeBean>> getRechargeList(long beginTime, long endTime) { | 
|         rechargeList = rechargeDao.findByTime(beginTime,endTime); | 
|         return rechargeList; | 
|     } | 
|   | 
|     public void setRechargeList(LiveData<List<RechargeBean>> rechargeList) { | 
|         this.rechargeList = rechargeList; | 
|     } | 
| } |