package com.partynetwork.dataprovider.json.struct;
import com.partynetwork.dataprovider.json.CommonRequest;
import com.partynetwork.dataprovider.json.CommonResponse;
public class Public_setPraiseRequest extends CommonRequest {
public Public_setPraiseRequest() {
this._requestAction = "Review/setPraise";
}
// 赞的对象类别(见附表2)
// iParty
// i分享
// 相册
// 照片
private int type;
// 赞的对象具体Id
private int id;
// 操作用户id
private int userId;
/**
* @return type
*/
public int getType() {
return type;
}
/**
* @param type
* 要设置的 type
*/
public void setType(int type) {
this.type = type;
}
/**
* @return id
*/
public int getId() {
return id;
}
/**
* @param id
* 要设置的 id
*/
public void setId(int id) {
this.id = id;
}
/**
* @return userId
*/
public int getUserId() {
return userId;
}
/**
* @param userId
* 要设置的 userId
*/
public void setUserId(int userId) {
this.userId = userId;
}
@Override
public String getJson(CommonRequest request) {
return gson.toJson((Public_setPraiseRequest) request);
}
@Override
public CommonResponse getObject(String paramStream) {
return gson.fromJson(paramStream, Public_setPraiseResponse.class);
}
}