diff --git a/app/src/main/java/com/example/nemophila/entities/Post.java b/app/src/main/java/com/example/nemophila/entities/Post.java index fc17f1d..b97d9be 100644 --- a/app/src/main/java/com/example/nemophila/entities/Post.java +++ b/app/src/main/java/com/example/nemophila/entities/Post.java @@ -1,30 +1,29 @@ package com.example.nemophila.entities; public class Post { - private String id; + private String pid; + private String uid; + private String name; private String genre; - private String image1; - private String image2; - private String image3; + private String date; private int rate; private String comment; - private Account owner; //Getter - public String getId() { - return id; + public String getPid() { + return pid; + } + public String getUid() { + return uid; + } + public String getName() { + return name; } public String getGenre() { return genre; } - public String getImage1() { - return image1; - } - public String getImage2() { - return image2; - } - public String getImage3() { - return image3; + public String getDate() { + return date; } public int getRate() { return rate; @@ -32,25 +31,22 @@ public String getComment() { return comment; } - public Account getOwner() { - return owner; - } //Setter - public void setId(String id) { - this.id = id; + public void setPid(String pid) { + this.pid = pid; + } + public void setUid(String uid) { + this.uid = uid; + } + public void setName(String name) { + this.name = name; } 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 setDate(String date) { + this.date = date; } public void setRate(int rate) { this.rate = rate; @@ -58,7 +54,9 @@ public void setComment(String comment) { this.comment = comment; } - public void setOwner(Account owner) { - this.owner = owner; - } + +// public Post(PostJson pj) { +// this.pid = pj.getId(); +// this.uid = pj.getOwner() +// } }