001package org.nuxeo.box.api.marshalling.dao;
002
003import com.fasterxml.jackson.annotation.JsonProperty;
004
005import java.util.Map;
006
007public class BoxCollection extends BoxCollectionBase {
008
009    public static final String FIELD_TOTAL_COUNT = "total_count";
010
011    public BoxCollection() {
012    }
013
014    /**
015     * Copy constructor, this does deep copy for all the fields.
016     *
017     * @param obj
018     */
019    public BoxCollection(BoxCollection obj) {
020        super(obj);
021    }
022
023    /**
024     * Instantiate the object from a map. Each entry in the map reflects to a field.
025     *
026     * @param map
027     */
028    public BoxCollection(Map<String, Object> map) {
029        super(map);
030    }
031
032    /**
033     * @return the total_count
034     */
035    @JsonProperty("total_count")
036    public Integer getTotalCount() {
037        return (Integer) getValue(FIELD_TOTAL_COUNT);
038    }
039
040    /**
041     * @param totalCount the total_count to set
042     */
043    @JsonProperty("total_count")
044    private void setTotalCount(Integer totalCount) {
045        put(FIELD_TOTAL_COUNT, totalCount);
046    }
047}