Created
June 10, 2017 06:04
-
-
Save shahbazahmed1269/3c58008e6a1e6664bd8e98d9474d3f35 to your computer and use it in GitHub Desktop.
Part of my 2nd blog post on architecture components and MVVM
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 ListIssuesViewModel extends ViewModel { | |
private MediatorLiveData<ApiResponse> mApiResponse; | |
private IssueRepository mIssueRepository; | |
@Inject | |
public ListIssuesViewModel(IssueRepository issueRepository) { | |
mApiResponse = new MediatorLiveData<>(); | |
mIssueRepository = issueRepository; | |
} | |
// Other code remains unchanged ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment