QPServiceAPI
class QPServiceAPI
This class is responsible for connecting to the QuandoPasso API to retrieve vsign data, parse them from JSON into our models and for sending metrics.
It implements a singleton pattern using the shared static property.
Actual network calls and low level details are delegated to the Alamofire HTTP library.
-
Undocumented
Declaration
Swift
public static let shared: QPServiceAPI -
Undocumented
Declaration
Swift
public var settings: QPSettings! -
Undocumented
See moreDeclaration
Swift
public enum APIServiceError : Error -
Undocumented
Declaration
Swift
public func fetchSignals(near: CLLocationCoordinate2D, radius: Int, success: @escaping ([QPSignal]) -> Void) -
Undocumented
Declaration
Swift
public func sendMetrics(data: Parameters, onComplete: @escaping (AFDataResponse<Data>) -> Void) -
Undocumented
Declaration
Swift
public func presence(onComplete: @escaping (AFDataResponse<Data>) -> Void) -
Undocumented
Declaration
Swift
public func fetchCategories(success: @escaping ([QPCategory]) -> Void) -
Undocumented
Declaration
Swift
public func sendFCD(_ object: QPFloatingCarData, _ completion: @escaping (AFError?) -> Void)
QPServiceAPI Class Reference