import 'package:equatable/equatable.dart';

abstract class LoginEvent extends Equatable {
  const LoginEvent();

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

class LoginSubmitted extends LoginEvent {
  final String phoneNumber;
  final String password;
  final String countryResidence;

  const LoginSubmitted(
    this.phoneNumber,
    this.password,
    this.countryResidence,
  );

  @override
  List<Object> get props => [phoneNumber, password, countryResidence];
}

class LoginFormChanged extends LoginEvent {
  final String phoneNumber;
  final String password;
  final String country;

  const LoginFormChanged(this.phoneNumber, this.password, this.country);

  @override
  List<Object> get props => [phoneNumber, password, country];
}
