package com.partynetwork.dataprovider.json.struct; import com.partynetwork.dataprovider.json.CommonRequest; import com.partynetwork.dataprovider.json.CommonResponse; public class Comment_setCommentRequest extends CommonRequest { public Comment_setCommentRequest() { this._requestAction = "Review/setComment"; } // 见附表1 party活动评论 // choose主题评论 // 分享主题评论 // 相册评论 // 照片评论 private int type; // 具体内容的Id:当type为0时,id则为party活动的id;当type为1时,id则为choose主题的id... private int contentId; // 用户编号 private int userId; // 评论内容 private String commentMessage; // 评论地点 private String commentPlace; // 经度 private float commentLongitude; // 纬度 private float commentLatitude; /** * @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 userId */ public int getUserId() { return userId; } /** * @param userId 要设置的 userId */ public void setUserId(int userId) { this.userId = userId; } /** * @return commentMessage */ public String getCommentMessage() { return commentMessage; } /** * @param commentMessage 要设置的 commentMessage */ public void setCommentMessage(String commentMessage) { this.commentMessage = commentMessage; } /** * @return commentPlace */ public String getCommentPlace() { return commentPlace; } /** * @param commentPlace 要设置的 commentPlace */ public void setCommentPlace(String commentPlace) { this.commentPlace = commentPlace; } /** * @return commentLongitude */ public float getCommentLongitude() { return commentLongitude; } /** * @param commentLongitude 要设置的 commentLongitude */ public void setCommentLongitude(float commentLongitude) { this.commentLongitude = commentLongitude; } /** * @return commentLatitude */ public float getCommentLatitude() { return commentLatitude; } /** * @param commentLatitude 要设置的 commentLatitude */ public void setCommentLatitude(float commentLatitude) { this.commentLatitude = commentLatitude; } @Override public String getJson(CommonRequest request) { return gson.toJson((Comment_setCommentRequest)request); } @Override public CommonResponse getObject(String paramStream) { return gson.fromJson(paramStream, Comment_setCommentResponse.class); } }