summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/GetGroupProfilesResponse.java
blob: 270b338f9a99a0d1c0560c72f88fe53ecaed3308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
    }
}