Created
July 2, 2019 11:13
-
-
Save caneryilmaz/da213f3c4e32c386abc70c57c01889f0 to your computer and use it in GitHub Desktop.
BaseResponse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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