Enumeration
Device.DeviceType
public enum DeviceType: Decodable, Equatable
Represents the type of a Device
.
For more details about the various sensors, see the DT product page.
Relationships
Member Of
Device
Represents a Sensor or Cloud Connector from Disruptive Technologies.
Conforms To
Decodable
Equatable
Initializers
init(from:)
public init(from decoder: Decoder) throws
Enumeration Cases
temperature
case temperature
touch
case touch
proximity
case proximity
humidity
case humidity
touchCounter
case touchCounter
proximityCounter
case proximityCounter
waterDetector
case waterDetector
cloudConnector
case cloudConnector
unknown
case unknown(value: String)
The type received for the device was unknown. Added for backwards compatibility in case a new device type is added on the backend, and not yet added to this client library.
Methods
displayName()
public func displayName() -> String
Returns a String
representation of the device type that is suited for presenting to a user on screen.