diff --git a/app/src/main/java/com/example/cosmosclient/entities/GroupListResponse.java b/app/src/main/java/com/example/cosmosclient/entities/GroupListResponse.java index 68c1998..9af528b 100644 --- a/app/src/main/java/com/example/cosmosclient/entities/GroupListResponse.java +++ b/app/src/main/java/com/example/cosmosclient/entities/GroupListResponse.java @@ -1,34 +1,35 @@ package com.example.cosmosclient.entities; +import com.example.cosmosclient.entities.jsons.GroupJson; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.List; -@JsonIgnoreProperties(ignoreUnknown = true) +//@JsonIgnoreProperties(ignoreUnknown = true) public class GroupListResponse { - private List groups; + private List groups; public GroupListResponse() { } - public GroupListResponse(List groups) { + public GroupListResponse(List groups) { this.groups = groups; } - public List getGroup() { + public List getGroups() { return groups; } - public void setGroup(List groups) { + public void setGroups(List groups) { this.groups = groups; } - public void addGroup(Group g) { + public void addGroup(GroupJson g) { groups.add(g); } - public Group getGroup(int index) { + public GroupJson getGroup(int index) { return groups.get(index); }