Disruptive Documentation

Enumeration Water​Present​Event.​State

public enum State: Codable, Equatable  

The water presence state of a sensor.

%223 WaterPresentEvent.State WaterPresentEvent.State Codable Codable WaterPresentEvent.State->Codable Equatable Equatable WaterPresentEvent.State->Equatable

Member Of

WaterPresentEvent

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.

Conforms To

Codable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Enumeration Cases

water​Present

case waterPresent

The sensor has detected the presence of water.

water​Not​Present

case waterNotPresent

The sensor has not detected the presence of water.

unknown

case unknown(value: String) 

Used for backward compatibility in case a new state is added on the backend before being added to this client library.

Methods

encode(to:​)

public func encode(to encoder: Encoder) throws