summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/SearchGroupsResponse.java
blob: c89525aafce8b2e0e5c0f0271872cc6191d430f0 (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;

/**
 * SearchGroupsResponse models the response from the group_search API.
 */
@XmlRootElement(name="response")
@XmlAccessorType(XmlAccessType.NONE)
public class SearchGroupsResponse extends CCBAPIResponse {

    @XmlElementWrapper(name = "items")
    @XmlElement(name="item")
    private List<GroupSearchResult> results;

    /**
     * @return The list of individuals retrieved from CCB.
     */
    public List<GroupSearchResult> getResults() {
        return results;
    }

    public void setResults(List<GroupSearchResult> results) {
        this.results = results;
    }
}