Created
February 23, 2018 19:06
-
-
Save IsaAliev/99087b93f3d772d838c598a96259b41c 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
import Foundation | |
protocol Service { | |
associatedtype ResultTypeValue: Decodable | |
typealias SuccessHandlerBlock = (ResultTypeValue) -> () | |
typealias FailureHandlerBlock = (ErrorRepresentable) -> () | |
var request: HTTPRequestRepresentable? { get set } | |
var responseHandler: HTTPResponseHandler<ResultTypeValue>? { get set } | |
func sendRequest() -> Self? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment