You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
863 B
29 lines
863 B
package com.community.pocket.ui.main.ui.forum.my;
|
|
|
|
import androidx.lifecycle.MutableLiveData;
|
|
|
|
import com.community.pocket.data.main.forum.ForumMyRequest;
|
|
import com.community.pocket.ui.main.ui.forum.FormLoad;
|
|
import com.community.pocket.ui.main.ui.share.BaseViewModel;
|
|
|
|
//我的帖子UI数据管理
|
|
public class ForumMyViewModel extends BaseViewModel<ForumMyRequest> implements FormLoad {
|
|
|
|
//我的帖子请求状态
|
|
private MutableLiveData<ForumMyResponse> forumMyResponse = new MutableLiveData<>();
|
|
|
|
MutableLiveData<ForumMyResponse> getForumMyResponse() {
|
|
return forumMyResponse;
|
|
}
|
|
|
|
|
|
@Override
|
|
protected ForumMyRequest getRequest() {
|
|
return ForumMyRequest.getInstance();
|
|
}
|
|
|
|
@Override
|
|
public void loadForumNew(Long page, String title) {
|
|
getRequest().loadForumMy(forumMyResponse, page, title);
|
|
}
|
|
}
|
|
|