Created
March 1, 2017 19:51
-
-
Save josedlpozo/166872be3d1590d8e2d995bd15ea7411 to your computer and use it in GitHub Desktop.
ProfessorListView After Refactor
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
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