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 707a8f8..ff277a5 100644 --- a/src/main/java/com/example/cosmos_serversb/entities/Group.java +++ b/src/main/java/com/example/cosmos_serversb/entities/Group.java @@ -1,9 +1,6 @@ package com.example.cosmos_serversb.entities; -import com.sun.imageio.plugins.common.SingleTileRenderedImage; - import java.util.ArrayList; -import com.example.cosmos_serversb.entities.*; //後で岸本君が作ってくれるやつへ移行 enum DeleteResult { @@ -14,7 +11,7 @@ public class Group { private String gId, uri, name; //private ArrayList members; - //private ArrayList requests; + private ArrayList requests; private Group(){ @@ -25,10 +22,10 @@ setGid(gId); setUri(uri); setName(name); - //addMember(uId); + //addMemberByUid(uId); } - public void setGid(String gId){ + private void setGid(String gId){ this.gId = gId; } @@ -36,11 +33,11 @@ return gId; } - public void setUri(String uri){ + private void setUri(String uri){ this.uri = uri; } - public String getUri(){ + public String getUriByGid(String gId){ return uri; } @@ -48,12 +45,18 @@ this.name = name; } - public String getName(){ + public String getNameByGid(String gId){ return name; } - //public void addMember(String uid){ - // members.add(uid); + /*メンバー*/ + //public ArrayList getMembersList(){ + // return null; + //} + + //public void addMemberByUid(String uId){ + // + // members.add(user); //} //public DeleteResult deleteMember(String uid){ @@ -61,14 +64,9 @@ // return null; //} - //public void addRequest(Request request){ - // requests.add(request); - //} + /*リクエスト*/ +// - //public DeleteResult deleteMember(Request request){ - // members.remove(requests.indexOf(request)); - // return null; - //} }