package org.phphub.app.api.entity.element;

import com.google.gson.annotations.SerializedName;

public class Topic {
    protected int id;

    protected String title;

    @SerializedName("user_id")
    protected int userId;

    @SerializedName("is_excellent")
    protected boolean isExcellent;

    @SerializedName("reply_count")
    protected int replyCount;

    @SerializedName("updated_at")
    protected SupportDate updatedAt;

    @SerializedName("user")
    protected UserInfo userInfo;

    public class UserInfo {
        User data;

        public User getData() {
            return data;
        }

        public void setData(User data) {
            this.data = data;
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public boolean isExcellent() {
        return isExcellent;
    }

    public void setIsExcellent(boolean isExcellent) {
        this.isExcellent = isExcellent;
    }

    public int getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(int replyCount) {
        this.replyCount = replyCount;
    }

    public SupportDate getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(SupportDate updatedAt) {
        this.updatedAt = updatedAt;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
}

@@ -492,16 +492,94 @@
 rInfo;%0A%0A
+    @SerializedName(%22last_reply_user%22)%0A    protected UserInfo lastReplyUser;%0A%0A
     publ
@@ -766,32 +766,298 @@
        %7D%0A    %7D%0A%0A
+    @SerializedName(%22node%22)%0A    protected NodeInfo nodeInfo;%0A%0A    public class NodeInfo %7B%0A        Node data;%0A%0A        public Node getData() %7B%0A            return data;%0A        %7D%0A%0A        public void setData(Node data) %7B%0A            this.data = data;%0A        %7D%0A    %7D%0A%0A
     public int g
@@ -2081,11 +2081,357 @@
 o;%0A    %7D
+%0A%0A    public UserInfo getLastReplyUser() %7B%0A        return lastReplyUser;%0A    %7D%0A%0A    public void setLastReplyUser(UserInfo lastReplyUser) %7B%0A        this.lastReplyUser = lastReplyUser;%0A    %7D%0A%0A    public NodeInfo getNodeInfo() %7B%0A        return nodeInfo;%0A    %7D%0A%0A    public void setNodeInfo(NodeInfo nodeInfo) %7B%0A        this.nodeInfo = nodeInfo;%0A    %7D
 %0A%7D%0A

change topic type