| | |
| | | import io.reactivex.Observable; |
| | | |
| | | /** |
| | | * @purpose Created by Runt (qingingrunt2010@qq.com) on 2022/8/9. |
| | | * @purpose Created by Runt (qingingrunt2010@qq.com) on 2020-9-17. |
| | | */ |
| | | public class PageViewModels { |
| | | public static class HomeViewModel extends LoadPageViewModel<Results.Message> { |
| | |
| | | return commonApi.getMsgList(page,SIZE); |
| | | } |
| | | } |
| | | |
| | | public static class CoinRecordViewModel extends LoadPageViewModel<Results.CustomCoin>{ |
| | | @Override |
| | | public Observable<HttpApiResult<PageResult<Results.CustomCoin>>> request(int page, Object... objects) { |
| | | return commonApi.getCoinRecord(page,SIZE,(int)objects[0]); |
| | | } |
| | | } |
| | | } |