mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 01:35:25 +00:00
51 lines
1.1 KiB
Dart
51 lines
1.1 KiB
Dart
import 'package:equatable/equatable.dart';
|
|
|
|
sealed class CurtainEvent extends Equatable {
|
|
const CurtainEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class CurtainFetchDeviceStatus extends CurtainEvent {
|
|
final String deviceId;
|
|
|
|
const CurtainFetchDeviceStatus(this.deviceId);
|
|
|
|
@override
|
|
List<Object> get props => [deviceId];
|
|
}
|
|
|
|
class CurtainFetchBatchStatus extends CurtainEvent {
|
|
final List<String> devicesIds;
|
|
|
|
const CurtainFetchBatchStatus(this.devicesIds);
|
|
|
|
@override
|
|
List<Object> get props => [devicesIds];
|
|
}
|
|
|
|
class CurtainControl extends CurtainEvent {
|
|
final String deviceId;
|
|
final String code;
|
|
final bool value;
|
|
|
|
const CurtainControl(
|
|
{required this.deviceId, required this.code, required this.value});
|
|
|
|
@override
|
|
List<Object> get props => [deviceId, code, value];
|
|
}
|
|
|
|
class CurtainBatchControl extends CurtainEvent {
|
|
final List<String> devicesIds;
|
|
final String code;
|
|
final bool value;
|
|
|
|
const CurtainBatchControl(
|
|
{required this.devicesIds, required this.code, required this.value});
|
|
|
|
@override
|
|
List<Object> get props => [devicesIds, code, value];
|
|
}
|