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.

46 lines
1.1 KiB

package com.community.pocket.ui.main.ui.forum.news;
import androidx.annotation.StringRes;
import com.community.pocket.R;
import com.community.pocket.data.model.Forum;
import com.community.pocket.data.model.Page;
import com.community.pocket.ui.main.ui.share.Response;
import com.community.pocket.util.CustomMessage;
import org.jetbrains.annotations.NotNull;
/**
* 最新帖子响应实体
*/
public class ForumNewResponse extends Response<ForumNewResponse.Msg> {
private Page<Forum> forumList;
enum Msg implements CustomMessage {
ok(R.string.load_forum_new_ok),
ok_empty(R.string.no_more_forum),
ok_more(R.string.load_more_forum_ok),
fail(R.string.load_forum_new_fail);
private Integer msg;
Msg(@StringRes Integer msg) {
this.msg = msg;
}
@NotNull
@Override
public Integer getMsg() {
return msg;
}
}
Page<Forum> getForumList() {
return forumList;
}
public void setForumList(Page<Forum> forumList) {
this.forumList = forumList;
}
}