API

  • API

    Represents a utility singleton class for calling through the Cheetah Loyalty API.

    See more

    Declaration

    Swift

    public class API
  • Used to store all data associated with a response.

    See more

    Declaration

    Swift

    public struct APIResponse<Value>
  • Represents the configuration to be used for the Cheetah Loyalty Framework

    This loads configuration values from the CheetahLoyalty-Info.plist file from the main bundle. A missing or incomplete CheetahLoyalty-Info.plist file will cause a precondition failure. The list of property keys is defined in Configuration.CodingKeys.

    See more

    Declaration

    Swift

    public class Configuration : Decodable
  • Declaration

    Swift

    extension JSONDecoder
  • Used to store list information.

    See more

    Declaration

    Swift

    public struct ListInfo : Codable, Equatable

Parameters type alias

  • A dictionary of parameters for a URLRequest.

    Declaration

    Swift

    public typealias Parameters = [String : Any]
  • A closure for response completion handling. The closure takes a Result argument with associated type APIResponse (with a generic associated type) and Error.

    Declaration

    Swift

    public typealias ResponseCompletion<T> = ((Result<APIResponse<T>, Error>) -> Void)?
  • The error type returned for response errors.

    See more

    Declaration

    Swift

    public enum ResponseError : Error
    extension ResponseError: LocalizedError
  • Declaration

    Swift

    extension Result
    extension Result: CustomStringConvertible
    extension Result: CustomDebugStringConvertible
  • Represents a type which holds user location coordinates. This protocol can only be adopted by class types and can be a weak reference.

    See more

    Declaration

    Swift

    public protocol UserLocation : AnyObject