Skip to content

Instantly share code, notes, and snippets.

@shahbazahmed1269
Created May 29, 2017 14:51
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 shahbazahmed1269/dd81e126b25b8ad69245ec05ba59c23c to your computer and use it in GitHub Desktop.
Save shahbazahmed1269/dd81e126b25b8ad69245ec05ba59c23c to your computer and use it in GitHub Desktop.
public class ApiResponse {
private List<Issue> issues;
private Throwable error;
public ApiResponse(List<Issue> issues) {
this.issues = issues;
this.error = null;
}
public ApiResponse(Throwable error) {
this.error = error;
this.issues = null;
}
// Getters...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment