Response

public enum Response : APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible

Undocumented

  • Stores a POI subscription to send a push notification to the device with the specified pushToken once one of the pois change based on the change condition. The notification contains (max 4kb)

    {
      "target": "..."
      "subscription": "706087b4-8bca-4db9-b037-8a7ff4ce5633",
      "poi": {
        "id": "4d6dd9db-b0ac-40e8-a099-b606cace6f72", # poi ID
        "type": "gasStation",
        "attributes": {
          # ... more data of the type
        }
      }
    }
    
    See more

    Declaration

    Swift

    public class Status200 : APIModel
  • Undocumented

    Declaration

    Swift

    public typealias SuccessType = Status200
  • Stored

    Declaration

    Swift

    case status200(Status200)
  • Bad request

    Declaration

    Swift

    case status400(PCPOIErrors)
  • OAuth token missing or invalid

    Declaration

    Swift

    case status401(PCPOIErrors)
  • The specified accept header is invalid

    Declaration

    Swift

    case status406(PCPOIErrors)
  • The specified content type header is invalid

    Declaration

    Swift

    case status415(PCPOIErrors)
  • The request was well-formed but was unable to be followed due to semantic errors.

    Declaration

    Swift

    case status422(PCPOIErrors)
  • Internal server error

    Declaration

    Swift

    case status500(PCPOIErrors)
  • Undocumented

    Declaration

    Swift

    public var success: Status200? { get }
  • Undocumented

    Declaration

    Swift

    public var failure: PCPOIErrors? { get }
  • either success or failure value. Success is anything in the 200..<300 status code range

    Declaration

    Swift

    public var responseResult: APIResponseResult<Status200, PCPOIErrors> { get }
  • Undocumented

    Declaration

    Swift

    public var response: Any { get }
  • Undocumented

    Declaration

    Swift

    public var statusCode: Int { get }
  • Undocumented

    Declaration

    Swift

    public var successful: Bool { get }
  • Undocumented

    Declaration

    Swift

    public init(statusCode: Int, data: Data, decoder: ResponseDecoder) throws
  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }