Advertisement
Guest User

Untitled

a guest
Feb 29th, 2016
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.02 KB | None | 0 0
  1. -----------------------------------com.example.Example.java-----------------------------------
  2.  
  3. package com.example;
  4.  
  5. import java.util.ArrayList;
  6. import java.util.List;
  7. import javax.annotation.Generated;
  8. import com.google.gson.annotations.Expose;
  9. import com.google.gson.annotations.SerializedName;
  10.  
  11. @Generated("org.jsonschema2pojo")
  12. public class Example {
  13.  
  14. @SerializedName("Игры")
  15. @Expose
  16. public List<Game> Games = new ArrayList<Game>();
  17. @SerializedName("Статьи")
  18. @Expose
  19. public List<Genre> Genres = new ArrayList<Genre>();
  20.  
  21. }
  22. -----------------------------------com.example.Game.java-----------------------------------
  23.  
  24. package com.example;
  25.  
  26. import java.util.ArrayList;
  27. import java.util.List;
  28. import javax.annotation.Generated;
  29. import com.google.gson.annotations.Expose;
  30. import com.google.gson.annotations.SerializedName;
  31.  
  32. @Generated("org.jsonschema2pojo")
  33. public class Game {
  34.  
  35. @SerializedName("category")
  36. @Expose
  37. public String category;
  38. @SerializedName("enable_likes")
  39. @Expose
  40. public Integer enableLikes;
  41. @SerializedName("icons")
  42. @Expose
  43. public List<Object> icons = new ArrayList<Object>();
  44. @SerializedName("id")
  45. @Expose
  46. public String id;
  47. @SerializedName("name")
  48. @Expose
  49. public String name;
  50. @SerializedName("pages")
  51. @Expose
  52. public Integer pages;
  53.  
  54. }
  55. -----------------------------------com.example.Genre.java-----------------------------------
  56.  
  57. package com.example;
  58.  
  59. import java.util.ArrayList;
  60. import java.util.List;
  61. import javax.annotation.Generated;
  62. import com.google.gson.annotations.Expose;
  63. import com.google.gson.annotations.SerializedName;
  64.  
  65. @Generated("org.jsonschema2pojo")
  66. public class Genre {
  67.  
  68. @SerializedName("category")
  69. @Expose
  70. public String category;
  71. @SerializedName("enable_likes")
  72. @Expose
  73. public Integer enableLikes;
  74. @SerializedName("icons")
  75. @Expose
  76. public List<Object> icons = new ArrayList<Object>();
  77. @SerializedName("id")
  78. @Expose
  79. public String id;
  80. @SerializedName("name")
  81. @Expose
  82. public String name;
  83. @SerializedName("pages")
  84. @Expose
  85. public Integer pages;
  86.  
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement