Created
August 21, 2017 16:20
-
-
Save joecks/4d56afd36590b6b9155f5a5604f4745d 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
interface TasksActions { | |
fun onTaskDetails(taskId: String) | |
fun onNewTask() | |
} | |
class TasksViewModel(private val tasksRepository: TasksRepository, | |
// The injected callbacks for highlevel actions like onNewTask, onTaskDetails | |
private val tasksActions: TasksActions) : BaseReactViewModel<TasksViewData>(), | |
// The taks item Actions | |
TasksViewItemActions, | |
// The tasks view actions like the create new task FAB | |
TasksViewActions { | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment