mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
42 lines
770 B
Dart
42 lines
770 B
Dart
import 'package:equatable/equatable.dart';
|
|
|
|
sealed class AcsEvent extends Equatable {
|
|
const AcsEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class AcFetchDeviceStatus extends AcsEvent {
|
|
final String deviceId;
|
|
|
|
const AcFetchDeviceStatus(this.deviceId);
|
|
|
|
@override
|
|
List<Object> get props => [deviceId];
|
|
}
|
|
|
|
class AcFetchBatchStatus extends AcsEvent {
|
|
final String deviceId;
|
|
|
|
const AcFetchBatchStatus(this.deviceId);
|
|
|
|
@override
|
|
List<Object> get props => [deviceId];
|
|
}
|
|
|
|
class AcControl extends AcsEvent {
|
|
final String deviceId;
|
|
final String code;
|
|
final dynamic value;
|
|
|
|
const AcControl({
|
|
required this.deviceId,
|
|
required this.code,
|
|
required this.value,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [deviceId, code, value];
|
|
}
|