Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------com.example.Example.java-----------------------------------
- package com.example;
- import java.util.ArrayList;
- import java.util.List;
- import javax.annotation.Generated;
- import com.google.gson.annotations.Expose;
- import com.google.gson.annotations.SerializedName;
- @Generated("org.jsonschema2pojo")
- public class Example {
- @SerializedName("Игры")
- @Expose
- public List<Game> Games = new ArrayList<Game>();
- @SerializedName("Статьи")
- @Expose
- public List<Genre> Genres = new ArrayList<Genre>();
- }
- -----------------------------------com.example.Game.java-----------------------------------
- package com.example;
- import java.util.ArrayList;
- import java.util.List;
- import javax.annotation.Generated;
- import com.google.gson.annotations.Expose;
- import com.google.gson.annotations.SerializedName;
- @Generated("org.jsonschema2pojo")
- public class Game {
- @SerializedName("category")
- @Expose
- public String category;
- @SerializedName("enable_likes")
- @Expose
- public Integer enableLikes;
- @SerializedName("icons")
- @Expose
- public List<Object> icons = new ArrayList<Object>();
- @SerializedName("id")
- @Expose
- public String id;
- @SerializedName("name")
- @Expose
- public String name;
- @SerializedName("pages")
- @Expose
- public Integer pages;
- }
- -----------------------------------com.example.Genre.java-----------------------------------
- package com.example;
- import java.util.ArrayList;
- import java.util.List;
- import javax.annotation.Generated;
- import com.google.gson.annotations.Expose;
- import com.google.gson.annotations.SerializedName;
- @Generated("org.jsonschema2pojo")
- public class Genre {
- @SerializedName("category")
- @Expose
- public String category;
- @SerializedName("enable_likes")
- @Expose
- public Integer enableLikes;
- @SerializedName("icons")
- @Expose
- public List<Object> icons = new ArrayList<Object>();
- @SerializedName("id")
- @Expose
- public String id;
- @SerializedName("name")
- @Expose
- public String name;
- @SerializedName("pages")
- @Expose
- public Integer pages;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement