Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------id.co.ams_plantation.plantationsocialmedia.Image.java-----------------------------------
- package id.co.ams_plantation.plantationsocialmedia;
- import java.util.HashMap;
- import java.util.Map;
- public class Image {
- private String fileName;
- private Double fileSize;
- private Double mimeType;
- private Map<String, Object> additionalProperties = new HashMap<String, Object>();
- /**
- * No args constructor for use in serialization
- *
- */
- public Image() {
- }
- /**
- *
- * @param fileSize
- * @param fileName
- * @param mimeType
- */
- public Image(String fileName, Double fileSize, Double mimeType) {
- super();
- this.fileName = fileName;
- this.fileSize = fileSize;
- this.mimeType = mimeType;
- }
- public String getFileName() {
- return fileName;
- }
- public void setFileName(String fileName) {
- this.fileName = fileName;
- }
- public Double getFileSize() {
- return fileSize;
- }
- public void setFileSize(Double fileSize) {
- this.fileSize = fileSize;
- }
- public Double getMimeType() {
- return mimeType;
- }
- public void setMimeType(Double mimeType) {
- this.mimeType = mimeType;
- }
- public Map<String, Object> getAdditionalProperties() {
- return this.additionalProperties;
- }
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
- }
- -----------------------------------id.co.ams_plantation.plantationsocialmedia.Post.java-----------------------------------
- package id.co.ams_plantation.plantationsocialmedia;
- import java.util.HashMap;
- import java.util.Map;
- public class Post {
- private Integer categoryId;
- private Integer visibilityId;
- private Integer userId;
- private String priority;
- private String detailRemarks;
- private Integer openDate;
- private String isOnLocation;
- private Image image;
- private Map<String, Object> additionalProperties = new HashMap<String, Object>();
- /**
- * No args constructor for use in serialization
- *
- */
- public Post() {
- }
- /**
- *
- * @param visibilityId
- * @param priority
- * @param userId
- * @param categoryId
- * @param image
- * @param isOnLocation
- * @param openDate
- * @param detailRemarks
- */
- public Post(Integer categoryId, Integer visibilityId, Integer userId, String priority, String detailRemarks, Integer openDate, String isOnLocation, Image image) {
- super();
- this.categoryId = categoryId;
- this.visibilityId = visibilityId;
- this.userId = userId;
- this.priority = priority;
- this.detailRemarks = detailRemarks;
- this.openDate = openDate;
- this.isOnLocation = isOnLocation;
- this.image = image;
- }
- public Integer getCategoryId() {
- return categoryId;
- }
- public void setCategoryId(Integer categoryId) {
- this.categoryId = categoryId;
- }
- public Integer getVisibilityId() {
- return visibilityId;
- }
- public void setVisibilityId(Integer visibilityId) {
- this.visibilityId = visibilityId;
- }
- public Integer getUserId() {
- return userId;
- }
- public void setUserId(Integer userId) {
- this.userId = userId;
- }
- public String getPriority() {
- return priority;
- }
- public void setPriority(String priority) {
- this.priority = priority;
- }
- public String getDetailRemarks() {
- return detailRemarks;
- }
- public void setDetailRemarks(String detailRemarks) {
- this.detailRemarks = detailRemarks;
- }
- public Integer getOpenDate() {
- return openDate;
- }
- public void setOpenDate(Integer openDate) {
- this.openDate = openDate;
- }
- public String getIsOnLocation() {
- return isOnLocation;
- }
- public void setIsOnLocation(String isOnLocation) {
- this.isOnLocation = isOnLocation;
- }
- public Image getImage() {
- return image;
- }
- public void setImage(Image image) {
- this.image = image;
- }
- public Map<String, Object> getAdditionalProperties() {
- return this.additionalProperties;
- }
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement