Created
May 29, 2017 14:51
-
-
Save shahbazahmed1269/dd81e126b25b8ad69245ec05ba59c23c to your computer and use it in GitHub Desktop.
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 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