part of 'setting_bloc_bloc.dart';

abstract class DeviceSettingEvent extends Equatable {
  const DeviceSettingEvent();
  @override
  List<Object?> get props => [];
}

class SettingBlocSaveDeviceName extends DeviceSettingEvent {
  final String deviceName;
  final String deviceId;

  const SettingBlocSaveDeviceName(
      {required this.deviceName, required this.deviceId});

  @override
  List<Object?> get props => [deviceName, deviceId];
}

class SettingBlocStartEditingName extends DeviceSettingEvent {}

class SettingBlocCancelEditingName extends DeviceSettingEvent {}

class SettingBlocChangeEditingNameValue extends DeviceSettingEvent {
  final String value;
  const SettingBlocChangeEditingNameValue(this.value);

  @override
  List<Object?> get props => [value];
}

class SettingBlocFetchRooms extends DeviceSettingEvent {
  final String communityUuid;
  final String spaceUuid;

  const SettingBlocFetchRooms(
      {required this.communityUuid, required this.spaceUuid});

  @override
  List<Object?> get props => [communityUuid, spaceUuid];
}

class SettingBlocSaveName extends DeviceSettingEvent {
  const SettingBlocSaveName();
}

class DeviceSettingInitialInfo extends DeviceSettingEvent {}

class ChangeNameEvent extends DeviceSettingEvent {
  final bool? value;
  const ChangeNameEvent({this.value});
}

class SettingBlocDeleteDevice extends DeviceSettingEvent {}

class SettingBlocAssignRoom extends DeviceSettingEvent {
  final String communityUuid;
  final String spaceUuid;
  final String subSpaceUuid;

  const SettingBlocAssignRoom({
    required this.communityUuid,
    required this.spaceUuid,
    required this.subSpaceUuid,
  });

  @override
  List<Object?> get props => [spaceUuid, communityUuid, subSpaceUuid];
}
