SHARE
TWEET

Untitled

a guest Sep 17th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let provider = URLSessionProvider()
  2. let service = Teste.getComment(id: 1)
  3. provider.request(type: MockComment.self, service: service) { (result) in
  4.         switch result {
  5.             case .success(let comment):
  6.                 print(comment)
  7.             case .failure(let error):
  8.                 print(error)
  9.         }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top