From 0b4afb228077f9465c5e124e0d5ab037230e0d3c Mon Sep 17 00:00:00 2001 From: Hammy Date: Sun, 6 Jun 2021 21:34:05 +0100 Subject: [PATCH] Update documentation & add new fields The API was returning fields that were not specified in the API reference, Series.java has been updated to reflect the actual API response --- .../org/goudham/me/api/entity/series/Series.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/org/goudham/me/api/entity/series/Series.java b/src/main/java/org/goudham/me/api/entity/series/Series.java index f35546e..ef86aed 100644 --- a/src/main/java/org/goudham/me/api/entity/series/Series.java +++ b/src/main/java/org/goudham/me/api/entity/series/Series.java @@ -26,6 +26,7 @@ import java.util.Objects; *
  • {@link String displayPicture}
  • *
  • {@link String url}
  • *
  • {@link Studio}
  • + *
  • {@link String} type
  • *
  • {@link Integer id}
  • * * @@ -44,6 +45,7 @@ import java.util.Objects; "display_picture", "url", "studio", + "type", "id" }) @Generated("jsonschema2pojo") @@ -145,6 +147,14 @@ public class Series { @JsonPropertyDescription("Contains information on a given animation or game development studio") private Studio studio; + /** + * Type of {@link Series}. E.g TV, Game + * + */ + @JsonProperty("type") + @JsonPropertyDescription("Type of FilteredSeries. E.g TV, Game") + private String type; + /** * The internal ID of the {@link Series} * @@ -271,6 +281,12 @@ public class Series { this.studio = studio; } + @JsonProperty("type") + public String getType() { return type; } + + @JsonProperty("type") + public void setType(String type) { this.type = type; } + @JsonProperty("id") public Integer getId() { return id;