Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. //
  2. // ApiResponse.swift
  3. // Created by waseem on 10/1/19
  4. //
  5.  
  6. import UIKit
  7.  
  8. class ApiResponse {
  9. var success: Bool! // whether the API call passed or failed
  10. var message: String? // message returned from the API
  11. var data: AnyObject? // actual data returned from the API
  12.  
  13. init(success: Bool, message: String? = nil, data: AnyObject? = nil) {
  14. self.success = success
  15. self.message = message
  16. self.data = data
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement