Created
March 1, 2017 15:07
-
-
Save josedlpozo/a6741e7add4fc7533f98906e0f612ff2 to your computer and use it in GitHub Desktop.
'Koltin mutante interface'
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 : LoadingView { | |
val adapter: Adapter<ProfessorViewModel> | |
val ctx: Context | |
fun showProfessors(professors: ProfessorsViewModel) { | |
adapter.clearAll() | |
adapter.addAll(professors) | |
adapter.notifyDataSetChanged() | |
} | |
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