diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2018-07-14 12:13:04 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2018-07-14 12:13:04 -0700 |
commit | 808c6323049c1efff52f20d872813f86e21c5b37 (patch) | |
tree | acf7ec4000631e5fa7d5d9a8155367070c23fffa /src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java | |
parent | 35887b81ac23a389f123df529e45fd9c49ce7459 (diff) | |
parent | 633d0cebff548b6a54ac33e464447d93e800bf12 (diff) |
Merge branch 'groups-api'
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; + } +} |