Skip to content

Instantly share code, notes, and snippets.

@jeetmp3
Last active September 7, 2016 03:47

Revisions

  1. jeetmp3 renamed this gist Sep 7, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. jeetmp3 created this gist Sep 7, 2016.
    29 changes: 29 additions & 0 deletions GenericResponse.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    public class GenericResponse<T> {
    private boolean status;
    private int code;
    private T data;

    public boolean isStatus() {
    return status;
    }

    public void setStatus(boolean status) {
    this.status = status;
    }

    public int getCode() {
    return code;
    }

    public void setCode(int code) {
    this.code = code;
    }

    public T getData() {
    return data;
    }

    public void setData(T data) {
    this.data = data;
    }
    }
    20 changes: 20 additions & 0 deletions UserResponse.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    public class UserResponse {
    private String name;
    private String email;

    public String getName() {
    return name;
    }

    public void setName(String name) {
    this.name = name;
    }

    public String getEmail() {
    return email;
    }

    public void setEmail(String email) {
    this.email = email;
    }
    }
    20 changes: 20 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    public class SocialAccountsResponse {
    private String id;
    private String profileUrl;

    public String getId() {
    return id;
    }

    public void setId(String id) {
    this.id = id;
    }

    public String getProfileUrl() {
    return profileUrl;
    }

    public void setProfileUrl(String profileUrl) {
    this.profileUrl = profileUrl;
    }
    }