import 'package:equatable/equatable.dart';

abstract class CreateUnitEvent extends Equatable {
  const CreateUnitEvent();

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

class InitialEvent extends CreateUnitEvent {}

class LoadingEvent extends CreateUnitEvent {}

class CreateRoomEvent extends CreateUnitEvent {
  final String roomName;

  const CreateRoomEvent({required this.roomName});

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

class RemoveRoomEvent extends CreateUnitEvent {
  final String roomName;

  const RemoveRoomEvent({required this.roomName});

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

class SaveRooms extends CreateUnitEvent {
  final String communityName;
  final String buildingName;
  final String floorName;
  final String unitName;

  const SaveRooms({
    required this.communityName,
    required this.buildingName,
    required this.floorName,
    required this.unitName,
  });

  @override
  List<Object> get props => [communityName, buildingName, floorName, unitName];
}
