Skip to content

Instantly share code, notes, and snippets.

@josedlpozo
Created March 1, 2017 19:51
Show Gist options
  • Save josedlpozo/166872be3d1590d8e2d995bd15ea7411 to your computer and use it in GitHub Desktop.
Save josedlpozo/166872be3d1590d8e2d995bd15ea7411 to your computer and use it in GitHub Desktop.
ProfessorListView After Refactor
interface ProfessorsListView : ListView<ProfessorViewModel> {
val ctx: Context
fun showProfessors(professors: ProfessorsViewModel) {
showItems(professors)
}
fun showMoreProfessors(professors: ProfessorsViewModel) {
showMoreItems(professors)
}
fun goToProfessorDetail(professor: ProfessorViewModel) {
ProfessorDetailActivity.open(ctx, professor.name, professor.objectId)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment