mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
33 lines
666 B
Dart
33 lines
666 B
Dart
|
|
import 'package:equatable/equatable.dart';
|
|
import 'package:flutter/material.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 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];
|
|
}
|