//このクラスは仮です package com.example.cosmos_serversb.entities; import java.util.ArrayList; import static com.example.cosmos_serversb.models.Users.*; public class Group { private String gId, uri, name; private ArrayList<User> members; private ArrayList<Request> requests; private Group(){ } //これはテスト用です。 public Group(String gId, String uri, String name, String uId){ this.gId = gId; this.uri = uri; this.name = name; this.members.add(getUserById(uId)); this.requests = null; } /* public Group(String gId, String uri, String name, String uId){ setGid(gId); setUri(uri); setName(name); this.members.add(getUserById(uId)); this.requests = null; } */ private void setGid(String gId){ this.gId = gId; } public String getGid(){ return gId; } private void setUri(String uri){ this.uri = uri; } public String getUriByGid(String gId){ return uri; } public void setName(String name){ this.name = name; } public String getNameByGid(String gId){ return name; } /*メンバー*/ //public ArrayList<User> getMembersList(){ // return null; //} //public void addMemberByUid(String uId){ // // members.add(user); //} //public DeleteResult deleteMember(String uid){ // members.remove(members.indexOf(uid)); // return null; //} /*リクエスト*/ // }