DataSubscriptionDescriptor
public struct DataSubscriptionDescriptor : Codable, Equatable, CustomStringConvertible
A value containing the descriptor for a subscription to events of the DataService
.
This value does not depend on a node.
-
The default value for the
includesRevocation
property.Declaration
Swift
public static let includesRevocationByDefault: Bool
-
The type of events to subscribe.
Declaration
Swift
public var eventType: DataEventType
-
Indicates whether to receive the revocation event if it occurs.
Declaration
Swift
public var includesRevocation: Bool
-
The subscription expiration date.
Declaration
Swift
public var expirationDate: Date?
-
The subscription refresh date.
Declaration
Swift
public var refreshDate: Date?
-
Creates a new instance.
Declaration
Swift
public init(eventType: DataEventType, includesRevocation: Bool = includesRevocationByDefault, expirationDate: Date? = nil, encryptionAlgorithm: WebcomEncryptionAlgorithm = .default)
Parameters
eventType
The type of events to subscribe.
includesRevocation
Indicates whether to receive the revocation event if it occurs.
expirationDate
The subscription expiration date.
encryptionAlgorithm
The encryption algorithm used for received events.
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
The algorithm used to encrypt received events.
Declaration
Swift
public var encryptionAlgorithm: WebcomEncryptionAlgorithm { get set }
-
Declaration
Swift
public var description: String { get }