Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. -----------------------------------id.co.ams_plantation.plantationsocialmedia.Image.java-----------------------------------
  2.  
  3. package id.co.ams_plantation.plantationsocialmedia;
  4.  
  5. import com.google.gson.annotations.Expose;
  6. import com.google.gson.annotations.SerializedName;
  7.  
  8. public class Image {
  9.  
  10. @SerializedName("file_name")
  11. @Expose
  12. private String fileName;
  13. @SerializedName("file_size")
  14. @Expose
  15. private Double fileSize;
  16. @SerializedName("mime_type")
  17. @Expose
  18. private Double mimeType;
  19.  
  20. public String getFileName() {
  21. return fileName;
  22. }
  23.  
  24. public void setFileName(String fileName) {
  25. this.fileName = fileName;
  26. }
  27.  
  28. public Double getFileSize() {
  29. return fileSize;
  30. }
  31.  
  32. public void setFileSize(Double fileSize) {
  33. this.fileSize = fileSize;
  34. }
  35.  
  36. public Double getMimeType() {
  37. return mimeType;
  38. }
  39.  
  40. public void setMimeType(Double mimeType) {
  41. this.mimeType = mimeType;
  42. }
  43.  
  44. }
  45. -----------------------------------id.co.ams_plantation.plantationsocialmedia.Post.java-----------------------------------
  46.  
  47. package id.co.ams_plantation.plantationsocialmedia;
  48.  
  49. import com.google.gson.annotations.Expose;
  50. import com.google.gson.annotations.SerializedName;
  51.  
  52. public class Post {
  53.  
  54. @SerializedName("category_id")
  55. @Expose
  56. private Integer categoryId;
  57. @SerializedName("visibility_id")
  58. @Expose
  59. private Integer visibilityId;
  60. @SerializedName("userId")
  61. @Expose
  62. private Integer userId;
  63. @SerializedName("priority")
  64. @Expose
  65. private String priority;
  66. @SerializedName("detailRemarks")
  67. @Expose
  68. private String detailRemarks;
  69. @SerializedName("openDate")
  70. @Expose
  71. private Integer openDate;
  72. @SerializedName("isOnLocation")
  73. @Expose
  74. private String isOnLocation;
  75. @SerializedName("image")
  76. @Expose
  77. private Image image;
  78.  
  79. public Integer getCategoryId() {
  80. return categoryId;
  81. }
  82.  
  83. public void setCategoryId(Integer categoryId) {
  84. this.categoryId = categoryId;
  85. }
  86.  
  87. public Integer getVisibilityId() {
  88. return visibilityId;
  89. }
  90.  
  91. public void setVisibilityId(Integer visibilityId) {
  92. this.visibilityId = visibilityId;
  93. }
  94.  
  95. public Integer getUserId() {
  96. return userId;
  97. }
  98.  
  99. public void setUserId(Integer userId) {
  100. this.userId = userId;
  101. }
  102.  
  103. public String getPriority() {
  104. return priority;
  105. }
  106.  
  107. public void setPriority(String priority) {
  108. this.priority = priority;
  109. }
  110.  
  111. public String getDetailRemarks() {
  112. return detailRemarks;
  113. }
  114.  
  115. public void setDetailRemarks(String detailRemarks) {
  116. this.detailRemarks = detailRemarks;
  117. }
  118.  
  119. public Integer getOpenDate() {
  120. return openDate;
  121. }
  122.  
  123. public void setOpenDate(Integer openDate) {
  124. this.openDate = openDate;
  125. }
  126.  
  127. public String getIsOnLocation() {
  128. return isOnLocation;
  129. }
  130.  
  131. public void setIsOnLocation(String isOnLocation) {
  132. this.isOnLocation = isOnLocation;
  133. }
  134.  
  135. public Image getImage() {
  136. return image;
  137. }
  138.  
  139. public void setImage(Image image) {
  140. this.image = image;
  141. }
  142.  
  143. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement