struct ElevatorFloor
An elevator floor.
-
The internal name of the elevator floor which is used in commands. This name is shared across all languages. This name must also be included in the synonyms list if it is a valid name for the floor.
Declaration
Swift
let floorName: String
-
Synonyms for this floor in each supported language.
Declaration
Swift
let floorNameSynonyms: [Google.ElevatorControlTrait.FloorNameSynonym]
-
Creates a new Struct instance using data read from the given
TraitDecoder
.Throws
HomeError.parseError
when parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throws
Parameters
decoder
The raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder
. ThrowsHomeError.parseError
if the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)?