Comments.java 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. package club.thepenguins.android.data;
  2. import com.google.gson.annotations.Expose;
  3. import com.google.gson.annotations.SerializedName;
  4. import java.util.List;
  5. public class Comments {
  6. @SerializedName("id")
  7. @Expose
  8. private Integer id;
  9. @SerializedName("post")
  10. @Expose
  11. private Integer post;
  12. @SerializedName("parent")
  13. @Expose
  14. private Integer parent;
  15. @SerializedName("author")
  16. @Expose
  17. private Integer author;
  18. @SerializedName("author_name")
  19. @Expose
  20. private String authorName;
  21. @SerializedName("author_url")
  22. @Expose
  23. private String authorUrl;
  24. @SerializedName("date")
  25. @Expose
  26. private String date;
  27. @SerializedName("date_gmt")
  28. @Expose
  29. private String dateGmt;
  30. @SerializedName("content")
  31. @Expose
  32. private Content content;
  33. @SerializedName("link")
  34. @Expose
  35. private String link;
  36. @SerializedName("status")
  37. @Expose
  38. private String status;
  39. @SerializedName("type")
  40. @Expose
  41. private String type;
  42. @SerializedName("author_avatar_urls")
  43. @Expose
  44. private AuthorAvatarUrls authorAvatarUrls;
  45. @SerializedName("meta")
  46. @Expose
  47. private List<Object> meta = null;
  48. @SerializedName("_links")
  49. @Expose
  50. private Links links;
  51. public Integer getId() {
  52. return id;
  53. }
  54. public void setId(Integer id) {
  55. this.id = id;
  56. }
  57. public Integer getPost() {
  58. return post;
  59. }
  60. public void setPost(Integer post) {
  61. this.post = post;
  62. }
  63. public Integer getParent() {
  64. return parent;
  65. }
  66. public void setParent(Integer parent) {
  67. this.parent = parent;
  68. }
  69. public Integer getAuthor() {
  70. return author;
  71. }
  72. public void setAuthor(Integer author) {
  73. this.author = author;
  74. }
  75. public String getAuthorName() {
  76. return authorName;
  77. }
  78. public void setAuthorName(String authorName) {
  79. this.authorName = authorName;
  80. }
  81. public String getAuthorUrl() {
  82. return authorUrl;
  83. }
  84. public void setAuthorUrl(String authorUrl) {
  85. this.authorUrl = authorUrl;
  86. }
  87. public String getDate() {
  88. return date;
  89. }
  90. public void setDate(String date) {
  91. this.date = date;
  92. }
  93. public String getDateGmt() {
  94. return dateGmt;
  95. }
  96. public void setDateGmt(String dateGmt) {
  97. this.dateGmt = dateGmt;
  98. }
  99. public Content getContent() {
  100. return content;
  101. }
  102. public void setContent(Content content) {
  103. this.content = content;
  104. }
  105. public String getLink() {
  106. return link;
  107. }
  108. public void setLink(String link) {
  109. this.link = link;
  110. }
  111. public String getStatus() {
  112. return status;
  113. }
  114. public void setStatus(String status) {
  115. this.status = status;
  116. }
  117. public String getType() {
  118. return type;
  119. }
  120. public void setType(String type) {
  121. this.type = type;
  122. }
  123. public AuthorAvatarUrls getAuthorAvatarUrls() {
  124. return authorAvatarUrls;
  125. }
  126. public void setAuthorAvatarUrls(AuthorAvatarUrls authorAvatarUrls) {
  127. this.authorAvatarUrls = authorAvatarUrls;
  128. }
  129. public List<Object> getMeta() {
  130. return meta;
  131. }
  132. public void setMeta(List<Object> meta) {
  133. this.meta = meta;
  134. }
  135. public Links getLinks() {
  136. return links;
  137. }
  138. public void setLinks(Links links) {
  139. this.links = links;
  140. }
  141. public class Author {
  142. @SerializedName("embeddable")
  143. @Expose
  144. private Boolean embeddable;
  145. @SerializedName("href")
  146. @Expose
  147. private String href;
  148. public Boolean getEmbeddable() {
  149. return embeddable;
  150. }
  151. public void setEmbeddable(Boolean embeddable) {
  152. this.embeddable = embeddable;
  153. }
  154. public String getHref() {
  155. return href;
  156. }
  157. public void setHref(String href) {
  158. this.href = href;
  159. }
  160. }
  161. public class AuthorAvatarUrls {
  162. @SerializedName("24")
  163. @Expose
  164. private String _24;
  165. @SerializedName("48")
  166. @Expose
  167. private String _48;
  168. @SerializedName("96")
  169. @Expose
  170. private String _96;
  171. public String get24() {
  172. return _24;
  173. }
  174. public void set24(String _24) {
  175. this._24 = _24;
  176. }
  177. public String get48() {
  178. return _48;
  179. }
  180. public void set48(String _48) {
  181. this._48 = _48;
  182. }
  183. public String get96() {
  184. return _96;
  185. }
  186. public void set96(String _96) {
  187. this._96 = _96;
  188. }
  189. }
  190. public class Collection {
  191. @SerializedName("href")
  192. @Expose
  193. private String href;
  194. public String getHref() {
  195. return href;
  196. }
  197. public void setHref(String href) {
  198. this.href = href;
  199. }
  200. }
  201. public class Content {
  202. @SerializedName("rendered")
  203. @Expose
  204. private String rendered;
  205. public String getRendered() {
  206. return rendered;
  207. }
  208. public void setRendered(String rendered) {
  209. this.rendered = rendered;
  210. }
  211. }
  212. public class Links {
  213. @SerializedName("self")
  214. @Expose
  215. private List<Self> self = null;
  216. @SerializedName("collection")
  217. @Expose
  218. private List<Collection> collection = null;
  219. @SerializedName("author")
  220. @Expose
  221. private List<Author> author = null;
  222. @SerializedName("up")
  223. @Expose
  224. private List<Up> up = null;
  225. public List<Self> getSelf() {
  226. return self;
  227. }
  228. public void setSelf(List<Self> self) {
  229. this.self = self;
  230. }
  231. public List<Collection> getCollection() {
  232. return collection;
  233. }
  234. public void setCollection(List<Collection> collection) {
  235. this.collection = collection;
  236. }
  237. public List<Author> getAuthor() {
  238. return author;
  239. }
  240. public void setAuthor(List<Author> author) {
  241. this.author = author;
  242. }
  243. public List<Up> getUp() {
  244. return up;
  245. }
  246. public void setUp(List<Up> up) {
  247. this.up = up;
  248. }
  249. }
  250. public class Self {
  251. @SerializedName("href")
  252. @Expose
  253. private String href;
  254. public String getHref() {
  255. return href;
  256. }
  257. public void setHref(String href) {
  258. this.href = href;
  259. }
  260. }
  261. public class Up {
  262. @SerializedName("embeddable")
  263. @Expose
  264. private Boolean embeddable;
  265. @SerializedName("post_type")
  266. @Expose
  267. private String postType;
  268. @SerializedName("href")
  269. @Expose
  270. private String href;
  271. public Boolean getEmbeddable() {
  272. return embeddable;
  273. }
  274. public void setEmbeddable(Boolean embeddable) {
  275. this.embeddable = embeddable;
  276. }
  277. public String getPostType() {
  278. return postType;
  279. }
  280. public void setPostType(String postType) {
  281. this.postType = postType;
  282. }
  283. public String getHref() {
  284. return href;
  285. }
  286. public void setHref(String href) {
  287. this.href = href;
  288. }
  289. }
  290. }