ReserveDeviceCommand constructor

ReserveDeviceCommand({
  1. required String deviceId,
  2. required String driverName,
  3. String? id,
  4. DateTime? timestamp,
})

Implementation

ReserveDeviceCommand({
  required this.deviceId,
  required this.driverName,
  String? id,
  DateTime? timestamp,
}) : super(
        id: id,
        payload: _toPayload(
          deviceId: deviceId,
          driverName: driverName,
        ),
        timestamp: timestamp,
        type: kCommandType,
      );