Event
public struct Event
A structure that contains a event and contexts.
-
A dictionary that contains payload for the event.
Declaration
Swift
public let payload: [String : AnyHashable] -
A structure that contains header fields for the event.
Declaration
Swift
public let header: Header -
A dictionary that contains extra header fields for the event.
Declaration
Swift
public let httpHeaderFields: [String : String]? -
A array that contains capability interface’s context.
Declaration
Swift
public let contextPayload: [ContextInfo] -
Creates an instance of an
Event.Declaration
Swift
public init(payload: [String : AnyHashable], header: Header, httpHeaderFields: [String : String]? = nil, contextPayload: [ContextInfo])Parameters
payloadA dictionary that contains payload for the event.
headerA structure that contains header fields for the event.
httpHeaderFieldsA dictionary that contains extra header fields for the event.
contextPayloadA array that contains capability interface’s context.
View on GitHub
Event Structure Reference