Guest User

Untitled

a guest
Aug 13th, 2022
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 16.72 KB | None | 0 0
  1. import com.google.gson.annotations.Expose;
  2. import com.google.gson.annotations.SerializedName;
  3.  
  4. import java.util.List;
  5.  
  6. public class APIResponse {
  7.  
  8.         @SerializedName("count")
  9.         @Expose
  10.         private Integer count;
  11.         @SerializedName("next")
  12.         @Expose
  13.         private Object next;
  14.         @SerializedName("previous")
  15.         @Expose
  16.         private Object previous;
  17.         @SerializedName("results")
  18.         @Expose
  19.         private List<Result> results = null;
  20.         @SerializedName("user_platforms")
  21.         @Expose
  22.         private Boolean userPlatforms;
  23.  
  24.         public Integer getCount() {
  25.             return count;
  26.         }
  27.  
  28.         public void setCount(Integer count) {
  29.             this.count = count;
  30.         }
  31.  
  32.         public Object getNext() {
  33.             return next;
  34.         }
  35.  
  36.         public void setNext(Object next) {
  37.             this.next = next;
  38.         }
  39.  
  40.         public Object getPrevious() {
  41.             return previous;
  42.         }
  43.  
  44.         public void setPrevious(Object previous) {
  45.             this.previous = previous;
  46.         }
  47.  
  48.         public List<Result> getResults() {
  49.             return results;
  50.         }
  51.  
  52.         public void setResults(List<Result> results) {
  53.             this.results = results;
  54.         }
  55.  
  56.         public Boolean getUserPlatforms() {
  57.             return userPlatforms;
  58.         }
  59.  
  60.         public void setUserPlatforms(Boolean userPlatforms) {
  61.             this.userPlatforms = userPlatforms;
  62.         }
  63.  
  64.     }
  65.  
  66. class AddedByStatus {
  67.  
  68.     @SerializedName("yet")
  69.     @Expose
  70.     private Integer yet;
  71.     @SerializedName("owned")
  72.     @Expose
  73.     private Integer owned;
  74.     @SerializedName("beaten")
  75.     @Expose
  76.     private Integer beaten;
  77.     @SerializedName("toplay")
  78.     @Expose
  79.     private Integer toplay;
  80.     @SerializedName("dropped")
  81.     @Expose
  82.     private Integer dropped;
  83.     @SerializedName("playing")
  84.     @Expose
  85.     private Integer playing;
  86.  
  87.     public Integer getYet() {
  88.         return yet;
  89.     }
  90.  
  91.     public void setYet(Integer yet) {
  92.         this.yet = yet;
  93.     }
  94.  
  95.     public Integer getOwned() {
  96.         return owned;
  97.     }
  98.  
  99.     public void setOwned(Integer owned) {
  100.         this.owned = owned;
  101.     }
  102.  
  103.     public Integer getBeaten() {
  104.         return beaten;
  105.     }
  106.  
  107.     public void setBeaten(Integer beaten) {
  108.         this.beaten = beaten;
  109.     }
  110.  
  111.     public Integer getToplay() {
  112.         return toplay;
  113.     }
  114.  
  115.     public void setToplay(Integer toplay) {
  116.         this.toplay = toplay;
  117.     }
  118.  
  119.     public Integer getDropped() {
  120.         return dropped;
  121.     }
  122.  
  123.     public void setDropped(Integer dropped) {
  124.         this.dropped = dropped;
  125.     }
  126.  
  127.     public Integer getPlaying() {
  128.         return playing;
  129.     }
  130.  
  131.     public void setPlaying(Integer playing) {
  132.         this.playing = playing;
  133.     }
  134.  
  135. }
  136. class EsrbRating {
  137.  
  138.     @SerializedName("id")
  139.     @Expose
  140.     private Integer id;
  141.     @SerializedName("name")
  142.     @Expose
  143.     private String name;
  144.     @SerializedName("slug")
  145.     @Expose
  146.     private String slug;
  147.     @SerializedName("name_en")
  148.     @Expose
  149.     private String nameEn;
  150.     @SerializedName("name_ru")
  151.     @Expose
  152.     private String nameRu;
  153.  
  154.     public Integer getId() {
  155.         return id;
  156.     }
  157.  
  158.     public void setId(Integer id) {
  159.         this.id = id;
  160.     }
  161.  
  162.     public String getName() {
  163.         return name;
  164.     }
  165.  
  166.     public void setName(String name) {
  167.         this.name = name;
  168.     }
  169.  
  170.     public String getSlug() {
  171.         return slug;
  172.     }
  173.  
  174.     public void setSlug(String slug) {
  175.         this.slug = slug;
  176.     }
  177.  
  178.     public String getNameEn() {
  179.         return nameEn;
  180.     }
  181.  
  182.     public void setNameEn(String nameEn) {
  183.         this.nameEn = nameEn;
  184.     }
  185.  
  186.     public String getNameRu() {
  187.         return nameRu;
  188.     }
  189.  
  190.     public void setNameRu(String nameRu) {
  191.         this.nameRu = nameRu;
  192.     }
  193.  
  194. }
  195.  
  196. class Genre {
  197.  
  198.     @SerializedName("id")
  199.     @Expose
  200.     private Integer id;
  201.     @SerializedName("name")
  202.     @Expose
  203.     private String name;
  204.     @SerializedName("slug")
  205.     @Expose
  206.     private String slug;
  207.  
  208.     public Integer getId() {
  209.         return id;
  210.     }
  211.  
  212.     public void setId(Integer id) {
  213.         this.id = id;
  214.     }
  215.  
  216.     public String getName() {
  217.         return name;
  218.     }
  219.  
  220.     public void setName(String name) {
  221.         this.name = name;
  222.     }
  223.  
  224.     public String getSlug() {
  225.         return slug;
  226.     }
  227.  
  228.     public void setSlug(String slug) {
  229.         this.slug = slug;
  230.     }
  231.  
  232. }
  233. class ParentPlatform {
  234.  
  235.     @SerializedName("platform")
  236.     @Expose
  237.     private Platform__2 platform;
  238.  
  239.     public Platform__2 getPlatform() {
  240.         return platform;
  241.     }
  242.  
  243.     public void setPlatform(Platform__2 platform) {
  244.         this.platform = platform;
  245.     }
  246.  
  247. }
  248. class Platform {
  249.  
  250.     @SerializedName("platform")
  251.     @Expose
  252.     private Platform__1 platform;
  253.  
  254.     public Platform__1 getPlatform() {
  255.         return platform;
  256.     }
  257.  
  258.     public void setPlatform(Platform__1 platform) {
  259.         this.platform = platform;
  260.     }
  261.  
  262. }
  263. class Platform__1 {
  264.  
  265.     @SerializedName("id")
  266.     @Expose
  267.     private Integer id;
  268.     @SerializedName("name")
  269.     @Expose
  270.     private String name;
  271.     @SerializedName("slug")
  272.     @Expose
  273.     private String slug;
  274.  
  275.     public Integer getId() {
  276.         return id;
  277.     }
  278.  
  279.     public void setId(Integer id) {
  280.         this.id = id;
  281.     }
  282.  
  283.     public String getName() {
  284.         return name;
  285.     }
  286.  
  287.     public void setName(String name) {
  288.         this.name = name;
  289.     }
  290.  
  291.     public String getSlug() {
  292.         return slug;
  293.     }
  294.  
  295.     public void setSlug(String slug) {
  296.         this.slug = slug;
  297.     }
  298.  
  299. }
  300. class Platform__2 {
  301.  
  302.     @SerializedName("id")
  303.     @Expose
  304.     private Integer id;
  305.     @SerializedName("name")
  306.     @Expose
  307.     private String name;
  308.     @SerializedName("slug")
  309.     @Expose
  310.     private String slug;
  311.  
  312.     public Integer getId() {
  313.         return id;
  314.     }
  315.  
  316.     public void setId(Integer id) {
  317.         this.id = id;
  318.     }
  319.  
  320.     public String getName() {
  321.         return name;
  322.     }
  323.  
  324.     public void setName(String name) {
  325.         this.name = name;
  326.     }
  327.  
  328.     public String getSlug() {
  329.         return slug;
  330.     }
  331.  
  332.     public void setSlug(String slug) {
  333.         this.slug = slug;
  334.     }
  335.  
  336. }
  337. class Rating {
  338.  
  339.     @SerializedName("id")
  340.     @Expose
  341.     private Integer id;
  342.     @SerializedName("title")
  343.     @Expose
  344.     private String title;
  345.     @SerializedName("count")
  346.     @Expose
  347.     private Integer count;
  348.     @SerializedName("percent")
  349.     @Expose
  350.     private Double percent;
  351.  
  352.     public Integer getId() {
  353.         return id;
  354.     }
  355.  
  356.     public void setId(Integer id) {
  357.         this.id = id;
  358.     }
  359.  
  360.     public String getTitle() {
  361.         return title;
  362.     }
  363.  
  364.     public void setTitle(String title) {
  365.         this.title = title;
  366.     }
  367.  
  368.     public Integer getCount() {
  369.         return count;
  370.     }
  371.  
  372.     public void setCount(Integer count) {
  373.         this.count = count;
  374.     }
  375.  
  376.     public Double getPercent() {
  377.         return percent;
  378.     }
  379.  
  380.     public void setPercent(Double percent) {
  381.         this.percent = percent;
  382.     }
  383.  
  384. }
  385. class Result {
  386.  
  387.     @SerializedName("slug")
  388.     @Expose
  389.     private String slug;
  390.     @SerializedName("name")
  391.     @Expose
  392.     private String name;
  393.     @SerializedName("playtime")
  394.     @Expose
  395.     private Integer playtime;
  396.     @SerializedName("platforms")
  397.     @Expose
  398.     private List<Platform> platforms = null;
  399.     @SerializedName("stores")
  400.     @Expose
  401.     private Object stores;
  402.     @SerializedName("released")
  403.     @Expose
  404.     private String released;
  405.     @SerializedName("tba")
  406.     @Expose
  407.     private Boolean tba;
  408.     @SerializedName("background_image")
  409.     @Expose
  410.     private Object backgroundImage;
  411.     @SerializedName("rating")
  412.     @Expose
  413.     private Integer rating;
  414.     @SerializedName("rating_top")
  415.     @Expose
  416.     private Integer ratingTop;
  417.     @SerializedName("ratings")
  418.     @Expose
  419.     private List<Rating> ratings = null;
  420.     @SerializedName("ratings_count")
  421.     @Expose
  422.     private Integer ratingsCount;
  423.     @SerializedName("reviews_text_count")
  424.     @Expose
  425.     private Integer reviewsTextCount;
  426.     @SerializedName("added")
  427.     @Expose
  428.     private Integer added;
  429.     @SerializedName("added_by_status")
  430.     @Expose
  431.     private AddedByStatus addedByStatus;
  432.     @SerializedName("metacritic")
  433.     @Expose
  434.     private Integer metacritic;
  435.     @SerializedName("suggestions_count")
  436.     @Expose
  437.     private Integer suggestionsCount;
  438.     @SerializedName("updated")
  439.     @Expose
  440.     private String updated;
  441.     @SerializedName("id")
  442.     @Expose
  443.     private Integer id;
  444.     @SerializedName("score")
  445.     @Expose
  446.     private Object score;
  447.     @SerializedName("clip")
  448.     @Expose
  449.     private Object clip;
  450.     @SerializedName("tags")
  451.     @Expose
  452.     private List<Tag> tags = null;
  453.     @SerializedName("esrb_rating")
  454.     @Expose
  455.     private EsrbRating esrbRating;
  456.     @SerializedName("user_game")
  457.     @Expose
  458.     private Object userGame;
  459.     @SerializedName("reviews_count")
  460.     @Expose
  461.     private Integer reviewsCount;
  462.     @SerializedName("saturated_color")
  463.     @Expose
  464.     private String saturatedColor;
  465.     @SerializedName("dominant_color")
  466.     @Expose
  467.     private String dominantColor;
  468.     @SerializedName("short_screenshots")
  469.     @Expose
  470.     private List<ShortScreenshot> shortScreenshots = null;
  471.     @SerializedName("parent_platforms")
  472.     @Expose
  473.     private List<ParentPlatform> parentPlatforms = null;
  474.     @SerializedName("genres")
  475.     @Expose
  476.     private List<Genre> genres = null;
  477.     @SerializedName("community_rating")
  478.     @Expose
  479.     private Integer communityRating;
  480.  
  481.     public String getSlug() {
  482.         return slug;
  483.     }
  484.  
  485.     public void setSlug(String slug) {
  486.         this.slug = slug;
  487.     }
  488.  
  489.     public String getName() {
  490.         return name;
  491.     }
  492.  
  493.     public void setName(String name) {
  494.         this.name = name;
  495.     }
  496.  
  497.     public Integer getPlaytime() {
  498.         return playtime;
  499.     }
  500.  
  501.     public void setPlaytime(Integer playtime) {
  502.         this.playtime = playtime;
  503.     }
  504.  
  505.     public List<Platform> getPlatforms() {
  506.         return platforms;
  507.     }
  508.  
  509.     public void setPlatforms(List<Platform> platforms) {
  510.         this.platforms = platforms;
  511.     }
  512.  
  513.     public Object getStores() {
  514.         return stores;
  515.     }
  516.  
  517.     public void setStores(Object stores) {
  518.         this.stores = stores;
  519.     }
  520.  
  521.     public String getReleased() {
  522.         return released;
  523.     }
  524.  
  525.     public void setReleased(String released) {
  526.         this.released = released;
  527.     }
  528.  
  529.     public Boolean getTba() {
  530.         return tba;
  531.     }
  532.  
  533.     public void setTba(Boolean tba) {
  534.         this.tba = tba;
  535.     }
  536.  
  537.     public Object getBackgroundImage() {
  538.         return backgroundImage;
  539.     }
  540.  
  541.     public void setBackgroundImage(Object backgroundImage) {
  542.         this.backgroundImage = backgroundImage;
  543.     }
  544.  
  545.     public Integer getRating() {
  546.         return rating;
  547.     }
  548.  
  549.     public void setRating(Integer rating) {
  550.         this.rating = rating;
  551.     }
  552.  
  553.     public Integer getRatingTop() {
  554.         return ratingTop;
  555.     }
  556.  
  557.     public void setRatingTop(Integer ratingTop) {
  558.         this.ratingTop = ratingTop;
  559.     }
  560.  
  561.     public List<Rating> getRatings() {
  562.         return ratings;
  563.     }
  564.  
  565.     public void setRatings(List<Rating> ratings) {
  566.         this.ratings = ratings;
  567.     }
  568.  
  569.     public Integer getRatingsCount() {
  570.         return ratingsCount;
  571.     }
  572.  
  573.     public void setRatingsCount(Integer ratingsCount) {
  574.         this.ratingsCount = ratingsCount;
  575.     }
  576.  
  577.     public Integer getReviewsTextCount() {
  578.         return reviewsTextCount;
  579.     }
  580.  
  581.     public void setReviewsTextCount(Integer reviewsTextCount) {
  582.         this.reviewsTextCount = reviewsTextCount;
  583.     }
  584.  
  585.     public Integer getAdded() {
  586.         return added;
  587.     }
  588.  
  589.     public void setAdded(Integer added) {
  590.         this.added = added;
  591.     }
  592.  
  593.     public AddedByStatus getAddedByStatus() {
  594.         return addedByStatus;
  595.     }
  596.  
  597.     public void setAddedByStatus(AddedByStatus addedByStatus) {
  598.         this.addedByStatus = addedByStatus;
  599.     }
  600.  
  601.     public Integer getMetacritic() {
  602.         return metacritic;
  603.     }
  604.  
  605.     public void setMetacritic(Integer metacritic) {
  606.         this.metacritic = metacritic;
  607.     }
  608.  
  609.     public Integer getSuggestionsCount() {
  610.         return suggestionsCount;
  611.     }
  612.  
  613.     public void setSuggestionsCount(Integer suggestionsCount) {
  614.         this.suggestionsCount = suggestionsCount;
  615.     }
  616.  
  617.     public String getUpdated() {
  618.         return updated;
  619.     }
  620.  
  621.     public void setUpdated(String updated) {
  622.         this.updated = updated;
  623.     }
  624.  
  625.     public Integer getId() {
  626.         return id;
  627.     }
  628.  
  629.     public void setId(Integer id) {
  630.         this.id = id;
  631.     }
  632.  
  633.     public Object getScore() {
  634.         return score;
  635.     }
  636.  
  637.     public void setScore(Object score) {
  638.         this.score = score;
  639.     }
  640.  
  641.     public Object getClip() {
  642.         return clip;
  643.     }
  644.  
  645.     public void setClip(Object clip) {
  646.         this.clip = clip;
  647.     }
  648.  
  649.     public List<Tag> getTags() {
  650.         return tags;
  651.     }
  652.  
  653.     public void setTags(List<Tag> tags) {
  654.         this.tags = tags;
  655.     }
  656.  
  657.     public EsrbRating getEsrbRating() {
  658.         return esrbRating;
  659.     }
  660.  
  661.     public void setEsrbRating(EsrbRating esrbRating) {
  662.         this.esrbRating = esrbRating;
  663.     }
  664.  
  665.     public Object getUserGame() {
  666.         return userGame;
  667.     }
  668.  
  669.     public void setUserGame(Object userGame) {
  670.         this.userGame = userGame;
  671.     }
  672.  
  673.     public Integer getReviewsCount() {
  674.         return reviewsCount;
  675.     }
  676.  
  677.     public void setReviewsCount(Integer reviewsCount) {
  678.         this.reviewsCount = reviewsCount;
  679.     }
  680.  
  681.     public String getSaturatedColor() {
  682.         return saturatedColor;
  683.     }
  684.  
  685.     public void setSaturatedColor(String saturatedColor) {
  686.         this.saturatedColor = saturatedColor;
  687.     }
  688.  
  689.     public String getDominantColor() {
  690.         return dominantColor;
  691.     }
  692.  
  693.     public void setDominantColor(String dominantColor) {
  694.         this.dominantColor = dominantColor;
  695.     }
  696.  
  697.     public List<ShortScreenshot> getShortScreenshots() {
  698.         return shortScreenshots;
  699.     }
  700.  
  701.     public void setShortScreenshots(List<ShortScreenshot> shortScreenshots) {
  702.         this.shortScreenshots = shortScreenshots;
  703.     }
  704.  
  705.     public List<ParentPlatform> getParentPlatforms() {
  706.         return parentPlatforms;
  707.     }
  708.  
  709.     public void setParentPlatforms(List<ParentPlatform> parentPlatforms) {
  710.         this.parentPlatforms = parentPlatforms;
  711.     }
  712.  
  713.     public List<Genre> getGenres() {
  714.         return genres;
  715.     }
  716.  
  717.     public void setGenres(List<Genre> genres) {
  718.         this.genres = genres;
  719.     }
  720.  
  721.     public Integer getCommunityRating() {
  722.         return communityRating;
  723.     }
  724.  
  725.     public void setCommunityRating(Integer communityRating) {
  726.         this.communityRating = communityRating;
  727.     }
  728.  
  729. }
  730. class ShortScreenshot {
  731.  
  732.     @SerializedName("id")
  733.     @Expose
  734.     private Integer id;
  735.     @SerializedName("image")
  736.     @Expose
  737.     private String image;
  738.  
  739.     public Integer getId() {
  740.         return id;
  741.     }
  742.  
  743.     public void setId(Integer id) {
  744.         this.id = id;
  745.     }
  746.  
  747.     public String getImage() {
  748.         return image;
  749.     }
  750.  
  751.     public void setImage(String image) {
  752.         this.image = image;
  753.     }
  754.  
  755. }
  756. class Tag {
  757.  
  758.     @SerializedName("id")
  759.     @Expose
  760.     private Integer id;
  761.     @SerializedName("name")
  762.     @Expose
  763.     private String name;
  764.     @SerializedName("slug")
  765.     @Expose
  766.     private String slug;
  767.     @SerializedName("language")
  768.     @Expose
  769.     private String language;
  770.     @SerializedName("games_count")
  771.     @Expose
  772.     private Integer gamesCount;
  773.     @SerializedName("image_background")
  774.     @Expose
  775.     private String imageBackground;
  776.  
  777.     public Integer getId() {
  778.         return id;
  779.     }
  780.  
  781.     public void setId(Integer id) {
  782.         this.id = id;
  783.     }
  784.  
  785.     public String getName() {
  786.         return name;
  787.     }
  788.  
  789.     public void setName(String name) {
  790.         this.name = name;
  791.     }
  792.  
  793.     public String getSlug() {
  794.         return slug;
  795.     }
  796.  
  797.     public void setSlug(String slug) {
  798.         this.slug = slug;
  799.     }
  800.  
  801.     public String getLanguage() {
  802.         return language;
  803.     }
  804.  
  805.     public void setLanguage(String language) {
  806.         this.language = language;
  807.     }
  808.  
  809.     public Integer getGamesCount() {
  810.         return gamesCount;
  811.     }
  812.  
  813.     public void setGamesCount(Integer gamesCount) {
  814.         this.gamesCount = gamesCount;
  815.     }
  816.  
  817.     public String getImageBackground() {
  818.         return imageBackground;
  819.     }
  820.  
  821.     public void setImageBackground(String imageBackground) {
  822.         this.imageBackground = imageBackground;
  823.     }
  824.  
  825. }
Add Comment
Please, Sign In to add comment