diff --git a/app/src/main/java/com/example/cosmosclient/entities/GroupListResponse.java b/app/src/main/java/com/example/cosmosclient/entities/GroupListResponse.java new file mode 100644 index 0000000..8d0e0cc --- /dev/null +++ b/app/src/main/java/com/example/cosmosclient/entities/GroupListResponse.java @@ -0,0 +1,45 @@ +package com.example.cosmosclient.entities; + +import java.util.List; + +public class GroupListResponse { + + private List group; + + public GroupListResponse() { + + } + + public GroupListResponse(List group) { + this.group = group; + } + + public List getGroup() { + return group; + } + + public void setGroup(List group) { + this.group = group; + } + + public void addGroup(Group g) { + group.add(g); + } + + public Group getGroup(int index) { + return group.get(index); + } + + public void clearGroup() { + group.clear(); + } + + public void removeGroup(int index) { + group.remove(index); + } + + public int getGroupCount() { + return group.size(); + } + +}