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;

    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;
    }
}

@@ -426,24 +426,78 @@
 updatedAt;%0A%0A
+    @SerializedName(%22user%22)%0A    protected User user;%0A%0A
     public i
@@ -1367,11 +1367,137 @@
 t;%0A    %7D
+%0A%0A    public User getUser() %7B%0A        return user;%0A    %7D%0A%0A    public void setUser(User user) %7B%0A        this.user = user;%0A    %7D
 %0A%7D%0A

add user to topic element