package com.google.sps.Objects;

import java.util.ArrayList;

public final class Group {

  private final ArrayList<User> members;
  private final ArrayList<Challenge> challenges;
  private final ArrayList<Post> posts;
  private final Poll poll;
  private final String groupName;
  private final String headerImg;
  private final long timestamp;

  public Group(ArrayList<User> members, ArrayList<Challenge> challenges, ArrayList<Post> posts, 
      Poll poll, String groupName, String headerImg, long timestamp) {
    this.members = members;
    this.challenges = challenges;
    this.posts = posts;
    this.poll = poll;
    this.groupName = groupName;
    this.headerImg = headerImg;
    this.timestamp = timestamp;
  }

  public ArrayList<User> getMembers() {
    return members;
  }

  public ArrayList<Challenge> challenges() {
    return challenges;
  }

  public ArrayList<Post> getPosts() {
    return posts;
  }

  public Poll getPoll() {
    return poll;
  }

  public String getGroupName() {
    return groupName;
  }

  public String getHeaderImg() {
    return headerImg;
  }

  public long getTimestamp() {
    return timestamp;
  }

  public void addChallenge(Challenge newChallenge) {
    this.challenges.add(newChallenge);
  }

  public void addMember(User newMember) {
    this.members.add(newMember);
  }

  public void addPost(Post newPost) {
    this.posts.add(newPost);
  }
}

 

@@ -310,40 +310,8 @@
 Img;
-%0A  private final long timestamp;
 %0A%0A  
@@ -460,24 +460,8 @@
 rImg
-, long timestamp
 ) %7B%0A
@@ -636,40 +636,8 @@
 mg;%0A
-    this.timestamp = timestamp;%0A
   %7D%0A
@@ -1008,66 +1008,8 @@
  %7D%0A%0A
-  public long getTimestamp() %7B%0A    return timestamp;%0A  %7D%0A%0A
   pu
@@ -1256,9 +1256,6 @@
   %7D%0A
+
 %7D%0A
-%0A %0A

Remove timestamp from Group object