diff --git a/app/src/main/java/com/example/cosmosclient/entities/Group.java b/app/src/main/java/com/example/cosmosclient/entities/Group.java index 1ee3c6d..9e8b5c8 100644 --- a/app/src/main/java/com/example/cosmosclient/entities/Group.java +++ b/app/src/main/java/com/example/cosmosclient/entities/Group.java @@ -8,6 +8,7 @@ public class Group { private String gId; private String uri, name; + private long requestHash; /* Userどうするか private ArrayList members; */ @@ -26,6 +27,7 @@ public Group(GroupJson groupJson){ setgId(groupJson.getgId()); setUri(groupJson.getUri()); + clearRequestHash(); setName(groupJson.getName()); } @@ -61,6 +63,22 @@ return name; } + public long getRequestHash() { + return requestHash; + } + + public void setRequestHash(long requestHash) { + this.requestHash = requestHash; + } + + public void clearRequestHash(){ + setRequestHash(0); + } + + public void updateRequestHash(){ + setRequestHash(getRequestHash()+1); + } + public RequestList getRequestList(){ return requestList; }