Skip to content

Instantly share code, notes, and snippets.

@caneryilmaz
Created July 2, 2019 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caneryilmaz/da213f3c4e32c386abc70c57c01889f0 to your computer and use it in GitHub Desktop.
Save caneryilmaz/da213f3c4e32c386abc70c57c01889f0 to your computer and use it in GitHub Desktop.
BaseResponse
public class BaseResponse<T> {
@SerializedName("message")
private String message;
@SerializedName("data")
private T data;
@SerializedName("errors")
private Error error;
public String getMessage() {
return message;
}
public T getData() {
return data;
}
public Error getError() {
return error;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment