diff --git a/src/main/java/com/example/cosmos_serversb/entities/Group.java b/src/main/java/com/example/cosmos_serversb/entities/Group.java index b1d1dcb..8ef2dee 100644 --- a/src/main/java/com/example/cosmos_serversb/entities/Group.java +++ b/src/main/java/com/example/cosmos_serversb/entities/Group.java @@ -2,12 +2,14 @@ package com.example.cosmos_serversb.entities; import java.util.ArrayList; +import java.util.Set; public class Group { private String gId; private String uri, name; private ArrayList members; - private ArrayList requests; + //private ArrayList requests; + private Set requests; public Group(){ @@ -51,6 +53,23 @@ return name; } + public Set getRequests(){ + return requests; + } + + public void setRequests(Set requests){ + this.requests = requests; + } + + public void addRequests(Request request){ + requests.add(request); + } + + public ArrayList getRequestsList(){ + ArrayList list = new ArrayList(getRequests()); + return list; + } + /*メンバー*/ //public ArrayList getMembersList(){ // return null;