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
payload
A dictionary that contains payload for the event.
header
A structure that contains header fields for the event.
httpHeaderFields
A dictionary that contains extra header fields for the event.
contextPayload
A array that contains capability interface’s context.