AnnounceDeviceCommand constructor

AnnounceDeviceCommand({
  1. String? id,
  2. required TestDeviceInfo device,
  3. required String salt,
  4. required TestControllerState testControllerState,
  5. DateTime? timestamp,
})

Implementation

AnnounceDeviceCommand({
  String? id,
  required this.device,
  required this.salt,
  required this.testControllerState,
  DateTime? timestamp,
})  : appIdentifier = device.appIdentifier,
      super(
        id: id,
        payload: _toPayload(
          appIdentifier: device.appIdentifier,
          device: device,
          salt: salt,
          testControllerState: testControllerState,
        ),
        timestamp: timestamp,
        type: kCommandType,
      );