BatchCommandRequestInfo

struct BatchCommandRequestInfo
extension BatchCommandRequestInfo : Sendable

A structure that holds all the necessary parameters to send a command.

  • The ID of the object being operated on, usually a component ID.

    Declaration

    Swift

    let objectID: String
  • The command ID identifying action being performed.

    Declaration

    Swift

    let commandID: ScopedCommandID
  • The request to send. It can be nil, in which case the command doesn’t have a payload.

    For example, commands like on(), off() and toggle() would have a nil request; and DoorLock.getUser(...) would have a non-nil request.

    Declaration

    Swift

    let request: (any CommandRequest)?
  • Whether to use timed interaction for this command.

    Declaration

    Swift

    let useTimedInteraction: Bool