RVP_Cocoa_SDK_Payload
public class RVP_Cocoa_SDK_Payload
This is a special class for representing the payload as an atomic object. It encapsulates the type and the payload, as a Data object.
Expressing it as a class gives us a couple of things: 1) It allows us to keep it as a reference, as opposed to a copy, and 2) It allows us to easily extend the class with data interpretation.
-
The payload, as a Data object.
Declaration
Swift
public var payloadData: Data?
-
The payload MIME type, as a String.
Declaration
Swift
public var payloadType: String
-
Default Initializer.
Declaration
Swift
public init(payloadData inData: Data, payloadType inType: String)
Parameters
payloadData
The payload, as a Data object.
payloadType
The payload’s MIME type.