Advertisement
Guest User

RegisterModel + Info | jsonschema2pojo

a guest
Jun 23rd, 2016
949
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.77 KB | None | 0 0
  1. -----------------------------------com.example.app.models.api.Info.java-----------------------------------
  2.  
  3. package com.example.app.models.api;
  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 Info {
  13.  
  14. @SerializedName("username")
  15. @Expose
  16. private List<String> username = new ArrayList<String>();
  17. @SerializedName("email")
  18. @Expose
  19. private List<String> email = new ArrayList<String>();
  20. @SerializedName("password")
  21. @Expose
  22. private List<String> password = new ArrayList<String>();
  23. @SerializedName("birthDate")
  24. @Expose
  25. private List<String> birthDate = new ArrayList<String>();
  26. @SerializedName("gender")
  27. @Expose
  28. private List<String> gender = new ArrayList<String>();
  29.  
  30. /**
  31. *
  32. * @return
  33. * The username
  34. */
  35. public List<String> getUsername() {
  36. return username;
  37. }
  38.  
  39. /**
  40. *
  41. * @param username
  42. * The username
  43. */
  44. public void setUsername(List<String> username) {
  45. this.username = username;
  46. }
  47.  
  48. /**
  49. *
  50. * @return
  51. * The email
  52. */
  53. public List<String> getEmail() {
  54. return email;
  55. }
  56.  
  57. /**
  58. *
  59. * @param email
  60. * The email
  61. */
  62. public void setEmail(List<String> email) {
  63. this.email = email;
  64. }
  65.  
  66. /**
  67. *
  68. * @return
  69. * The password
  70. */
  71. public List<String> getPassword() {
  72. return password;
  73. }
  74.  
  75. /**
  76. *
  77. * @param password
  78. * The password
  79. */
  80. public void setPassword(List<String> password) {
  81. this.password = password;
  82. }
  83.  
  84. /**
  85. *
  86. * @return
  87. * The birthDate
  88. */
  89. public List<String> getBirthDate() {
  90. return birthDate;
  91. }
  92.  
  93. /**
  94. *
  95. * @param birthDate
  96. * The birthDate
  97. */
  98. public void setBirthDate(List<String> birthDate) {
  99. this.birthDate = birthDate;
  100. }
  101.  
  102. /**
  103. *
  104. * @return
  105. * The gender
  106. */
  107. public List<String> getGender() {
  108. return gender;
  109. }
  110.  
  111. /**
  112. *
  113. * @param gender
  114. * The gender
  115. */
  116. public void setGender(List<String> gender) {
  117. this.gender = gender;
  118. }
  119.  
  120. }
  121. -----------------------------------com.example.app.models.api.RegisterModel.java-----------------------------------
  122.  
  123. package com.example.app.models.api;
  124.  
  125. import javax.annotation.Generated;
  126. import com.google.gson.annotations.Expose;
  127. import com.google.gson.annotations.SerializedName;
  128.  
  129. @Generated("org.jsonschema2pojo")
  130. public class RegisterModel {
  131.  
  132. @SerializedName("status")
  133. @Expose
  134. private boolean status;
  135. @SerializedName("info")
  136. @Expose
  137. private Info info;
  138.  
  139. /**
  140. *
  141. * @return
  142. * The status
  143. */
  144. public boolean isStatus() {
  145. return status;
  146. }
  147.  
  148. /**
  149. *
  150. * @param status
  151. * The status
  152. */
  153. public void setStatus(boolean status) {
  154. this.status = status;
  155. }
  156.  
  157. /**
  158. *
  159. * @return
  160. * The info
  161. */
  162. public Info getInfo() {
  163. return info;
  164. }
  165.  
  166. /**
  167. *
  168. * @param info
  169. * The info
  170. */
  171. public void setInfo(Info info) {
  172. this.info = info;
  173. }
  174.  
  175. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement