EndpointListStruct

struct EndpointListStruct

The details of a single endpoint list, a set of endpoints that have some logical relation.

  • The name, as assigned by the user or automatically by the server, associated with the set of endpoints in this list. This can be used for identifying the action to the user by the client. For example, “living room”.

    Declaration

    Swift

    let name: String
  • The type of endpoint list.

    Declaration

  • A list of endpoint numbers.

    Declaration

    Swift

    let endpoints: [UInt16]
  • 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. Throws HomeError.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)?