Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.google.gson.annotations.Expose;
- import com.google.gson.annotations.SerializedName;
- import java.util.List;
- public class APIResponse {
- @SerializedName("count")
- @Expose
- private Integer count;
- @SerializedName("next")
- @Expose
- private Object next;
- @SerializedName("previous")
- @Expose
- private Object previous;
- @SerializedName("results")
- @Expose
- private List<Result> results = null;
- @SerializedName("user_platforms")
- @Expose
- private Boolean userPlatforms;
- public Integer getCount() {
- return count;
- }
- public void setCount(Integer count) {
- this.count = count;
- }
- public Object getNext() {
- return next;
- }
- public void setNext(Object next) {
- this.next = next;
- }
- public Object getPrevious() {
- return previous;
- }
- public void setPrevious(Object previous) {
- this.previous = previous;
- }
- public List<Result> getResults() {
- return results;
- }
- public void setResults(List<Result> results) {
- this.results = results;
- }
- public Boolean getUserPlatforms() {
- return userPlatforms;
- }
- public void setUserPlatforms(Boolean userPlatforms) {
- this.userPlatforms = userPlatforms;
- }
- }
- class AddedByStatus {
- @SerializedName("yet")
- @Expose
- private Integer yet;
- @SerializedName("owned")
- @Expose
- private Integer owned;
- @SerializedName("beaten")
- @Expose
- private Integer beaten;
- @SerializedName("toplay")
- @Expose
- private Integer toplay;
- @SerializedName("dropped")
- @Expose
- private Integer dropped;
- @SerializedName("playing")
- @Expose
- private Integer playing;
- public Integer getYet() {
- return yet;
- }
- public void setYet(Integer yet) {
- this.yet = yet;
- }
- public Integer getOwned() {
- return owned;
- }
- public void setOwned(Integer owned) {
- this.owned = owned;
- }
- public Integer getBeaten() {
- return beaten;
- }
- public void setBeaten(Integer beaten) {
- this.beaten = beaten;
- }
- public Integer getToplay() {
- return toplay;
- }
- public void setToplay(Integer toplay) {
- this.toplay = toplay;
- }
- public Integer getDropped() {
- return dropped;
- }
- public void setDropped(Integer dropped) {
- this.dropped = dropped;
- }
- public Integer getPlaying() {
- return playing;
- }
- public void setPlaying(Integer playing) {
- this.playing = playing;
- }
- }
- class EsrbRating {
- @SerializedName("id")
- @Expose
- private Integer id;
- @SerializedName("name")
- @Expose
- private String name;
- @SerializedName("slug")
- @Expose
- private String slug;
- @SerializedName("name_en")
- @Expose
- private String nameEn;
- @SerializedName("name_ru")
- @Expose
- private String nameRu;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getSlug() {
- return slug;
- }
- public void setSlug(String slug) {
- this.slug = slug;
- }
- public String getNameEn() {
- return nameEn;
- }
- public void setNameEn(String nameEn) {
- this.nameEn = nameEn;
- }
- public String getNameRu() {
- return nameRu;
- }
- public void setNameRu(String nameRu) {
- this.nameRu = nameRu;
- }
- }
- class Genre {
- @SerializedName("id")
- @Expose
- private Integer id;
- @SerializedName("name")
- @Expose
- private String name;
- @SerializedName("slug")
- @Expose
- private String slug;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getSlug() {
- return slug;
- }
- public void setSlug(String slug) {
- this.slug = slug;
- }
- }
- class ParentPlatform {
- @SerializedName("platform")
- @Expose
- private Platform__2 platform;
- public Platform__2 getPlatform() {
- return platform;
- }
- public void setPlatform(Platform__2 platform) {
- this.platform = platform;
- }
- }
- class Platform {
- @SerializedName("platform")
- @Expose
- private Platform__1 platform;
- public Platform__1 getPlatform() {
- return platform;
- }
- public void setPlatform(Platform__1 platform) {
- this.platform = platform;
- }
- }
- class Platform__1 {
- @SerializedName("id")
- @Expose
- private Integer id;
- @SerializedName("name")
- @Expose
- private String name;
- @SerializedName("slug")
- @Expose
- private String slug;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getSlug() {
- return slug;
- }
- public void setSlug(String slug) {
- this.slug = slug;
- }
- }
- class Platform__2 {
- @SerializedName("id")
- @Expose
- private Integer id;
- @SerializedName("name")
- @Expose
- private String name;
- @SerializedName("slug")
- @Expose
- private String slug;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getSlug() {
- return slug;
- }
- public void setSlug(String slug) {
- this.slug = slug;
- }
- }
- class Rating {
- @SerializedName("id")
- @Expose
- private Integer id;
- @SerializedName("title")
- @Expose
- private String title;
- @SerializedName("count")
- @Expose
- private Integer count;
- @SerializedName("percent")
- @Expose
- private Double percent;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public Integer getCount() {
- return count;
- }
- public void setCount(Integer count) {
- this.count = count;
- }
- public Double getPercent() {
- return percent;
- }
- public void setPercent(Double percent) {
- this.percent = percent;
- }
- }
- class Result {
- @SerializedName("slug")
- @Expose
- private String slug;
- @SerializedName("name")
- @Expose
- private String name;
- @SerializedName("playtime")
- @Expose
- private Integer playtime;
- @SerializedName("platforms")
- @Expose
- private List<Platform> platforms = null;
- @SerializedName("stores")
- @Expose
- private Object stores;
- @SerializedName("released")
- @Expose
- private String released;
- @SerializedName("tba")
- @Expose
- private Boolean tba;
- @SerializedName("background_image")
- @Expose
- private Object backgroundImage;
- @SerializedName("rating")
- @Expose
- private Integer rating;
- @SerializedName("rating_top")
- @Expose
- private Integer ratingTop;
- @SerializedName("ratings")
- @Expose
- private List<Rating> ratings = null;
- @SerializedName("ratings_count")
- @Expose
- private Integer ratingsCount;
- @SerializedName("reviews_text_count")
- @Expose
- private Integer reviewsTextCount;
- @SerializedName("added")
- @Expose
- private Integer added;
- @SerializedName("added_by_status")
- @Expose
- private AddedByStatus addedByStatus;
- @SerializedName("metacritic")
- @Expose
- private Integer metacritic;
- @SerializedName("suggestions_count")
- @Expose
- private Integer suggestionsCount;
- @SerializedName("updated")
- @Expose
- private String updated;
- @SerializedName("id")
- @Expose
- private Integer id;
- @SerializedName("score")
- @Expose
- private Object score;
- @SerializedName("clip")
- @Expose
- private Object clip;
- @SerializedName("tags")
- @Expose
- private List<Tag> tags = null;
- @SerializedName("esrb_rating")
- @Expose
- private EsrbRating esrbRating;
- @SerializedName("user_game")
- @Expose
- private Object userGame;
- @SerializedName("reviews_count")
- @Expose
- private Integer reviewsCount;
- @SerializedName("saturated_color")
- @Expose
- private String saturatedColor;
- @SerializedName("dominant_color")
- @Expose
- private String dominantColor;
- @SerializedName("short_screenshots")
- @Expose
- private List<ShortScreenshot> shortScreenshots = null;
- @SerializedName("parent_platforms")
- @Expose
- private List<ParentPlatform> parentPlatforms = null;
- @SerializedName("genres")
- @Expose
- private List<Genre> genres = null;
- @SerializedName("community_rating")
- @Expose
- private Integer communityRating;
- public String getSlug() {
- return slug;
- }
- public void setSlug(String slug) {
- this.slug = slug;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Integer getPlaytime() {
- return playtime;
- }
- public void setPlaytime(Integer playtime) {
- this.playtime = playtime;
- }
- public List<Platform> getPlatforms() {
- return platforms;
- }
- public void setPlatforms(List<Platform> platforms) {
- this.platforms = platforms;
- }
- public Object getStores() {
- return stores;
- }
- public void setStores(Object stores) {
- this.stores = stores;
- }
- public String getReleased() {
- return released;
- }
- public void setReleased(String released) {
- this.released = released;
- }
- public Boolean getTba() {
- return tba;
- }
- public void setTba(Boolean tba) {
- this.tba = tba;
- }
- public Object getBackgroundImage() {
- return backgroundImage;
- }
- public void setBackgroundImage(Object backgroundImage) {
- this.backgroundImage = backgroundImage;
- }
- public Integer getRating() {
- return rating;
- }
- public void setRating(Integer rating) {
- this.rating = rating;
- }
- public Integer getRatingTop() {
- return ratingTop;
- }
- public void setRatingTop(Integer ratingTop) {
- this.ratingTop = ratingTop;
- }
- public List<Rating> getRatings() {
- return ratings;
- }
- public void setRatings(List<Rating> ratings) {
- this.ratings = ratings;
- }
- public Integer getRatingsCount() {
- return ratingsCount;
- }
- public void setRatingsCount(Integer ratingsCount) {
- this.ratingsCount = ratingsCount;
- }
- public Integer getReviewsTextCount() {
- return reviewsTextCount;
- }
- public void setReviewsTextCount(Integer reviewsTextCount) {
- this.reviewsTextCount = reviewsTextCount;
- }
- public Integer getAdded() {
- return added;
- }
- public void setAdded(Integer added) {
- this.added = added;
- }
- public AddedByStatus getAddedByStatus() {
- return addedByStatus;
- }
- public void setAddedByStatus(AddedByStatus addedByStatus) {
- this.addedByStatus = addedByStatus;
- }
- public Integer getMetacritic() {
- return metacritic;
- }
- public void setMetacritic(Integer metacritic) {
- this.metacritic = metacritic;
- }
- public Integer getSuggestionsCount() {
- return suggestionsCount;
- }
- public void setSuggestionsCount(Integer suggestionsCount) {
- this.suggestionsCount = suggestionsCount;
- }
- public String getUpdated() {
- return updated;
- }
- public void setUpdated(String updated) {
- this.updated = updated;
- }
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public Object getScore() {
- return score;
- }
- public void setScore(Object score) {
- this.score = score;
- }
- public Object getClip() {
- return clip;
- }
- public void setClip(Object clip) {
- this.clip = clip;
- }
- public List<Tag> getTags() {
- return tags;
- }
- public void setTags(List<Tag> tags) {
- this.tags = tags;
- }
- public EsrbRating getEsrbRating() {
- return esrbRating;
- }
- public void setEsrbRating(EsrbRating esrbRating) {
- this.esrbRating = esrbRating;
- }
- public Object getUserGame() {
- return userGame;
- }
- public void setUserGame(Object userGame) {
- this.userGame = userGame;
- }
- public Integer getReviewsCount() {
- return reviewsCount;
- }
- public void setReviewsCount(Integer reviewsCount) {
- this.reviewsCount = reviewsCount;
- }
- public String getSaturatedColor() {
- return saturatedColor;
- }
- public void setSaturatedColor(String saturatedColor) {
- this.saturatedColor = saturatedColor;
- }
- public String getDominantColor() {
- return dominantColor;
- }
- public void setDominantColor(String dominantColor) {
- this.dominantColor = dominantColor;
- }
- public List<ShortScreenshot> getShortScreenshots() {
- return shortScreenshots;
- }
- public void setShortScreenshots(List<ShortScreenshot> shortScreenshots) {
- this.shortScreenshots = shortScreenshots;
- }
- public List<ParentPlatform> getParentPlatforms() {
- return parentPlatforms;
- }
- public void setParentPlatforms(List<ParentPlatform> parentPlatforms) {
- this.parentPlatforms = parentPlatforms;
- }
- public List<Genre> getGenres() {
- return genres;
- }
- public void setGenres(List<Genre> genres) {
- this.genres = genres;
- }
- public Integer getCommunityRating() {
- return communityRating;
- }
- public void setCommunityRating(Integer communityRating) {
- this.communityRating = communityRating;
- }
- }
- class ShortScreenshot {
- @SerializedName("id")
- @Expose
- private Integer id;
- @SerializedName("image")
- @Expose
- private String image;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getImage() {
- return image;
- }
- public void setImage(String image) {
- this.image = image;
- }
- }
- class Tag {
- @SerializedName("id")
- @Expose
- private Integer id;
- @SerializedName("name")
- @Expose
- private String name;
- @SerializedName("slug")
- @Expose
- private String slug;
- @SerializedName("language")
- @Expose
- private String language;
- @SerializedName("games_count")
- @Expose
- private Integer gamesCount;
- @SerializedName("image_background")
- @Expose
- private String imageBackground;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getSlug() {
- return slug;
- }
- public void setSlug(String slug) {
- this.slug = slug;
- }
- public String getLanguage() {
- return language;
- }
- public void setLanguage(String language) {
- this.language = language;
- }
- public Integer getGamesCount() {
- return gamesCount;
- }
- public void setGamesCount(Integer gamesCount) {
- this.gamesCount = gamesCount;
- }
- public String getImageBackground() {
- return imageBackground;
- }
- public void setImageBackground(String imageBackground) {
- this.imageBackground = imageBackground;
- }
- }
Add Comment
Please, Sign In to add comment