Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------com.example.Example.java-----------------------------------
- package com.example;
- import java.util.List;
- import com.google.gson.annotations.Expose;
- import com.google.gson.annotations.SerializedName;
- public class Example {
- @SerializedName("result")
- @Expose
- private List<Result> result = null;
- public List<Result> getResult() {
- return result;
- }
- public void setResult(List<Result> result) {
- this.result = result;
- }
- }
- -----------------------------------com.example.Result.java-----------------------------------
- package com.example;
- import com.google.gson.annotations.Expose;
- import com.google.gson.annotations.SerializedName;
- public class Result {
- @SerializedName("Users")
- @Expose
- private Users users;
- public Users getUsers() {
- return users;
- }
- public void setUsers(Users users) {
- this.users = users;
- }
- }
- -----------------------------------com.example.Users.java-----------------------------------
- package com.example;
- import com.google.gson.annotations.Expose;
- import com.google.gson.annotations.SerializedName;
- public class Users {
- @SerializedName("id")
- @Expose
- private String id;
- @SerializedName("user_name")
- @Expose
- private String userName;
- @SerializedName("user_password")
- @Expose
- private String userPassword;
- public String getId() {
- return id;
- }
- public void setId(String id) {
- this.id = id;
- }
- public String getUserName() {
- return userName;
- }
- public void setUserName(String userName) {
- this.userName = userName;
- }
- public String getUserPassword() {
- return userPassword;
- }
- public void setUserPassword(String userPassword) {
- this.userPassword = userPassword;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement