Skip to content

Instantly share code, notes, and snippets.

@drawers
Last active January 25, 2021 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drawers/9988da55a50f12f7d3c48162a7495aed to your computer and use it in GitHub Desktop.
Save drawers/9988da55a50f12f7d3c48162a7495aed to your computer and use it in GitHub Desktop.
TaskItem.kt
/**
* 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