import 'package:equatable/equatable.dart';
import 'package:krow_domain/krow_domain.dart';

abstract class EmergencyContactEvent extends Equatable {
  const EmergencyContactEvent();

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

class EmergencyContactsLoaded extends EmergencyContactEvent {}

class EmergencyContactAdded extends EmergencyContactEvent {}

class EmergencyContactRemoved extends EmergencyContactEvent {
  final int index;

  const EmergencyContactRemoved(this.index);

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

class EmergencyContactUpdated extends EmergencyContactEvent {
  final int index;
  final EmergencyContact contact;

  const EmergencyContactUpdated(this.index, this.contact);

  @override
  List<Object?> get props => [index, contact];
}

class EmergencyContactsSaved extends EmergencyContactEvent {}
