Structure
WaterPresentEvent
public struct WaterPresentEvent: Codable, Equatable
An event that indicates whether or not water is present to a Water Detector sensor. This event is sent every heartbeat, and when the sensor is touched.
See the Developer Website for more details.
Relationships
Nested Types
WaterPresentEvent.StateThe water presence state of a sensor.
Conforms To
PublishableEventUsed by event types (such as
TouchEvent) to indicate that they can be published to the device emulator.CodableEquatable
Initializers
init(state:timestamp:)
public init(state: State, timestamp: Date)
Creates a new WaterPresentEvent.
init(from:)
public init(from decoder: Decoder) throws
Properties
timestamp
public let timestamp: Date
The timestamp of when the water present event event was received by a Cloud Connector.
eventType
public var eventType: EventType
Methods
encode(to:)
public func encode(to encoder: Encoder) throws