part of 'emergency_contacts_bloc.dart';

@immutable
sealed class EmergencyContactsEvent {}

class InitializeEmergencyContactsEvent extends EmergencyContactsEvent {
  InitializeEmergencyContactsEvent(this.isInEditMode);

  final bool isInEditMode;
}

class AddNewContactEvent extends EmergencyContactsEvent {}

class UpdateContactEvent extends EmergencyContactsEvent {
  UpdateContactEvent({
    required this.index,
    required this.firstName,
    required this.lastName,
    required this.phoneNumber,
  });

  final int index;
  final String firstName;
  final String lastName;
  final String phoneNumber;
}

class DeleteContactEvent extends EmergencyContactsEvent {
  DeleteContactEvent({required this.index});

  final int index;
}

class SaveContactsChanges extends EmergencyContactsEvent {}
