Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. -----------------------------------id.co.ams_plantation.plantationsocialmedia.Image.java-----------------------------------
  2.  
  3. package id.co.ams_plantation.plantationsocialmedia;
  4.  
  5. import java.util.HashMap;
  6. import java.util.Map;
  7.  
  8. public class Image {
  9.  
  10. private String fileName;
  11. private Double fileSize;
  12. private Double mimeType;
  13. private Map<String, Object> additionalProperties = new HashMap<String, Object>();
  14.  
  15. /**
  16. * No args constructor for use in serialization
  17. *
  18. */
  19. public Image() {
  20. }
  21.  
  22. /**
  23. *
  24. * @param fileSize
  25. * @param fileName
  26. * @param mimeType
  27. */
  28. public Image(String fileName, Double fileSize, Double mimeType) {
  29. super();
  30. this.fileName = fileName;
  31. this.fileSize = fileSize;
  32. this.mimeType = mimeType;
  33. }
  34.  
  35. public String getFileName() {
  36. return fileName;
  37. }
  38.  
  39. public void setFileName(String fileName) {
  40. this.fileName = fileName;
  41. }
  42.  
  43. public Double getFileSize() {
  44. return fileSize;
  45. }
  46.  
  47. public void setFileSize(Double fileSize) {
  48. this.fileSize = fileSize;
  49. }
  50.  
  51. public Double getMimeType() {
  52. return mimeType;
  53. }
  54.  
  55. public void setMimeType(Double mimeType) {
  56. this.mimeType = mimeType;
  57. }
  58.  
  59. public Map<String, Object> getAdditionalProperties() {
  60. return this.additionalProperties;
  61. }
  62.  
  63. public void setAdditionalProperty(String name, Object value) {
  64. this.additionalProperties.put(name, value);
  65. }
  66.  
  67. }
  68. -----------------------------------id.co.ams_plantation.plantationsocialmedia.Post.java-----------------------------------
  69.  
  70. package id.co.ams_plantation.plantationsocialmedia;
  71.  
  72. import java.util.HashMap;
  73. import java.util.Map;
  74.  
  75. public class Post {
  76.  
  77. private Integer categoryId;
  78. private Integer visibilityId;
  79. private Integer userId;
  80. private String priority;
  81. private String detailRemarks;
  82. private Integer openDate;
  83. private String isOnLocation;
  84. private Image image;
  85. private Map<String, Object> additionalProperties = new HashMap<String, Object>();
  86.  
  87. /**
  88. * No args constructor for use in serialization
  89. *
  90. */
  91. public Post() {
  92. }
  93.  
  94. /**
  95. *
  96. * @param visibilityId
  97. * @param priority
  98. * @param userId
  99. * @param categoryId
  100. * @param image
  101. * @param isOnLocation
  102. * @param openDate
  103. * @param detailRemarks
  104. */
  105. public Post(Integer categoryId, Integer visibilityId, Integer userId, String priority, String detailRemarks, Integer openDate, String isOnLocation, Image image) {
  106. super();
  107. this.categoryId = categoryId;
  108. this.visibilityId = visibilityId;
  109. this.userId = userId;
  110. this.priority = priority;
  111. this.detailRemarks = detailRemarks;
  112. this.openDate = openDate;
  113. this.isOnLocation = isOnLocation;
  114. this.image = image;
  115. }
  116.  
  117. public Integer getCategoryId() {
  118. return categoryId;
  119. }
  120.  
  121. public void setCategoryId(Integer categoryId) {
  122. this.categoryId = categoryId;
  123. }
  124.  
  125. public Integer getVisibilityId() {
  126. return visibilityId;
  127. }
  128.  
  129. public void setVisibilityId(Integer visibilityId) {
  130. this.visibilityId = visibilityId;
  131. }
  132.  
  133. public Integer getUserId() {
  134. return userId;
  135. }
  136.  
  137. public void setUserId(Integer userId) {
  138. this.userId = userId;
  139. }
  140.  
  141. public String getPriority() {
  142. return priority;
  143. }
  144.  
  145. public void setPriority(String priority) {
  146. this.priority = priority;
  147. }
  148.  
  149. public String getDetailRemarks() {
  150. return detailRemarks;
  151. }
  152.  
  153. public void setDetailRemarks(String detailRemarks) {
  154. this.detailRemarks = detailRemarks;
  155. }
  156.  
  157. public Integer getOpenDate() {
  158. return openDate;
  159. }
  160.  
  161. public void setOpenDate(Integer openDate) {
  162. this.openDate = openDate;
  163. }
  164.  
  165. public String getIsOnLocation() {
  166. return isOnLocation;
  167. }
  168.  
  169. public void setIsOnLocation(String isOnLocation) {
  170. this.isOnLocation = isOnLocation;
  171. }
  172.  
  173. public Image getImage() {
  174. return image;
  175. }
  176.  
  177. public void setImage(Image image) {
  178. this.image = image;
  179. }
  180.  
  181. public Map<String, Object> getAdditionalProperties() {
  182. return this.additionalProperties;
  183. }
  184.  
  185. public void setAdditionalProperty(String name, Object value) {
  186. this.additionalProperties.put(name, value);
  187. }
  188.  
  189. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement