SHARE
TWEET

Untitled

a guest Oct 20th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
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