Project-HomeFlix/src/main/java/org/mosad/homeflix/datatypes/OMDbAPIResponseDataType.java

269 lines
5.3 KiB
Java
Raw Normal View History

/**
* Project-HomeFlix
*
* Copyright 2018-2019 <@Seil0>
*
* This program 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
* (at your option) any later version.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
package org.mosad.homeflix.datatypes;
public class OMDbAPIResponseDataType {
private String title = "";
private String year = "";
private String rated = "";
private String released = "";
private String season = "";
private String episode = "";
private String runtime = "";
private String genre = "";
private String director = "";
private String writer = "";
private String actors = "";
private String plot = "";
private String language = "";
private String country = "";
private String awards = "";
private String poster = "";
private String metascore = "";
private String imdbRating = "";
private String imdbVotes = "";
private String imdbID = "";
private String type = "";
private String dvd = "";
private String boxOffice = "";
private String production = "";
private String website = "";
private String response = "";
/**
* OMDbAPIResponseDataType is the data-type for the omdbAPI response
*/
public OMDbAPIResponseDataType() {
// Auto-generated constructor stub
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year == null ? "N/A" : year;
}
public String getRated() {
return rated;
}
public void setRated(String rated) {
this.rated = rated == null ? "N/A" : rated;
}
public String getReleased() {
return released;
}
public void setReleased(String released) {
this.released = released == null ? "N/A" : released;
}
public String getSeason() {
return season;
}
public void setSeason(String season) {
this.season = season;
}
public String getEpisode() {
return episode;
}
public void setEpisode(String episode) {
this.episode = episode;
}
public String getRuntime() {
return runtime;
}
public void setRuntime(String runtime) {
this.runtime = runtime;
}
public String getGenre() {
return genre;
}
public void setGenre(String genre) {
this.genre = genre;
}
public String getDirector() {
return director;
}
public void setDirector(String director) {
this.director = director == null ? "N/A" : director;
}
public String getWriter() {
return writer;
}
public void setWriter(String writer) {
this.writer = writer == null ? "N/A" : writer;
}
public String getActors() {
return actors;
}
public void setActors(String actors) {
this.actors = actors == null ? "N/A" : actors;
}
public String getPlot() {
return plot;
}
public void setPlot(String plot) {
this.plot = plot == null ? "N/A" : plot;
}
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language == null ? "N/A" : language;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country == null ? "N/A" : country;
}
public String getAwards() {
return awards;
}
public void setAwards(String awards) {
this.awards = awards == null ? "N/A" : awards;
}
public String getPoster() {
return poster;
}
public void setPoster(String poster) {
this.poster = poster;
}
public String getMetascore() {
return metascore;
}
public void setMetascore(String metascore) {
this.metascore = metascore == null ? "N/A" : metascore;
}
public String getImdbRating() {
return imdbRating;
}
public void setImdbRating(String imdbRating) {
this.imdbRating = imdbRating == null ? "N/A" : imdbRating;
}
public String getImdbVotes() {
return imdbVotes;
}
public void setImdbVotes(String imdbVotes) {
this.imdbVotes = imdbVotes == null ? "N/A" : imdbVotes;
}
public String getImdbID() {
return imdbID;
}
public void setImdbID(String imdbID) {
this.imdbID = imdbID;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getDvd() {
return dvd;
}
public void setDvd(String dvd) {
this.dvd = dvd == null ? "N/A" : dvd;
}
public String getBoxOffice() {
return boxOffice;
}
public void setBoxOffice(String boxOffice) {
this.boxOffice = boxOffice == null ? "N/A" : boxOffice;
}
public String getProduction() {
return production;
}
public void setProduction(String production) {
this.production = production == null ? "N/A" : production;
}
public String getWebsite() {
return website;
}
public void setWebsite(String website) {
this.website = website == null ? "N/A" : website;
}
public String getResponse() {
return response;
}
public void setResponse(String response) {
this.response = response;
}
}