Skip to content

Instantly share code, notes, and snippets.

@tifoaudii
Created May 20, 2022 10:14
Show Gist options
  • Save tifoaudii/8e703d65331fa90a1e285e8ba4160f50 to your computer and use it in GitHub Desktop.
Save tifoaudii/8e703d65331fa90a1e285e8ba4160f50 to your computer and use it in GitHub Desktop.
protocol TaskViewDataStore {
func fetchTodayTask(completion: @escaping ([TaskModel]) -> Void)
func fetchFailedTask(completion: @escaping ([TaskModel]) -> Void)
func fetchUpcomingTask(completion: @escaping ([TaskModel]) -> Void)
func fetchFinishedTask(completion: @escaping ([TaskModel]) -> Void)
func finishTask(_ task: TaskModel)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment