diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2018-07-08 09:34:59 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2018-07-08 09:34:59 -0700 |
commit | 151f74ffa870561bbb3c857c0f07aeb4b27968f5 (patch) | |
tree | fc81aefe1330750c9fcfef28f38d2c938b792cd4 /src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java | |
parent | 35887b81ac23a389f123df529e45fd9c49ce7459 (diff) |
Add Groups Service APIs
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java')
-rw-r--r-- | src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java | 27 |
1 files changed, 27 insertions, 0 deletions
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<GroupProfile> groups; + + /** + * @return The list of groups retrieved from CCB. + */ + public List<GroupProfile> getGroups() { + return groups; + } + + public void setGroups(List<GroupProfile> groups) { + this.groups = groups; + } +} |