package com.google.sps.data;


public final class Post{

    private final User author;
    private final String postText;
    private final ArrayList<Comment> comments;
    private final String challengeName;
    private final long timestamp;
    private final String img;
    private final ArrayList<User> likes;


    public Post(User author, String postText, ArrayList<Comment> comments, String challengeName, long timestamp, String img, ArrayList<User> likes) {
        this.timestamp = timestamp;
        this.postText = postText;
        this.author = author;
        this.comments = comments;
        this.challengeName = challengeName;
        this.img = img;
        this.likes = likes;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public String getPostText() {
        return postText;
    }

    public User getAuthor() {
        return author;
    }

    public ArrayList<Comment> getComments() {
        return comments;
    }

    public String getChallengeName() {
        return challengeName;
    }

    public String getImg() {
        return img;
    }

    public ArrayList<User> getLikes() {
        return likes;
    }
}
 

@@ -20,14 +20,45 @@
 sps.
-data;%0A
+Objects;%0A%0Aimport java.util.ArrayList;
 %0A%0Apu
@@ -82,15 +82,14 @@
 Post
+ 
 %7B%0A%0A  
- 
- 
 priv
@@ -111,18 +111,16 @@
 author;%0A
-  
   privat
@@ -144,18 +144,16 @@
 stText;%0A
-  
   privat
@@ -189,18 +189,16 @@
 mments;%0A
-  
   privat
@@ -227,18 +227,16 @@
 geName;%0A
-  
   privat
@@ -257,26 +257,24 @@
 imestamp;%0A  
- 
- 
 private fina
@@ -287,18 +287,16 @@
 ng img;%0A
-  
   privat
@@ -327,19 +327,16 @@
 likes;%0A%0A
-%0A  
   public
@@ -421,16 +421,22 @@
 ngeName,
+%0A     
  long ti
@@ -477,28 +477,24 @@
 r%3E likes) %7B%0A
-    
     this.tim
@@ -513,28 +513,24 @@
 estamp;%0A    
-  
-  
 this.postTex
@@ -543,28 +543,24 @@
 stText;%0A    
-   
- 
 this.author 
@@ -569,28 +569,24 @@
 author;%0A    
-   
- 
 this.comment
@@ -599,20 +599,16 @@
 mments;%0A
-    
     this
@@ -639,20 +639,16 @@
 geName;%0A
-    
     this
@@ -663,20 +663,16 @@
 mg;%0A    
- 
-   
 this.lik
@@ -683,25 +683,21 @@
  likes;%0A
-  
   %7D%0A%0A
-  
   public
@@ -719,28 +719,24 @@
 amp() %7B%0A    
-  
-  
 return times
@@ -741,25 +741,21 @@
 estamp;%0A
-  
   %7D%0A%0A
-  
   public
@@ -778,28 +778,24 @@
 ext() %7B%0A    
-   
- 
 return postT
@@ -799,25 +799,21 @@
 stText;%0A
-  
   %7D%0A%0A
-  
   public
@@ -828,28 +828,24 @@
 tAuthor() %7B%0A
-    
     return a
@@ -851,25 +851,21 @@
 author;%0A
-  
   %7D%0A%0A
-  
   public
@@ -896,28 +896,24 @@
 omments() %7B%0A
-    
     return c
@@ -919,31 +919,27 @@
 comments;%0A  
- 
- 
 %7D%0A%0A
-  
   public Str
@@ -959,28 +959,24 @@
 ngeName() %7B%0A
-    
     return c
@@ -989,25 +989,21 @@
 geName;%0A
-  
   %7D%0A%0A
-  
   public
@@ -1017,28 +1017,24 @@
  getImg() %7B%0A
-    
     return i
@@ -1041,19 +1041,15 @@
 mg;%0A
-  
   %7D%0A%0A  
- 
- 
 publ
@@ -1080,20 +1080,16 @@
 kes() %7B%0A
-    
     retu
@@ -1102,14 +1102,10 @@
 es;%0A
-  
   %7D%0A%7D%0A
- %0A

package change for post