com.github.tmdb.wrapper.WrapperTrailers Maven / Gradle / Ivy
The newest version!
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.Trailer;
/**
*
* @author Stuart
*/
public class WrapperTrailers {
/*
* Logger
*/
private static final Logger LOGGER = Logger.getLogger(WrapperTrailers.class);
/*
* Properties
*/
@JsonProperty("id")
private int id;
@JsonProperty("quicktime")
private List quicktime;
@JsonProperty("youtube")
private List youtube;
//
public int getId() {
return id;
}
public List getQuicktime() {
return quicktime;
}
public List getYoutube() {
return youtube;
}
//
//
public void setId(int id) {
this.id = id;
}
public void setQuicktime(List quicktime) {
this.quicktime = quicktime;
}
public void setYoutube(List youtube) {
this.youtube = youtube;
}
//
/**
* 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());
}
}