All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.tmdb.wrapper.WrapperReleaseInfo Maven / Gradle / Ivy

package com.github.tmdb.wrapper;

import java.util.List;
import org.apache.log4j.Logger;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonProperty;

import com.github.tmdb.model.ReleaseInfo;

public class WrapperReleaseInfo {
    /*
     * Logger
     */

    private static final Logger LOGGER = Logger.getLogger(WrapperReleaseInfo.class);
    /*
     * Properties
     */
    @JsonProperty("id")
    private int id;
    @JsonProperty("countries")
    private List countries;

    //
    public List getCountries() {
        return countries;
    }

    public int getId() {
        return id;
    }
    //

    //
    public void setCountries(List countries) {
        this.countries = countries;
    }

    public void setId(int id) {
        this.id = id;
    }
    //

    /**
     * Handle unknown properties and print a message
     * @param key
     * @param value
     */
    @JsonAnySetter
    public void handleUnknown(String key, Object value) {
        StringBuilder sb = new StringBuilder();
        sb.append("Unknown property: '").append(key);
        sb.append("' value: '").append(value).append("'");
        LOGGER.warn(sb.toString());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy