Slide 77
Slide 77 text
data class TasksViewState(z
val isLoading: Boolean,
val tasksFilterType: TasksFilterType,
val tasks: List,
val error: Throwable?,
val taskComplete: Boolean,
val taskActivated: Boolean,
val completedTasksCleared: Boolean
)@{
companion object Factory {
fun default() = TasksViewState(
isLoading = false,
tasksFilterType = ALL_TASKS,
tasks = emptyList(),
error = null,
taskComplete = false,
taskActivated = false,
completedTasksCleared = false)
}
}