package com.partynetwork.dataprovider.json.struct; import com.partynetwork.dataprovider.json.CommonRequest; import com.partynetwork.dataprovider.json.CommonResponse; public class Comment_getCommentRequest extends CommonRequest { public Comment_getCommentRequest() { this._requestAction = "Review/getComment"; } // 见附表1 // 0 party活动评论 // 1 choose主题评论 // 2 分享主题评论 // 3 相册评论 // 4 照片评论 private int type; // 具体内容的Id:当type为0时,id则为party活动的id;当type为1时,id则为choose主题的id... private int contentId; // 当前显示页码 private int pageNumber; // 每页的数据数量 private int pageSize; // 最后一条数据的id private int lastId; /** * @return type */ public int getType() { return type; } /** * @param type * 要设置的 type */ public void setType(int type) { this.type = type; } /** * @return contentId */ public int getContentId() { return contentId; } /** * @param contentId * 要设置的 contentId */ public void setContentId(int contentId) { this.contentId = contentId; } /** * @return pageNumber */ public int getPageNumber() { return pageNumber; } /** * @param pageNumber * 要设置的 pageNumber */ public void setPageNumber(int pageNumber) { this.pageNumber = pageNumber; } /** * @return pageSize */ public int getPageSize() { return pageSize; } /** * @param pageSize * 要设置的 pageSize */ public void setPageSize(int pageSize) { this.pageSize = pageSize; } /** * @return lastId */ public int getLastId() { return lastId; } /** * @param lastId * 要设置的 lastId */ public void setLastId(int lastId) { this.lastId = lastId; } @Override public String getJson(CommonRequest request) { return gson.toJson((Comment_getCommentRequest)request); } @Override public CommonResponse getObject(String paramStream) { return gson.fromJson(paramStream, Comment_getCommentResponse.class); } }