mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
Rename SettingBlocEvent to SettingEvent for consistency and clarity in event handling.
This commit is contained in:
@ -10,7 +10,7 @@ import 'package:syncrow_web/services/space_mana_api.dart';
|
|||||||
import 'package:syncrow_web/utils/snack_bar.dart';
|
import 'package:syncrow_web/utils/snack_bar.dart';
|
||||||
part 'setting_bloc_event.dart';
|
part 'setting_bloc_event.dart';
|
||||||
|
|
||||||
class SettingDeviceBloc extends Bloc<SettingBlocEvent, DeviceSettingsState> {
|
class SettingDeviceBloc extends Bloc<DeviceSettingEvent, DeviceSettingsState> {
|
||||||
final String deviceId;
|
final String deviceId;
|
||||||
SettingDeviceBloc({
|
SettingDeviceBloc({
|
||||||
required this.deviceId,
|
required this.deviceId,
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
part of 'setting_bloc_bloc.dart';
|
part of 'setting_bloc_bloc.dart';
|
||||||
|
|
||||||
abstract class SettingBlocEvent extends Equatable {
|
abstract class DeviceSettingEvent extends Equatable {
|
||||||
const SettingBlocEvent();
|
const DeviceSettingEvent();
|
||||||
@override
|
@override
|
||||||
List<Object?> get props => [];
|
List<Object?> get props => [];
|
||||||
}
|
}
|
||||||
|
|
||||||
class SettingBlocSaveDeviceName extends SettingBlocEvent {
|
class SettingBlocSaveDeviceName extends DeviceSettingEvent {
|
||||||
final String deviceName;
|
final String deviceName;
|
||||||
final String deviceId;
|
final String deviceId;
|
||||||
|
|
||||||
@ -17,11 +17,11 @@ class SettingBlocSaveDeviceName extends SettingBlocEvent {
|
|||||||
List<Object?> get props => [deviceName, deviceId];
|
List<Object?> get props => [deviceName, deviceId];
|
||||||
}
|
}
|
||||||
|
|
||||||
class SettingBlocStartEditingName extends SettingBlocEvent {}
|
class SettingBlocStartEditingName extends DeviceSettingEvent {}
|
||||||
|
|
||||||
class SettingBlocCancelEditingName extends SettingBlocEvent {}
|
class SettingBlocCancelEditingName extends DeviceSettingEvent {}
|
||||||
|
|
||||||
class SettingBlocChangeEditingNameValue extends SettingBlocEvent {
|
class SettingBlocChangeEditingNameValue extends DeviceSettingEvent {
|
||||||
final String value;
|
final String value;
|
||||||
const SettingBlocChangeEditingNameValue(this.value);
|
const SettingBlocChangeEditingNameValue(this.value);
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ class SettingBlocChangeEditingNameValue extends SettingBlocEvent {
|
|||||||
List<Object?> get props => [value];
|
List<Object?> get props => [value];
|
||||||
}
|
}
|
||||||
|
|
||||||
class SettingBlocFetchRooms extends SettingBlocEvent {
|
class SettingBlocFetchRooms extends DeviceSettingEvent {
|
||||||
final String communityUuid;
|
final String communityUuid;
|
||||||
final String spaceUuid;
|
final String spaceUuid;
|
||||||
|
|
||||||
@ -40,20 +40,20 @@ class SettingBlocFetchRooms extends SettingBlocEvent {
|
|||||||
List<Object?> get props => [communityUuid, spaceUuid];
|
List<Object?> get props => [communityUuid, spaceUuid];
|
||||||
}
|
}
|
||||||
|
|
||||||
class SettingBlocSaveName extends SettingBlocEvent {
|
class SettingBlocSaveName extends DeviceSettingEvent {
|
||||||
const SettingBlocSaveName();
|
const SettingBlocSaveName();
|
||||||
}
|
}
|
||||||
|
|
||||||
class DeviceSettingInitialInfo extends SettingBlocEvent {}
|
class DeviceSettingInitialInfo extends DeviceSettingEvent {}
|
||||||
|
|
||||||
class ChangeNameEvent extends SettingBlocEvent {
|
class ChangeNameEvent extends DeviceSettingEvent {
|
||||||
final bool? value;
|
final bool? value;
|
||||||
const ChangeNameEvent({this.value});
|
const ChangeNameEvent({this.value});
|
||||||
}
|
}
|
||||||
|
|
||||||
class SettingBlocDeleteDevice extends SettingBlocEvent {}
|
class SettingBlocDeleteDevice extends DeviceSettingEvent {}
|
||||||
|
|
||||||
class SettingBlocAssignRoom extends SettingBlocEvent {
|
class SettingBlocAssignRoom extends DeviceSettingEvent {
|
||||||
final String communityUuid;
|
final String communityUuid;
|
||||||
final String spaceUuid;
|
final String spaceUuid;
|
||||||
final String subSpaceUuid;
|
final String subSpaceUuid;
|
||||||
@ -67,4 +67,3 @@ class SettingBlocAssignRoom extends SettingBlocEvent {
|
|||||||
@override
|
@override
|
||||||
List<Object?> get props => [spaceUuid, communityUuid, subSpaceUuid];
|
List<Object?> get props => [spaceUuid, communityUuid, subSpaceUuid];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user