From 151f74ffa870561bbb3c857c0f07aeb4b27968f5 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sun, 8 Jul 2018 09:34:59 -0700 Subject: Add Groups Service APIs --- .../ccbapi/model/GetGroupProfilesResponse.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java (limited to 'src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java') diff --git a/src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java b/src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java new file mode 100644 index 0000000..270b338 --- /dev/null +++ b/src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java @@ -0,0 +1,27 @@ +package com.p4square.ccbapi.model; + +import javax.xml.bind.annotation.*; +import java.util.List; + +/** + * GetGroupProfilesResponse models the response of a variety of APIs which return one or more {@link GroupProfile}s. + */ +@XmlRootElement(name="response") +@XmlAccessorType(XmlAccessType.NONE) +public class GetGroupProfilesResponse extends CCBAPIResponse { + + @XmlElementWrapper(name = "groups") + @XmlElement(name="group") + private List groups; + + /** + * @return The list of groups retrieved from CCB. + */ + public List getGroups() { + return groups; + } + + public void setGroups(List groups) { + this.groups = groups; + } +} -- cgit v1.2.3