Last active
April 1, 2019 13:40
-
-
Save Yoloabdo/64f3d77e679476ceb02c5b1be784a17a 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
| struct LoginCommandsFactory { | |
| private init() {} | |
| static func getLoginCommand(id: String, password: String, completion: CallResponse<User>) -> Command { | |
| let validatorCommand = LoginDetailsValidator(id, password) | |
| let requestCommand = LoginRequestCommand(id, password: password, completion: completion) | |
| let combined = CommandsCombiner(validatorCommand, requestCommand) | |
| return combined | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment