package com.example.henzoshimada.feeltrip;

import java.util.ArrayList;

import io.searchbox.annotations.JestId;

/**
 * Created by Esus2 on 2017-03-20.
 */

public class Participant {
    private String userName;
    private String password;
    private ArrayList<String> followers;
    private ArrayList<String> following;

    @JestId
    private String id;

    public Participant(){
        this.userName = null;
        this.password = null;
        this.followers = new ArrayList<>();
        this.following = new ArrayList<>();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void addFollowing(String nameWantToFollow){
        this.following.add(nameWantToFollow);
    }

    public void addFollower(String followerName){
        followers.add(followerName);
    }

    public ArrayList<String> getFollowers() {
        return followers;
    }

    public ArrayList<String> getFollowing() {
        return following;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}

@@ -268,27 +268,31 @@
 ring%3E follow
-ers
+Request
 ;%0A    privat
@@ -464,19 +464,23 @@
 s.follow
-ers
+Request
  = new A
@@ -985,18 +985,23 @@
 ddFollow
-er
+Request
 (String 
@@ -1029,19 +1029,23 @@
   follow
-ers
+Request
 .add(fol
@@ -1055,32 +1055,218 @@
 erName);%0A    %7D%0A%0A
+    public void deleteFollowRequest(String nameWantToDelete)%7B%0A        if (followRequest.contains(nameWantToDelete))%7B%0A            followRequest.remove(nameWantToDelete);%0A        %7D%0A    %7D%0A%0A
     public Array
@@ -1287,19 +1287,23 @@
 etFollow
-ers
+Request
 () %7B%0A   
@@ -1324,11 +1324,15 @@
 llow
-ers
+Request
 ;%0A  

change participant class