import Foundation import Alamofire class HomeViewModel { let sharedInstance = Connection() var reloadHandler: DataHandler = { } typealias DataHandler = () -> Void init () { } //-------------------------------------------------- // MarK : fetchInitialSetup API Integration //-------------------------------------------------- func fetchInitialSetup(success: @escaping ( GetLocationAndDevicesModel ) -> Void , failure: @escaping ( Error ) -> Void ) { let URL = AddDeviceList().getUrlString(url: .CREATE_API) let headers :...
Comments
Post a Comment