001package org.nuxeo.box.api.marshalling.dao;
002
003import com.fasterxml.jackson.annotation.JsonProperty;
004
005import java.util.Map;
006
007public class BoxRealTimeServer extends BoxTypedObject {
008
009    private static final String FIELD_URL = "url";
010
011    /**
012     * Constructor.
013     */
014    public BoxRealTimeServer() {
015        setType(BoxResourceType.REALTIME_SERVER.toString());
016    }
017
018    /**
019     * Copy constructor, this does deep copy for all the fields.
020     *
021     * @param obj
022     */
023    public BoxRealTimeServer(BoxRealTimeServer obj) {
024        super(obj);
025    }
026
027    /**
028     * Get url.
029     *
030     * @return url.
031     */
032    @JsonProperty(FIELD_URL)
033    public String getUrl() {
034        return (String) getValue(FIELD_URL);
035    }
036
037    /**
038     * Setter. This is only used by {@see <a href="http://jackson.codehaus .org">Jackson JSON processer</a>}
039     *
040     * @param url Url.
041     */
042    @JsonProperty(FIELD_URL)
043    private void setUrl(String url) {
044        put(FIELD_URL, url);
045    }
046
047    /**
048     * Instantiate the object from a map. Each entry in the map reflects to a field.
049     *
050     * @param map
051     */
052    public BoxRealTimeServer(Map<String, Object> map) {
053        super(map);
054    }
055
056}