Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DoubanShuoStatusObj.java #6

Open
wants to merge 1 commit into
base: origin
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,47 @@ public class DoubanShuoStatusObj implements IDoubanObject{
@Key("text")
private String text;

@Key("liked")
private boolean liked = false;

@Key("like_count")
private int likeCount = 0;

@Key("object_id")
private String objectId;
@Key("short_title")
private String shortTitle;

@Key("object_kind")
private String objectKind;

@Key("id")
private long id;

@Key("attachments")
private List<DoubanShuoAttachementObj> attachements = new ArrayList<DoubanShuoAttachementObj>();

@Key("category")
private String category;

@Key("virtual_id")
private String virtual_id;

@Key("liked")
private boolean liked = false;
//WTF with this one?
// @Key("can_reply")
// private boolean canReply;
@Key("can_reply")
private int canReply;

// @Key("layout")
// private int layout;
/*@Key("layout")
private int layout;*/

@Key("title")
private String title;

@Key("muted")
private boolean muted = false;

@Key("favorited")
private boolean favorited = false;

@Key("created_at")
private String createdTime;

@Key("target_type")
private String targetType;

@Key("short_title")
private String shortTitle;
/* @Key("object_id")//object_id : "103803"
private String object_id;*/

@Key("comments_count")
private int commentsCount;
Expand All @@ -66,26 +68,40 @@ public class DoubanShuoStatusObj implements IDoubanObject{
@Key("action")
private String action;

@Key("type")
private int type;

@Key("muted")
private boolean muted = false;

@Key("favorited")
private boolean favorited = false;

// @Key("tmpl_ver")
// private int tmplVer;

@Key("type")
private String type;

@Key("source")
private String source;

@Key("user")
private DoubanShuoUserObj user;

@Key("attachments")
private List<DoubanShuoAttachementObj> attachements = new ArrayList<DoubanShuoAttachementObj>();


@Override
public String getObjName() {
return "doubanshuostatus";
}


public String getObjectKind() {
return objectKind;
}

public void setObjectKind(String objectKind) {
this.objectKind = objectKind;
}


/**
* @return the resharedCount
*/
Expand Down Expand Up @@ -142,19 +158,6 @@ public void setLikeCount(int likeCount) {
this.likeCount = likeCount;
}

/**
* @return the objectId
*/
public String getObjectId() {
return objectId;
}

/**
* @param objectId the objectId to set
*/
public void setObjectId(String objectId) {
this.objectId = objectId;
}

/**
* @return the id
Expand Down Expand Up @@ -314,14 +317,14 @@ public void setRenderSuccess(boolean renderSuccess) {
* @return the action
*/
public String getAction() {
return action;
return action.toString();
}

/**
* @param action the action to set
*/
public void setAction(String action) {
this.action = action;
public void setAction(Object action) {
this.action = (String) action;
}

// /**
Expand All @@ -341,14 +344,14 @@ public void setAction(String action) {
/**
* @return the type
*/
public String getType() {
public int getType() {
return type;
}

/**
* @param type the type to set
*/
public void setType(String type) {
public void setType(int type) {
this.type = type;
}

Expand Down Expand Up @@ -407,5 +410,21 @@ public String getSource() {
public void setSource(String source) {
this.source = source;
}

@Override
public String toString() {
return "DoubanShuoStatusObj [resharedCount=" + resharedCount + ", text="
+ text + ", objectKind=" + objectKind + ", liked=" + liked
+ ", likeCount=" + likeCount + ", id="
+ id + ", category=" + category + ", title=" + title + ", muted="
+ muted + ", favorited=" + favorited + ", createdTime="
+ createdTime + ", targetType=" + targetType + ", shortTitle="
+ shortTitle + ", commentsCount=" + commentsCount
+ ", renderSuccess=" + renderSuccess + ", action=" + action
+ ", type=" + type + ", source=" + source + ", user=" + user
+ ", attachements=" + attachements + "]";
}



}