diff --git a/src/main/java/org/ntlab/nemophila/models/accounts/Post.java b/src/main/java/org/ntlab/nemophila/models/accounts/Post.java index 30c36f6..a9fe581 100644 --- a/src/main/java/org/ntlab/nemophila/models/accounts/Post.java +++ b/src/main/java/org/ntlab/nemophila/models/accounts/Post.java @@ -1,4 +1,71 @@ package org.ntlab.nemophila.models.accounts; +import com.fasterxml.jackson.annotation.JsonProperty; + public class Post { -} + @JsonProperty("id") + private String id; + @JsonProperty("genre") + private String genre; + @JsonProperty("image1") + private String image1; + @JsonProperty("image2") + private String image2; + @JsonProperty("image3") + private String image3; + @JsonProperty("rate") + private int rate; + @JsonProperty("comment") + private String comment; + @JsonProperty("sid") + private String sid; + + //Getter + public String getId() { + return id; + } + public String getGenre() { + return genre; + } + public String getImage1() { + return image1; + } + public String getImage2() { + return image2; + } + public String getImage3() { + return image3; + } + public int getRate() { + return rate; + } + public String getComment() { + return comment; + } + public String getSid() { + return sid; + } + + //Setter + public void setId(String id) { + this.id = id; + } + public void setGenre(String genre) { + this.genre = genre; + } + public void setImage1(String image1) { + this.image1 = image1; + } + public void setImage2(String image2) { + this.image2 = image2; + } + public void setImage3(String image3) { + this.image3 = image3; + } + public void setRate(int rate) { + this.rate = rate; + } + public void setComment(String comment) { + this.comment = comment; + } + } \ No newline at end of file