PageRenderTime 62ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/vo/media/NewsMediaDetail.java

https://gitlab.com/hackbuteer59/wechat-mp-sdk
Java | 96 lines | 68 code | 24 blank | 4 comment | 0 complexity | fa5e546a1806ad51277932b5806a2f54 MD5 | raw file
  1. package org.usc.wechat.mp.sdk.vo.media;
  2. import org.usc.wechat.mp.sdk.vo.AbstractToStringBuilder;
  3. import com.alibaba.fastjson.annotation.JSONField;
  4. /**
  5. *
  6. * @author Shunli
  7. */
  8. public class NewsMediaDetail extends AbstractToStringBuilder {
  9. @JSONField(name = "thumb_media_id")
  10. private String thumbMediaId;
  11. @JSONField(name = "title")
  12. private String title;
  13. @JSONField(name = "content")
  14. private String content;
  15. @JSONField(name = "author")
  16. private String author;
  17. @JSONField(name = "content_source_url")
  18. private String contentSourceUrl;
  19. @JSONField(name = "digest")
  20. private String digest;
  21. public NewsMediaDetail() {
  22. }
  23. public NewsMediaDetail(String thumbMediaId, String title, String content) {
  24. this.thumbMediaId = thumbMediaId;
  25. this.title = title;
  26. this.content = content;
  27. }
  28. public NewsMediaDetail(String thumbMediaId, String title, String content, String author, String contentSourceUrl, String digest) {
  29. this.thumbMediaId = thumbMediaId;
  30. this.title = title;
  31. this.content = content;
  32. this.author = author;
  33. this.contentSourceUrl = contentSourceUrl;
  34. this.digest = digest;
  35. }
  36. public String getThumbMediaId() {
  37. return thumbMediaId;
  38. }
  39. public void setThumbMediaId(String thumbMediaId) {
  40. this.thumbMediaId = thumbMediaId;
  41. }
  42. public String getTitle() {
  43. return title;
  44. }
  45. public void setTitle(String title) {
  46. this.title = title;
  47. }
  48. public String getContent() {
  49. return content;
  50. }
  51. public void setContent(String content) {
  52. this.content = content;
  53. }
  54. public String getAuthor() {
  55. return author;
  56. }
  57. public void setAuthor(String author) {
  58. this.author = author;
  59. }
  60. public String getContentSourceUrl() {
  61. return contentSourceUrl;
  62. }
  63. public void setContentSourceUrl(String contentSourceUrl) {
  64. this.contentSourceUrl = contentSourceUrl;
  65. }
  66. public String getDigest() {
  67. return digest;
  68. }
  69. public void setDigest(String digest) {
  70. this.digest = digest;
  71. }
  72. }