Skip to content

Instantly share code, notes, and snippets.

@shahbazahmed1269
Created June 10, 2017 05:43
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/6c1cfa7e2a6b729cfb692f6c0da27f94 to your computer and use it in GitHub Desktop.
Save shahbazahmed1269/6c1cfa7e2a6b729cfb692f6c0da27f94 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() {
mIssueRepository = new IssueRepositoryImpl();
// Other code
}
// Other code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment