People (partial)
parent
45b66ef0b1
commit
46a50703d7
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2004-2015 Stuart Boston
|
||||||
|
*
|
||||||
|
* This file is part of TheMovieDB API.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.omertron.themoviedbapi.enumeration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Stuart
|
||||||
|
*/
|
||||||
|
public enum CreditType {
|
||||||
|
|
||||||
|
CAST,
|
||||||
|
CREW;
|
||||||
|
}
|
||||||
@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2004-2015 Stuart Boston
|
||||||
|
*
|
||||||
|
* This file is part of TheMovieDB API.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.omertron.themoviedbapi.model2.artwork;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonSetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
|
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||||
|
import com.omertron.themoviedbapi.model2.MediaBasic;
|
||||||
|
import com.omertron.themoviedbapi.model2.movie.MovieBasic;
|
||||||
|
import com.omertron.themoviedbapi.model2.tv.TVBasic;
|
||||||
|
import com.omertron.themoviedbapi.model2.tv.TVEpisodeBasic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Stuart
|
||||||
|
*/
|
||||||
|
public class ArtworkMedia extends Artwork {
|
||||||
|
|
||||||
|
private MediaType mediaType;
|
||||||
|
@JsonTypeInfo(
|
||||||
|
use = JsonTypeInfo.Id.NAME,
|
||||||
|
include = JsonTypeInfo.As.EXTERNAL_PROPERTY,
|
||||||
|
property = "media_type",
|
||||||
|
defaultImpl = MediaBasic.class
|
||||||
|
)
|
||||||
|
@JsonSubTypes({
|
||||||
|
@JsonSubTypes.Type(value = MovieBasic.class, name = "movie"),
|
||||||
|
@JsonSubTypes.Type(value = TVBasic.class, name = "tv"),
|
||||||
|
@JsonSubTypes.Type(value = TVEpisodeBasic.class, name = "episode")
|
||||||
|
})
|
||||||
|
@JsonProperty("media")
|
||||||
|
private MediaBasic media;
|
||||||
|
|
||||||
|
public MediaType getMediaType() {
|
||||||
|
return mediaType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMediaType(MediaType mediaType) {
|
||||||
|
this.mediaType = mediaType;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonSetter("media_type")
|
||||||
|
public void setMediaType(String mediaType) {
|
||||||
|
this.mediaType = MediaType.fromString(mediaType);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MediaBasic getMedia() {
|
||||||
|
return media;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMedia(MediaBasic media) {
|
||||||
|
this.media = media;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,126 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2004-2015 Stuart Boston
|
||||||
|
*
|
||||||
|
* This file is part of TheMovieDB API.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.omertron.themoviedbapi.model2.person;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonSetter;
|
||||||
|
import com.omertron.themoviedbapi.enumeration.CreditType;
|
||||||
|
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||||
|
import com.omertron.themoviedbapi.model2.AbstractJsonMapping;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author stuart.boston
|
||||||
|
*/
|
||||||
|
public class CreditBasic extends AbstractJsonMapping {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private CreditType creditType;
|
||||||
|
private MediaType mediaType;
|
||||||
|
|
||||||
|
@JsonProperty("credit_id")
|
||||||
|
private String creditId;
|
||||||
|
@JsonProperty("id")
|
||||||
|
private int id;
|
||||||
|
@JsonProperty("poster_path")
|
||||||
|
private String posterPath;
|
||||||
|
|
||||||
|
//cast
|
||||||
|
@JsonProperty("character")
|
||||||
|
private String character;
|
||||||
|
//crew
|
||||||
|
@JsonProperty("department")
|
||||||
|
private String department;
|
||||||
|
@JsonProperty("job")
|
||||||
|
private String job;
|
||||||
|
|
||||||
|
public CreditType getCreditType() {
|
||||||
|
return creditType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreditType(CreditType creditType) {
|
||||||
|
this.creditType = creditType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MediaType getMediaType() {
|
||||||
|
return mediaType;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonSetter("media_type")
|
||||||
|
public void setMediaType(String mediaType) {
|
||||||
|
this.mediaType = MediaType.fromString(mediaType);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMediaType(MediaType mediaType) {
|
||||||
|
this.mediaType = mediaType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreditId() {
|
||||||
|
return creditId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreditId(String creditId) {
|
||||||
|
this.creditId = creditId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPosterPath() {
|
||||||
|
return posterPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPosterPath(String posterPath) {
|
||||||
|
this.posterPath = posterPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCharacter() {
|
||||||
|
return character;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCharacter(String character) {
|
||||||
|
this.character = character;
|
||||||
|
setCreditType(CreditType.CAST);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDepartment() {
|
||||||
|
return department;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDepartment(String department) {
|
||||||
|
this.department = department;
|
||||||
|
setCreditType(CreditType.CREW);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJob() {
|
||||||
|
return job;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJob(String job) {
|
||||||
|
this.job = job;
|
||||||
|
setCreditType(CreditType.CREW);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,77 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2004-2015 Stuart Boston
|
||||||
|
*
|
||||||
|
* This file is part of TheMovieDB API.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.omertron.themoviedbapi.model2.person;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author stuart.boston
|
||||||
|
*/
|
||||||
|
public class CreditMovieBasic extends CreditBasic {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@JsonProperty("adult")
|
||||||
|
private boolean adult;
|
||||||
|
@JsonProperty("original_title")
|
||||||
|
private String originalTitle;
|
||||||
|
@JsonProperty("release_date")
|
||||||
|
private String releaseDate;
|
||||||
|
@JsonProperty("title")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
public CreditMovieBasic() {
|
||||||
|
setMediaType(MediaType.MOVIE);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isAdult() {
|
||||||
|
return adult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdult(boolean adult) {
|
||||||
|
this.adult = adult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOriginalTitle() {
|
||||||
|
return originalTitle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOriginalTitle(String originalTitle) {
|
||||||
|
this.originalTitle = originalTitle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReleaseDate() {
|
||||||
|
return releaseDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReleaseDate(String releaseDate) {
|
||||||
|
this.releaseDate = releaseDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,77 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2004-2015 Stuart Boston
|
||||||
|
*
|
||||||
|
* This file is part of TheMovieDB API.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.omertron.themoviedbapi.model2.person;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.omertron.themoviedbapi.enumeration.MediaType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author stuart.boston
|
||||||
|
*/
|
||||||
|
public class CreditTVBasic extends CreditBasic {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@JsonProperty("episode_count")
|
||||||
|
private int episodeCount;
|
||||||
|
@JsonProperty("first_air_date")
|
||||||
|
private String firstAirDate;
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("original_name")
|
||||||
|
private String originalName;
|
||||||
|
|
||||||
|
public CreditTVBasic() {
|
||||||
|
setMediaType(MediaType.TV);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getEpisodeCount() {
|
||||||
|
return episodeCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEpisodeCount(int episodeCount) {
|
||||||
|
this.episodeCount = episodeCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFirstAirDate() {
|
||||||
|
return firstAirDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFirstAirDate(String firstAirDate) {
|
||||||
|
this.firstAirDate = firstAirDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOriginalName() {
|
||||||
|
return originalName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOriginalName(String originalName) {
|
||||||
|
this.originalName = originalName;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,82 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2004-2015 Stuart Boston
|
||||||
|
*
|
||||||
|
* This file is part of TheMovieDB API.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.omertron.themoviedbapi.model2.person;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.omertron.themoviedbapi.model2.AbstractJsonMapping;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Stuart
|
||||||
|
*/
|
||||||
|
public class ExternalID extends AbstractJsonMapping {
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("imdb_id")
|
||||||
|
private String imdbId;
|
||||||
|
@JsonProperty("freebase_mid")
|
||||||
|
private String freebaseMid;
|
||||||
|
@JsonProperty("freebase_id")
|
||||||
|
private String freebaseId;
|
||||||
|
@JsonProperty("tvrage_id")
|
||||||
|
private String tvrageId;
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImdbId() {
|
||||||
|
return imdbId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImdbId(String imdbId) {
|
||||||
|
this.imdbId = imdbId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFreebaseMid() {
|
||||||
|
return freebaseMid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFreebaseMid(String freebaseMid) {
|
||||||
|
this.freebaseMid = freebaseMid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFreebaseId() {
|
||||||
|
return freebaseId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFreebaseId(String freebaseId) {
|
||||||
|
this.freebaseId = freebaseId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTvrageId() {
|
||||||
|
return tvrageId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTvrageId(String tvrageId) {
|
||||||
|
this.tvrageId = tvrageId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,133 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2004-2015 Stuart Boston
|
||||||
|
*
|
||||||
|
* This file is part of TheMovieDB API.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.omertron.themoviedbapi.model2.person;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author stuart.boston
|
||||||
|
*/
|
||||||
|
public class Person extends PersonBasic {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@JsonProperty("adult")
|
||||||
|
private boolean adult;
|
||||||
|
@JsonProperty("also_known_as")
|
||||||
|
private List<String> alsoKnownAs;
|
||||||
|
@JsonProperty("biography")
|
||||||
|
private String biography;
|
||||||
|
@JsonProperty("birthday")
|
||||||
|
private String birthday;
|
||||||
|
@JsonProperty("deathday")
|
||||||
|
private String deathday;
|
||||||
|
@JsonProperty("homepage")
|
||||||
|
private String homepage;
|
||||||
|
@JsonProperty("imdb_id")
|
||||||
|
private String imdbId;
|
||||||
|
@JsonProperty("place_of_birth")
|
||||||
|
private String placeOfBirth;
|
||||||
|
@JsonProperty("popularity")
|
||||||
|
private float popularity;
|
||||||
|
@JsonProperty("profile_path")
|
||||||
|
private String profilePath;
|
||||||
|
|
||||||
|
public boolean isAdult() {
|
||||||
|
return adult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdult(boolean adult) {
|
||||||
|
this.adult = adult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getAlsoKnownAs() {
|
||||||
|
return alsoKnownAs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAlsoKnownAs(List<String> alsoKnownAs) {
|
||||||
|
this.alsoKnownAs = alsoKnownAs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBiography() {
|
||||||
|
return biography;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBiography(String biography) {
|
||||||
|
this.biography = biography;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBirthday() {
|
||||||
|
return birthday;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBirthday(String birthday) {
|
||||||
|
this.birthday = birthday;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeathday() {
|
||||||
|
return deathday;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeathday(String deathday) {
|
||||||
|
this.deathday = deathday;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHomepage() {
|
||||||
|
return homepage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHomepage(String homepage) {
|
||||||
|
this.homepage = homepage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImdbId() {
|
||||||
|
return imdbId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImdbId(String imdbId) {
|
||||||
|
this.imdbId = imdbId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaceOfBirth() {
|
||||||
|
return placeOfBirth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaceOfBirth(String placeOfBirth) {
|
||||||
|
this.placeOfBirth = placeOfBirth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getPopularity() {
|
||||||
|
return popularity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPopularity(float popularity) {
|
||||||
|
this.popularity = popularity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProfilePath() {
|
||||||
|
return profilePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProfilePath(String profilePath) {
|
||||||
|
this.profilePath = profilePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,63 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2004-2015 Stuart Boston
|
||||||
|
*
|
||||||
|
* This file is part of TheMovieDB API.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* TheMovieDB API is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with TheMovieDB API. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.omertron.themoviedbapi.model2.person;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.omertron.themoviedbapi.model2.AbstractJsonMapping;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author stuart.boston
|
||||||
|
*/
|
||||||
|
public class PersonCredits<T> extends AbstractJsonMapping {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
|
private int id;
|
||||||
|
@JsonProperty("cast")
|
||||||
|
private List<T> cast;
|
||||||
|
@JsonProperty("crew")
|
||||||
|
private List<T> crew;
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T> getCast() {
|
||||||
|
return cast;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCast(List<T> cast) {
|
||||||
|
this.cast = cast;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T> getCrew() {
|
||||||
|
return crew;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCrew(List<T> crew) {
|
||||||
|
this.crew = crew;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue