diff --git a/src/main/java/org/ntlab/nemophila/models/accounts/FriendManager.java b/src/main/java/org/ntlab/nemophila/models/accounts/FriendManager.java index fa6e0eb..3c48b91 100644 --- a/src/main/java/org/ntlab/nemophila/models/accounts/FriendManager.java +++ b/src/main/java/org/ntlab/nemophila/models/accounts/FriendManager.java @@ -6,6 +6,7 @@ public class FriendManager { private HashSet friends = new HashSet<>(); private ArrayList requesting = new ArrayList<>(); + private ArrayList requested = new ArrayList<>(); public void addFriend(Account friend) {} @@ -15,7 +16,12 @@ public void removeFriend(Account friend) {} - public void addRequesting(Account to) {} + public void addRequesting(Account to) { + + + requesting.add(to); + + } public ArrayList getRequesting() { return requesting; @@ -23,4 +29,17 @@ public void removeRequesting(Account to) {} + public void addRequested(Account from) { + + + requesting.add(from); + + } + + public ArrayList getRequested() { + return requesting; + } + + public void removeRequested(Account from) {} + }