提交 1610a41c 编写于 作者: 小傅哥's avatar 小傅哥

feat:从知识星球接口转换过来的对象

上级 2647f2e6
package cn.bugstack.xfg.dev.tech.job.model;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
@Data
public class Group{
@SerializedName("group_id")
private long groupId;
@SerializedName("background_url")
private String backgroundUrl;
@SerializedName("name")
private String name;
@SerializedName("type")
private String type;
}
\ No newline at end of file
package cn.bugstack.xfg.dev.tech.job.model;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
@Data
public class Owner{
@SerializedName("avatar_url")
private String avatarUrl;
@SerializedName("user_id")
private long userId;
@SerializedName("name")
private String name;
@SerializedName("location")
private String location;
}
\ No newline at end of file
package cn.bugstack.xfg.dev.tech.job.model;
import java.util.List;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
@Data
public class RespData{
@SerializedName("topics")
private List<TopicsItem> topics;
}
\ No newline at end of file
package cn.bugstack.xfg.dev.tech.job.model;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
@Data
public class Response{
@SerializedName("resp_data")
private RespData respData;
@SerializedName("succeeded")
private boolean succeeded;
}
\ No newline at end of file
package cn.bugstack.xfg.dev.tech.job.model;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
@Data
public class ShowCommentsItem{
@SerializedName("owner")
private Owner owner;
@SerializedName("likes_count")
private int likesCount;
@SerializedName("create_time")
private String createTime;
@SerializedName("rewards_count")
private int rewardsCount;
@SerializedName("sticky")
private boolean sticky;
@SerializedName("text")
private String text;
@SerializedName("comment_id")
private long commentId;
}
\ No newline at end of file
package cn.bugstack.xfg.dev.tech.job.model;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
@Data
public class Talk{
@SerializedName("owner")
private Owner owner;
@SerializedName("text")
private String text;
}
\ No newline at end of file
package cn.bugstack.xfg.dev.tech.job.model;
import java.util.List;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
@Data
public class TopicsItem{
@SerializedName("reading_count")
private int readingCount;
@SerializedName("create_time")
private String createTime;
@SerializedName("user_specific")
private UserSpecific userSpecific;
@SerializedName("rewards_count")
private int rewardsCount;
@SerializedName("show_comments")
private List<ShowCommentsItem> showComments;
@SerializedName("type")
private String type;
@SerializedName("digested")
private boolean digested;
@SerializedName("likes_count")
private int likesCount;
@SerializedName("comments_count")
private int commentsCount;
@SerializedName("sticky")
private boolean sticky;
@SerializedName("talk")
private Talk talk;
@SerializedName("topic_id")
private long topicId;
@SerializedName("readers_count")
private int readersCount;
@SerializedName("group")
private Group group;
}
\ No newline at end of file
package cn.bugstack.xfg.dev.tech.job.model;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
@Data
public class UserSpecific{
@SerializedName("subscribed")
private boolean subscribed;
@SerializedName("liked")
private boolean liked;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册