Skip to content

Instantly share code, notes, and snippets.

@shahbazahmed1269
Created June 10, 2017 05:45
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/4ebb23f66578399e2d052c7c00c51fe0 to your computer and use it in GitHub Desktop.
Save shahbazahmed1269/4ebb23f66578399e2d052c7c00c51fe0 to your computer and use it in GitHub Desktop.
Part of my 2nd blog post on architecture components and MVVM
public class ListIssuesViewModel extends ViewModel {
private IssueRepository mIssueRepository;
// Other member declarations
public ListIssuesViewModel(IssueRepository repository) {
mIssueRepository = repository;
// Other code
}
// Other code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment