Add missing properties to MovieDbList

Tidy up other code
master
Stuart Boston 13 years ago
parent 064117e66d
commit 00bdfaf6a7

@ -1076,8 +1076,8 @@ public class TheMovieDbApi {
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex); throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
} }
} }
//</editor-fold> //</editor-fold>
//<editor-fold defaultstate="collapsed" desc="Collection Functions"> //<editor-fold defaultstate="collapsed" desc="Collection Functions">
/** /**
* This method is used to retrieve all of the basic information about a movie collection. * This method is used to retrieve all of the basic information about a movie collection.
@ -1818,6 +1818,7 @@ public class TheMovieDbApi {
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex); throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
} }
} }
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc="Keyword Functions"> //<editor-fold defaultstate="collapsed" desc="Keyword Functions">
/** /**

@ -197,6 +197,10 @@ public class MovieDb extends AbstractJsonMapping {
public String getStatus() { public String getStatus() {
return status; return status;
} }
public float getUserRating() {
return userRating;
}
// </editor-fold> // </editor-fold>
// <editor-fold defaultstate="collapsed" desc="Setter methods"> // <editor-fold defaultstate="collapsed" desc="Setter methods">
@ -292,7 +296,11 @@ public class MovieDb extends AbstractJsonMapping {
this.status = status; this.status = status;
} }
public void setUserRating(float userRating) {
this.userRating = userRating;
}
// </editor-fold> // </editor-fold>
//<editor-fold defaultstate="collapsed" desc="AppendToResponse Getters"> //<editor-fold defaultstate="collapsed" desc="AppendToResponse Getters">
public List<AlternativeTitle> getAlternativeTitles() { public List<AlternativeTitle> getAlternativeTitles() {
return alternativeTitles.getTitles(); return alternativeTitles.getTitles();
@ -337,6 +345,7 @@ public class MovieDb extends AbstractJsonMapping {
public List<Reviews> getReviews() { public List<Reviews> getReviews() {
return reviews.getReviews(); return reviews.getReviews();
} }
// </editor-fold>
//<editor-fold defaultstate="collapsed" desc="AppendToResponse Setters"> //<editor-fold defaultstate="collapsed" desc="AppendToResponse Setters">
public void setAlternativeTitles(WrapperAlternativeTitles alternativeTitles) { public void setAlternativeTitles(WrapperAlternativeTitles alternativeTitles) {
@ -378,6 +387,7 @@ public class MovieDb extends AbstractJsonMapping {
public void setReviews(WrapperReviews reviews) { public void setReviews(WrapperReviews reviews) {
this.reviews = reviews; this.reviews = reviews;
} }
// </editor-fold>
//<editor-fold defaultstate="collapsed" desc="Equals and HashCode"> //<editor-fold defaultstate="collapsed" desc="Equals and HashCode">
@Override @Override
@ -409,12 +419,5 @@ public class MovieDb extends AbstractJsonMapping {
hash = 89 * hash + this.runtime; hash = 89 * hash + this.runtime;
return hash; return hash;
} }
// </editor-fold>
public float getUserRating() {
return userRating;
}
public void setUserRating(float userRating) {
this.userRating = userRating;
}
} }

@ -29,7 +29,7 @@ import java.util.List;
* *
* @author stuart.boston * @author stuart.boston
*/ */
public class MovieDbList { public class MovieDbList extends AbstractJsonMapping {
/* /*
* Properties * Properties
@ -52,6 +52,10 @@ public class MovieDbList {
private String name; private String name;
@JsonProperty("poster_path") @JsonProperty("poster_path")
private String posterPath; private String posterPath;
@JsonProperty("status_code")
private String statusCode;
@JsonProperty("status_message")
private String statusMessage;
//<editor-fold defaultstate="collapsed" desc="Getter Methods"> //<editor-fold defaultstate="collapsed" desc="Getter Methods">
public String getId() { public String getId() {
@ -90,6 +94,16 @@ public class MovieDbList {
return posterPath; return posterPath;
} }
public String getStatusCode() {
return statusCode;
}
public String getStatusMessage() {
return statusMessage;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc="Setter Methods">
public void setId(String id) { public void setId(String id) {
this.id = id; this.id = id;
} }
@ -125,4 +139,13 @@ public class MovieDbList {
public void setPosterPath(String posterPath) { public void setPosterPath(String posterPath) {
this.posterPath = posterPath; this.posterPath = posterPath;
} }
public void setStatusCode(String statusCode) {
this.statusCode = statusCode;
}
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
//</editor-fold>
} }

Loading…
Cancel
Save