Add Serializable to all model classes
This commit is contained in:
@@ -21,6 +21,7 @@ package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
|
||||
@@ -28,9 +29,9 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
*
|
||||
* @author Stuart.Boston
|
||||
*/
|
||||
public class AbstractIdName extends AbstractJsonMapping implements IIdentification {
|
||||
public class AbstractIdName extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 2L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -33,6 +33,7 @@ import org.slf4j.LoggerFactory;
|
||||
*/
|
||||
public abstract class AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AbstractJsonMapping.class);
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,11 +21,12 @@ package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonRootName;
|
||||
import java.io.Serializable;
|
||||
|
||||
@JsonRootName("certification")
|
||||
public class Certification extends AbstractJsonMapping {
|
||||
public class Certification extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
// Properties
|
||||
@JsonProperty("certification")
|
||||
private String value;
|
||||
|
||||
@@ -25,14 +25,15 @@ import com.omertron.themoviedbapi.model.person.PersonFind;
|
||||
import com.omertron.themoviedbapi.model.tv.TVBasic;
|
||||
import com.omertron.themoviedbapi.model.tv.TVEpisodeBasic;
|
||||
import com.omertron.themoviedbapi.model.tv.TVSeasonBasic;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class FindResults extends AbstractJsonMapping {
|
||||
public class FindResults extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("movie_results")
|
||||
private List<MovieBasic> movieResults;
|
||||
|
||||
@@ -20,11 +20,14 @@
|
||||
package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonRootName;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
@JsonRootName("genre")
|
||||
public class Genre extends AbstractIdName {
|
||||
public class Genre extends AbstractIdName implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
// Nothing to override from the base class.
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.omertron.themoviedbapi.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonRootName;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
|
||||
@@ -28,12 +29,10 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
* @author stuart.boston
|
||||
*/
|
||||
@JsonRootName("spoken_language")
|
||||
public class Language extends AbstractJsonMapping {
|
||||
public class Language extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
/*
|
||||
* Properties
|
||||
*/
|
||||
@JsonProperty("iso_639_1")
|
||||
private String isoCode;
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
*/
|
||||
public class StatusCode extends AbstractJsonMapping {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("status_code")
|
||||
private int code;
|
||||
|
||||
@@ -22,8 +22,11 @@ package com.omertron.themoviedbapi.model.account;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Account extends AbstractJsonMapping implements IIdentification{
|
||||
public class Account extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -23,6 +23,7 @@ import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.omertron.themoviedbapi.enumeration.ArtworkType;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonSetter;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
|
||||
@@ -31,9 +32,9 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class Artwork extends AbstractJsonMapping {
|
||||
public class Artwork extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@@ -28,6 +28,7 @@ import com.omertron.themoviedbapi.model.media.MediaBasic;
|
||||
import com.omertron.themoviedbapi.model.movie.MovieBasic;
|
||||
import com.omertron.themoviedbapi.model.tv.TVBasic;
|
||||
import com.omertron.themoviedbapi.model.tv.TVEpisodeBasic;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
|
||||
@@ -35,7 +36,9 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class ArtworkMedia extends Artwork {
|
||||
public class ArtworkMedia extends Artwork implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
private MediaType mediaType;
|
||||
@JsonTypeInfo(
|
||||
|
||||
+3
-2
@@ -21,10 +21,11 @@ package com.omertron.themoviedbapi.model.authentication;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class TokenAuthorisation extends AbstractJsonMapping {
|
||||
public class TokenAuthorisation extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
@JsonProperty("expires_at")
|
||||
private String expires;
|
||||
@JsonProperty("request_token")
|
||||
|
||||
@@ -21,10 +21,11 @@ package com.omertron.themoviedbapi.model.authentication;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class TokenSession extends AbstractJsonMapping {
|
||||
public class TokenSession extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
@JsonProperty("session_id")
|
||||
private String sessionId;
|
||||
@JsonProperty("success")
|
||||
|
||||
@@ -21,12 +21,13 @@ package com.omertron.themoviedbapi.model.change;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ChangeKeyItem extends AbstractJsonMapping {
|
||||
public class ChangeKeyItem extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
@JsonProperty("key")
|
||||
private String key;
|
||||
@JsonProperty("items")
|
||||
|
||||
@@ -21,10 +21,11 @@ package com.omertron.themoviedbapi.model.change;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ChangeListItem extends AbstractJsonMapping {
|
||||
public class ChangeListItem extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -21,10 +21,11 @@ package com.omertron.themoviedbapi.model.change;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ChangedItem extends AbstractJsonMapping {
|
||||
public class ChangedItem extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
@JsonProperty("action")
|
||||
|
||||
@@ -23,6 +23,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonRootName;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
@@ -31,9 +32,9 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
* @author stuart.boston
|
||||
*/
|
||||
@JsonRootName("collection")
|
||||
public class Collection extends AbstractJsonMapping implements IIdentification{
|
||||
public class Collection extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -22,6 +22,7 @@ package com.omertron.themoviedbapi.model.collection;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -29,9 +30,9 @@ import java.util.List;
|
||||
/**
|
||||
* @author Stuart
|
||||
*/
|
||||
public class CollectionInfo extends AbstractJsonMapping implements IIdentification {
|
||||
public class CollectionInfo extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -22,29 +22,30 @@ package com.omertron.themoviedbapi.model.company;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import java.io.Serializable;
|
||||
import static org.apache.commons.lang3.StringUtils.EMPTY;
|
||||
|
||||
/**
|
||||
* Company information
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class Company extends AbstractJsonMapping implements IIdentification {
|
||||
public class Company extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String DEFAULT_STRING = "";
|
||||
private static final long serialVersionUID = 4L;
|
||||
// Properties
|
||||
@JsonProperty("id")
|
||||
private int id = 0;
|
||||
@JsonProperty("name")
|
||||
private String name = DEFAULT_STRING;
|
||||
private String name = EMPTY;
|
||||
@JsonProperty("description")
|
||||
private String description = DEFAULT_STRING;
|
||||
private String description = EMPTY;
|
||||
@JsonProperty("headquarters")
|
||||
private String headquarters = DEFAULT_STRING;
|
||||
private String headquarters = EMPTY;
|
||||
@JsonProperty("homepage")
|
||||
private String homepage = DEFAULT_STRING;
|
||||
private String homepage = EMPTY;
|
||||
@JsonProperty("logo_path")
|
||||
private String logoPath = DEFAULT_STRING;
|
||||
private String logoPath = EMPTY;
|
||||
@JsonProperty("parent_company")
|
||||
private Company parentCompany = null;
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ package com.omertron.themoviedbapi.model.config;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.MovieDbException;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.List;
|
||||
@@ -31,12 +32,10 @@ import org.yamj.api.common.exception.ApiExceptionType;
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class Configuration extends AbstractJsonMapping {
|
||||
public class Configuration extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
/*
|
||||
* Properties
|
||||
*/
|
||||
@JsonProperty("base_url")
|
||||
private String baseUrl;
|
||||
@JsonProperty("secure_base_url")
|
||||
|
||||
@@ -21,11 +21,12 @@ package com.omertron.themoviedbapi.model.config;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class JobDepartment extends AbstractJsonMapping {
|
||||
public class JobDepartment extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
// Properties
|
||||
@JsonProperty("department")
|
||||
private String department;
|
||||
|
||||
@@ -21,11 +21,14 @@ package com.omertron.themoviedbapi.model.keyword;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonRootName;
|
||||
import com.omertron.themoviedbapi.model.AbstractIdName;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
@JsonRootName("keyword")
|
||||
public class Keyword extends AbstractIdName {
|
||||
public class Keyword extends AbstractIdName implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
// Nothing to override from the base class.
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.omertron.themoviedbapi.model.list;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@@ -30,7 +31,9 @@ import java.util.List;
|
||||
* @author stuart.boston
|
||||
* @param <T> Type of list
|
||||
*/
|
||||
public class ListItem<T> extends AbstractJsonMapping {
|
||||
public class ListItem<T> extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@@ -21,13 +21,14 @@ package com.omertron.themoviedbapi.model.list;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Holger Brandl
|
||||
*/
|
||||
public class ListItemStatus extends AbstractJsonMapping {
|
||||
public class ListItemStatus extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("status_code")
|
||||
private int statusCode;
|
||||
|
||||
@@ -21,13 +21,16 @@ package com.omertron.themoviedbapi.model.list;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Wrapper for the MovieDbList function
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class UserList extends AbstractJsonMapping {
|
||||
public class UserList extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
*/
|
||||
public class AlternativeTitle implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("iso_3166_1")
|
||||
private String country;
|
||||
|
||||
@@ -24,13 +24,16 @@ import com.fasterxml.jackson.annotation.JsonSetter;
|
||||
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Basic media information
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class MediaBasic extends AbstractJsonMapping implements IIdentification {
|
||||
public class MediaBasic extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -22,12 +22,15 @@ package com.omertron.themoviedbapi.model.media;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart.Boston
|
||||
*/
|
||||
public class MediaCredit extends AbstractJsonMapping implements IIdentification {
|
||||
public class MediaCredit extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("credit_id")
|
||||
private String creditId;
|
||||
|
||||
@@ -20,12 +20,15 @@
|
||||
package com.omertron.themoviedbapi.model.media;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart.Boston
|
||||
*/
|
||||
public class MediaCreditCast extends MediaCredit {
|
||||
public class MediaCreditCast extends MediaCredit implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("cast_id")
|
||||
private int castId = 0;
|
||||
|
||||
@@ -20,12 +20,15 @@
|
||||
package com.omertron.themoviedbapi.model.media;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart.Boston
|
||||
*/
|
||||
public class MediaCreditCrew extends MediaCredit {
|
||||
public class MediaCreditCrew extends MediaCredit implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("department")
|
||||
private String department;
|
||||
|
||||
@@ -22,14 +22,15 @@ package com.omertron.themoviedbapi.model.media;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class MediaCreditList extends AbstractJsonMapping implements IIdentification{
|
||||
public class MediaCreditList extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -23,12 +23,15 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonSetter;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart.Boston
|
||||
*/
|
||||
public class MediaState extends AbstractJsonMapping implements IIdentification {
|
||||
public class MediaState extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -21,12 +21,15 @@ package com.omertron.themoviedbapi.model.media;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart.Boston
|
||||
*/
|
||||
public class RatedValue extends AbstractJsonMapping {
|
||||
public class RatedValue extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("value")
|
||||
private float value = -1f;
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.omertron.themoviedbapi.model.media;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
|
||||
@@ -29,9 +30,9 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class Trailer extends AbstractJsonMapping {
|
||||
public class Trailer extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.omertron.themoviedbapi.model.media;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
@@ -29,13 +30,10 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
/**
|
||||
* @author Stuart
|
||||
*/
|
||||
public class Translation extends AbstractJsonMapping {
|
||||
public class Translation extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
/*
|
||||
* Properties
|
||||
*/
|
||||
@JsonProperty("english_name")
|
||||
private String englishName;
|
||||
@JsonProperty("iso_639_1")
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.omertron.themoviedbapi.model.media;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
|
||||
@@ -29,9 +30,9 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class Video extends AbstractJsonMapping {
|
||||
public class Video extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@@ -22,13 +22,16 @@ package com.omertron.themoviedbapi.model.movie;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||
import com.omertron.themoviedbapi.model.media.MediaBasic;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Basic Movie information
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class MovieBasic extends MediaBasic {
|
||||
public class MovieBasic extends MediaBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("adult")
|
||||
private boolean adult;
|
||||
|
||||
@@ -43,6 +43,7 @@ import com.omertron.themoviedbapi.results.WrapperMovieKeywords;
|
||||
import com.omertron.themoviedbapi.results.WrapperReleaseInfo;
|
||||
import com.omertron.themoviedbapi.results.WrapperTranslations;
|
||||
import com.omertron.themoviedbapi.results.WrapperVideos;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
@@ -52,9 +53,10 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class MovieInfo extends AbstractJsonMapping implements IIdentification {
|
||||
public class MovieInfo extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@JsonProperty("backdrop_path")
|
||||
private String backdropPath;
|
||||
@JsonProperty("id")
|
||||
|
||||
@@ -21,11 +21,14 @@ package com.omertron.themoviedbapi.model.movie;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonRootName;
|
||||
import com.omertron.themoviedbapi.model.AbstractIdName;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
@JsonRootName("production_company")
|
||||
public class ProductionCompany extends AbstractIdName {
|
||||
public class ProductionCompany extends AbstractIdName implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
// Nothing to override from the base class.
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ package com.omertron.themoviedbapi.model.movie;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonRootName;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
|
||||
@@ -29,9 +30,9 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
* @author stuart.boston
|
||||
*/
|
||||
@JsonRootName("production_country")
|
||||
public class ProductionCountry extends AbstractJsonMapping {
|
||||
public class ProductionCountry extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("iso_3166_1")
|
||||
private String country;
|
||||
|
||||
@@ -21,15 +21,16 @@ package com.omertron.themoviedbapi.model.movie;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
|
||||
/**
|
||||
* @author Stuart
|
||||
*/
|
||||
public class ReleaseInfo extends AbstractJsonMapping {
|
||||
public class ReleaseInfo extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("iso_3166_1")
|
||||
private String country;
|
||||
|
||||
@@ -22,13 +22,14 @@ package com.omertron.themoviedbapi.model.network;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class Network extends AbstractJsonMapping implements IIdentification {
|
||||
public class Network extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -20,12 +20,15 @@
|
||||
package com.omertron.themoviedbapi.model.person;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart.Boston
|
||||
*/
|
||||
public class ContentRating {
|
||||
public class ContentRating implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("iso_3166_1")
|
||||
private String country;
|
||||
|
||||
@@ -26,13 +26,14 @@ import com.omertron.themoviedbapi.enumeration.CreditType;
|
||||
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class CreditBasic extends AbstractJsonMapping implements IIdentification {
|
||||
public class CreditBasic extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
private CreditType creditType;
|
||||
private MediaType mediaType;
|
||||
|
||||
@@ -22,13 +22,14 @@ package com.omertron.themoviedbapi.model.person;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.tv.TVCredit;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class CreditInfo extends AbstractJsonMapping {
|
||||
public class CreditInfo extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@@ -21,13 +21,14 @@ package com.omertron.themoviedbapi.model.person;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class CreditMovieBasic extends CreditBasic {
|
||||
public class CreditMovieBasic extends CreditBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("adult")
|
||||
private boolean adult;
|
||||
|
||||
@@ -21,13 +21,14 @@ package com.omertron.themoviedbapi.model.person;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class CreditTVBasic extends CreditBasic {
|
||||
public class CreditTVBasic extends CreditBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("episode_count")
|
||||
private int episodeCount;
|
||||
|
||||
@@ -22,12 +22,15 @@ package com.omertron.themoviedbapi.model.person;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class ExternalID extends AbstractJsonMapping implements IIdentification {
|
||||
public class ExternalID extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -20,14 +20,15 @@
|
||||
package com.omertron.themoviedbapi.model.person;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class Person extends PersonBasic {
|
||||
public class Person extends PersonBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("adult")
|
||||
private boolean adult;
|
||||
|
||||
@@ -21,13 +21,15 @@ package com.omertron.themoviedbapi.model.person;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.AbstractIdName;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class PersonBasic extends AbstractIdName {
|
||||
public class PersonBasic extends AbstractIdName implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@JsonProperty("profile_path")
|
||||
private String profilePath;
|
||||
|
||||
|
||||
@@ -23,15 +23,16 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonSetter;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
* @param <T>
|
||||
*/
|
||||
public class PersonCredits<T extends CreditBasic> extends AbstractJsonMapping implements IIdentification {
|
||||
public class PersonCredits<T extends CreditBasic> extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id;
|
||||
|
||||
@@ -27,14 +27,16 @@ import com.omertron.themoviedbapi.model.media.MediaBasic;
|
||||
import com.omertron.themoviedbapi.model.movie.MovieBasic;
|
||||
import com.omertron.themoviedbapi.model.tv.TVBasic;
|
||||
import com.omertron.themoviedbapi.model.tv.TVEpisodeBasic;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class PersonFind extends PersonBasic {
|
||||
public class PersonFind extends PersonBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@JsonProperty("adult")
|
||||
private Boolean adult;
|
||||
@JsonProperty("popularity")
|
||||
|
||||
@@ -21,13 +21,14 @@ package com.omertron.themoviedbapi.model.review;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Stuart
|
||||
*/
|
||||
public class Review extends AbstractJsonMapping {
|
||||
public class Review extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@@ -22,6 +22,7 @@ package com.omertron.themoviedbapi.model.tv;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||
import com.omertron.themoviedbapi.model.media.MediaBasic;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -29,7 +30,9 @@ import java.util.List;
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class TVBasic extends MediaBasic {
|
||||
public class TVBasic extends MediaBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.omertron.themoviedbapi.model.tv;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.AbstractIdName;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -28,7 +29,9 @@ import java.util.List;
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class TVCredit extends AbstractIdName {
|
||||
public class TVCredit extends AbstractIdName implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("original_name")
|
||||
private String originalName;
|
||||
|
||||
@@ -22,13 +22,16 @@ package com.omertron.themoviedbapi.model.tv;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||
import com.omertron.themoviedbapi.model.media.MediaBasic;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* TV Favorite information
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class TVEpisodeBasic extends MediaBasic {
|
||||
public class TVEpisodeBasic extends MediaBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("air_date")
|
||||
private String airDate;
|
||||
|
||||
@@ -22,6 +22,7 @@ package com.omertron.themoviedbapi.model.tv;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.media.MediaCreditCast;
|
||||
import com.omertron.themoviedbapi.model.media.MediaCreditCrew;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -29,7 +30,9 @@ import java.util.List;
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class TVEpisodeInfo extends TVEpisodeBasic {
|
||||
public class TVEpisodeInfo extends TVEpisodeBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("crew")
|
||||
private List<MediaCreditCrew> crew;
|
||||
|
||||
@@ -24,13 +24,16 @@ import com.omertron.themoviedbapi.model.Genre;
|
||||
import com.omertron.themoviedbapi.model.movie.ProductionCompany;
|
||||
import com.omertron.themoviedbapi.model.network.Network;
|
||||
import com.omertron.themoviedbapi.model.person.PersonBasic;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class TVInfo extends TVBasic {
|
||||
public class TVInfo extends TVBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("created_by")
|
||||
private List<PersonBasic> createdBy;
|
||||
|
||||
@@ -22,13 +22,16 @@ package com.omertron.themoviedbapi.model.tv;
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.interfaces.IIdentification;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* TV Favorite information
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class TVSeasonBasic extends AbstractJsonMapping implements IIdentification {
|
||||
public class TVSeasonBasic extends AbstractJsonMapping implements Serializable, IIdentification {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id = -1;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
package com.omertron.themoviedbapi.model.tv;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -27,7 +28,9 @@ import java.util.List;
|
||||
*
|
||||
* @author stuart.boston
|
||||
*/
|
||||
public class TVSeasonInfo extends TVSeasonBasic {
|
||||
public class TVSeasonInfo extends TVSeasonBasic implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4L;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
Reference in New Issue
Block a user