Created
May 26, 2018 12:53
-
-
Save vialyx/740885a9a60f1de8763147d86be46354 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import Foundation | |
final class TaskListModel: TaskListModelInput { | |
weak var output: TaskListModelOutput! | |
var card: CardDataModel! | |
init() { | |
card = CardDataModel.mock(option: 0) | |
} | |
func upload(image: Data, for task: TaskDataType) { | |
DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) { [weak output] in | |
output?.didUpdate(task: task) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment