Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data class Character(val id: Int, val name: String, val species: String, val gender: String, val status: Status)
- enum class Status { DEAD, ALIVE, UNKNOWN }
- fun getAllCharacters(): List<Character> {
- return listOf(
- Character(
- id = 4,
- name = "Beth Smith",
- species = "Human",
- gender = "Female",
- status = Status.ALIVE
- ),
- Character(
- id = 706,
- name = "Squid Costume Morty",
- species = "Robot",
- gender = "Male",
- status = Status.DEAD
- ),
- Character(
- id = 1,
- name = "Rick Sanchez",
- species = "Human",
- gender = "Male",
- status = Status.ALIVE
- )
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement