Last active
January 25, 2021 01:17
-
-
Save drawers/9988da55a50f12f7d3c48162a7495aed to your computer and use it in GitHub Desktop.
TaskItem.kt
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
/** | |
* A presentation-layer item for display in a RecyclerView | |
*/ | |
class TaskItem( | |
val id: String, | |
val title: String, | |
val description: String, | |
val color: @ColorRes Int | |
) | |
fun Task.toTaskItem(): TaskItem { | |
// TODO: map domain to presentation here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment