Context
public struct Context : HADataDecodable
The context of the event
-
The identifier for this event
Declaration
Swift
public var id: String -
The user id which triggered the event, if there was one
Declaration
Swift
public var userId: String? -
The identifier of the parent event for this event
Declaration
Swift
public var parentId: String? -
Create with data
Throws
If any required keys are missingDeclaration
Swift
public init(data: HAData) throwsParameters
dataThe data from the server
-
Create with information
Declaration
Swift
public init( id: String, userId: String?, parentId: String? )Parameters
idThe id of the event
userIdThe user id of the event
parentIdThe parent id of the event
View on GitHub