package org.cnodejs.android.md.model.entity;

import com.google.gson.annotations.SerializedName;

import org.joda.time.DateTime;

import java.util.List;

public class User {

    @SerializedName("loginname")
    private String loginName;

    @SerializedName("avatar_url")
    private String avatarUrl;

    private String githubUsername;

    @SerializedName("create_at")
    private DateTime createAt;

    private int score;

    @SerializedName("recent_topics")
    private List<TopicSimple> recentTopics;

    @SerializedName("recent_replies")
    private List<TopicSimple> recentReplies;

    @SerializedName("collect_topics")
    private List<TopicSimple> collectTopics;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getGithubUsername() {
        return githubUsername;
    }

    public void setGithubUsername(String githubUsername) {
        this.githubUsername = githubUsername;
    }

    public DateTime getCreateAt() {
        return createAt;
    }

    public void setCreateAt(DateTime createAt) {
        this.createAt = createAt;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public List<TopicSimple> getRecentTopics() {
        return recentTopics;
    }

    public void setRecentTopics(List<TopicSimple> recentTopics) {
        this.recentTopics = recentTopics;
    }

    public List<TopicSimple> getRecentReplies() {
        return recentReplies;
    }

    public void setRecentReplies(List<TopicSimple> recentReplies) {
        this.recentReplies = recentReplies;
    }

    public List<TopicSimple> getCollectTopics() {
        return collectTopics;
    }

    public void setCollectTopics(List<TopicSimple> collectTopics) {
        this.collectTopics = collectTopics;
    }

}

@@ -119,24 +119,52 @@
 .DateTime;%0A%0A
+import java.util.ArrayList;%0A
 import java.
@@ -1566,33 +1566,100 @@
 urn recentTopics
-;
+ == null ? new ArrayList%3CTopicSimple%3E() : recentTopics; // TODO %E9%98%B2%E6%AD%A2%E4%B8%BA%E7%A9%BA
 %0A    %7D%0A%0A    publ
@@ -1835,33 +1835,101 @@
 rn recentReplies
-;
+ == null ? new ArrayList%3CTopicSimple%3E() : recentReplies; // TODO %E9%98%B2%E6%AD%A2%E4%B8%BA%E7%A9%BA
 %0A    %7D%0A%0A    publ
@@ -2109,33 +2109,101 @@
 rn collectTopics
-;
+ == null ? new ArrayList%3CTopicSimple%3E() : collectTopics; // TODO %E9%98%B2%E6%AD%A2%E4%B8%BA%E7%A9%BA
 %0A    %7D%0A%0A    publ

修复用户数据获取三种话题的时候，返回空数据而报错（具体点在用户数据更新上，收藏话题为空）