mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
push ac batch control
This commit is contained in:
@ -7,30 +7,30 @@ sealed class AcsEvent extends Equatable {
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class AcFetchDeviceStatus extends AcsEvent {
|
||||
class AcFetchDeviceStatusEvent extends AcsEvent {
|
||||
final String deviceId;
|
||||
|
||||
const AcFetchDeviceStatus(this.deviceId);
|
||||
const AcFetchDeviceStatusEvent(this.deviceId);
|
||||
|
||||
@override
|
||||
List<Object> get props => [deviceId];
|
||||
}
|
||||
|
||||
class AcFetchBatchStatus extends AcsEvent {
|
||||
final String deviceId;
|
||||
class AcFetchBatchStatusEvent extends AcsEvent {
|
||||
final List<String> devicesIds;
|
||||
|
||||
const AcFetchBatchStatus(this.deviceId);
|
||||
const AcFetchBatchStatusEvent(this.devicesIds);
|
||||
|
||||
@override
|
||||
List<Object> get props => [deviceId];
|
||||
List<Object> get props => [devicesIds];
|
||||
}
|
||||
|
||||
class AcControl extends AcsEvent {
|
||||
class AcControlEvent extends AcsEvent {
|
||||
final String deviceId;
|
||||
final String code;
|
||||
final dynamic value;
|
||||
|
||||
const AcControl({
|
||||
const AcControlEvent({
|
||||
required this.deviceId,
|
||||
required this.code,
|
||||
required this.value,
|
||||
@ -39,3 +39,18 @@ class AcControl extends AcsEvent {
|
||||
@override
|
||||
List<Object> get props => [deviceId, code, value];
|
||||
}
|
||||
|
||||
class AcBatchControlEvent extends AcsEvent {
|
||||
final List<String> devicesIds;
|
||||
final String code;
|
||||
final dynamic value;
|
||||
|
||||
const AcBatchControlEvent({
|
||||
required this.devicesIds,
|
||||
required this.code,
|
||||
required this.value,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [devicesIds, code, value];
|
||||
}
|
||||
|
Reference in New Issue
Block a user