Created
April 5, 2020 13:25
-
-
Save klukwist/f2b50cb3e223e59f08b27c0b8839b65e to your computer and use it in GitHub Desktop.
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
class PersonItemViewModel : ProstoViewModel<Person>() { | |
override var data: List<Person> = emptyList() | |
fun getName(position: Int) = data[position].lastName + ", " + data[position].firstName | |
fun getEmail(position: Int) = data[position].email | |
fun hasDog(position: Int): Boolean = data[position].hasDog | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment