ConcreteSimplePayloadDataSupplier
public class ConcreteSimplePayloadDataSupplier : SimplePayloadDataSupplier
Simple payload data supplier.
-
Undocumented
Declaration
Swift
public static let payloadLength: Int -
Undocumented
Declaration
Swift
public init(protocolAndVersion: UInt8, countryCode: UInt16, stateCode: UInt16, secretKey: SecretKey) -
Generate a new secret key
Declaration
Swift
public static func generateSecretKey() -> SecretKey? -
Get matching key for a day
Declaration
Swift
public func matchingKey(_ time: Date) -> MatchingKey? -
Undocumented
Declaration
Swift
public func legacyPayload(_ timestamp: PayloadTimestamp = PayloadTimestamp(), device: Device?) -> PayloadData? -
Declaration
Swift
public func payload(_ timestamp: PayloadTimestamp = PayloadTimestamp(), device: Device?) -> PayloadData? -
Default implementation assumes fixed length payload data.
Declaration
Swift
public func payload(_ data: Data) -> [PayloadData]
ConcreteSimplePayloadDataSupplier Class Reference