package weiboclient4j.model;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
 * @author Hover Ruan
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class UnreadCount {
    // V1 fields, TODO remove these fields
    private int comments;
    private int followers;
    private int newStatus;
    private int mentions;

    // V2 fields
    private int dm;
    private int status;
    private int follower;
    private int cmt;
    private int mentionStatus;
    private int mentionCmt;
    private int group;
    private int privateGroup;
    private int notice;
    private int invite;
    private int badge;
    private int photo;

    public int getComments() {
        return comments;
    }

    public void setComments(int comments) {
        this.comments = comments;
    }

    public int getFollowers() {
        return followers;
    }

    public void setFollowers(int followers) {
        this.followers = followers;
    }

    public int getNewStatus() {
        return newStatus;
    }

    public void setNewStatus(int newStatus) {
        this.newStatus = newStatus;
    }

    public int getDm() {
        return dm;
    }

    public void setDm(int dm) {
        this.dm = dm;
    }

    public int getMentions() {
        return mentions;
    }

    public void setMentions(int mentions) {
        this.mentions = mentions;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getFollower() {
        return follower;
    }

    public void setFollower(int follower) {
        this.follower = follower;
    }

    public int getCmt() {
        return cmt;
    }

    public void setCmt(int cmt) {
        this.cmt = cmt;
    }

    public int getMentionStatus() {
        return mentionStatus;
    }

    public void setMentionStatus(int mentionStatus) {
        this.mentionStatus = mentionStatus;
    }

    public int getMentionCmt() {
        return mentionCmt;
    }

    public void setMentionCmt(int mentionCmt) {
        this.mentionCmt = mentionCmt;
    }

    public int getGroup() {
        return group;
    }

    public void setGroup(int group) {
        this.group = group;
    }

    public int getPrivateGroup() {
        return privateGroup;
    }

    public void setPrivateGroup(int privateGroup) {
        this.privateGroup = privateGroup;
    }

    public int getNotice() {
        return notice;
    }

    public void setNotice(int notice) {
        this.notice = notice;
    }

    public int getInvite() {
        return invite;
    }

    public void setInvite(int invite) {
        this.invite = invite;
    }

    public int getBadge() {
        return badge;
    }

    public void setBadge(int badge) {
        this.badge = badge;
    }

    public int getPhoto() {
        return photo;
    }

    public void setPhoto(int photo) {
        this.photo = photo;
    }
}

@@ -187,157 +187,8 @@
 nt %7B
-%0A    // V1 fields, TODO remove these fields%0A    private int comments;%0A    private int followers;%0A    private int newStatus;%0A    private int mentions;
 %0A%0A  
@@ -503,716 +503,136 @@
 to;%0A
-%0A
     p
-ublic int getComments() %7B%0A        return comments;%0A    %7D%0A%0A    public void setComments(int comments) %7B%0A        this.comments = comments;%0A    %7D%0A%0A    public int getFollowers() %7B%0A        return followers;%0A    %7D%0A%0A    public void setFollowers(int followers) %7B%0A        this.followers = followers;%0A    %7D%0A%0A    public int getNewStatus() %7B%0A        return newStatus;%0A    %7D%0A%0A    public void setNewStatus(int newStatus) %7B%0A        this.newStatus = newStatus;%0A    %7D%0A%0A    public int getDm() %7B%0A        return dm;%0A    %7D%0A%0A    public void setDm(int dm) %7B%0A        this.dm = dm;%0A    %7D%0A%0A    public int getMentions() %7B%0A        return mentions;%0A    %7D%0A%0A    public void setMentions(int mentions) %7B%0A        this.mentions = mentions
+rivate int msgbox;%0A%0A    public int getDm() %7B%0A        return dm;%0A    %7D%0A%0A    public void setDm(int dm) %7B%0A        this.dm = dm
 ;%0A  
@@ -2208,11 +2208,147 @@
 o;%0A    %7D
+%0A%0A    public int getMsgbox() %7B%0A        return msgbox;%0A    %7D%0A%0A    public void setMsgbox(int msgbox) %7B%0A        this.msgbox = msgbox;%0A    %7D
 %0A%7D%0A

Remove v1 fields