Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Last active April 18, 2020 12:54
Show Gist options
  • Select an option

  • Save meyusufdemirci/4f99f504ffe2b182bed89b9bb19d7f8e to your computer and use it in GitHub Desktop.

Select an option

Save meyusufdemirci/4f99f504ffe2b182bed89b9bb19d7f8e to your computer and use it in GitHub Desktop.
class Services {
class func avgPrice(symbol: String, completion: @escaping(Swift.Result<AveragePriceResponseModel, ErrorModel>) -> Void) {
ServiceManager.shared.sendRequest(request: AveragePriceRequestModel(symbol: symbol)) { (result) in
completion(result)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment