Last active
April 18, 2020 12:50
-
-
Save meyusufdemirci/c0cf5e8c836cd9beae9e26eb7fc3604f 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
| class HomeController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| Services.avgPrice(symbol: "BTCUSDT") { result in | |
| switch result { | |
| case Result.success(let response): | |
| // Handle successfull response | |
| break | |
| case Result.failure(let error): | |
| // Handle error | |
| break | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment