summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/GetCustomFieldLabelsResponse.java
blob: 9f5603613e4700b47cf15f3b14d16c7258e6370d (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
28
29
30
31
32
33
34
35
36
37
package com.p4square.ccbapi.model;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

/**
 * GetCustomFieldLabelsResponse models the response returned by the custom_field_labels API.
 */
@XmlRootElement(name="response")
@XmlAccessorType(XmlAccessType.NONE)
public class GetCustomFieldLabelsResponse extends CCBAPIResponse {

    @XmlElementWrapper(name = "custom_fields")
    @XmlElement(name="custom_field")
    private List<CustomField> customFields;

    public GetCustomFieldLabelsResponse() {
        customFields = new ArrayList<>();
    }

    /**
     * @return The list of custom field names and labels.
     */
    public List<CustomField> getCustomFields() {
        return customFields;
    }

    /**
     * Set the list of custom fields.
     *
     * @param fields The list to include in the response.
     */
    public void setCustomFields(final List<CustomField> fields) {
        this.customFields = fields;
    }
}