diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Group.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Group.java new file mode 100644 index 0000000000000000000000000000000000000000..0769fef51c7ac4fcc6be14db810752cfaa73f7ac --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Group.java @@ -0,0 +1,20 @@ +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 diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Owner.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Owner.java new file mode 100644 index 0000000000000000000000000000000000000000..2c2fabaf524ddbb1e6af3b8822576ae098296910 --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Owner.java @@ -0,0 +1,20 @@ +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 diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/RespData.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/RespData.java new file mode 100644 index 0000000000000000000000000000000000000000..ac46be37ce15d62a464296e661ff2a4c7972465e --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/RespData.java @@ -0,0 +1,12 @@ +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 topics; +} \ No newline at end of file diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Response.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Response.java new file mode 100644 index 0000000000000000000000000000000000000000..80fa6e3949dc98ce102e7f462560e99aa75ac2e4 --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Response.java @@ -0,0 +1,14 @@ +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 diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/ShowCommentsItem.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/ShowCommentsItem.java new file mode 100644 index 0000000000000000000000000000000000000000..46cf09d0352e68b4a14f056157c03d86c73ab399 --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/ShowCommentsItem.java @@ -0,0 +1,29 @@ +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 diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Talk.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Talk.java new file mode 100644 index 0000000000000000000000000000000000000000..d959229ac3642adadac9b991c0df1040f8a85b28 --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Talk.java @@ -0,0 +1,14 @@ +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 diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/TopicsItem.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/TopicsItem.java new file mode 100644 index 0000000000000000000000000000000000000000..993d532383338d1c0ec66786f56d3c802b72175e --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/TopicsItem.java @@ -0,0 +1,51 @@ +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 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 diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/UserSpecific.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/UserSpecific.java new file mode 100644 index 0000000000000000000000000000000000000000..224575d799ebe527023626dee469d5821c5d1c6c --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/UserSpecific.java @@ -0,0 +1,14 @@ +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