struct NodeNotificationPayloadextension NodeNotificationPayload : AutomationValue, Equatable, Hashable, Sendable, StructDataRepresentableRepresents the object data in a notification.
Maps to ObjectData in interaction_api.proto.
-
Undocumented
Declaration
Swift
let id: String -
Undocumented
Declaration
Swift
let contents: [TraitPayload] -
Undocumented
Declaration
Swift
let useTimedInteraction: Bool -
Undocumented
Declaration
Swift
init(id: String = "", contents: [TraitPayload] = [], useTimedInteraction: Bool = false) -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws