import 'package:equatable/equatable.dart';

abstract class RegisterUserEvent extends Equatable {
  const RegisterUserEvent();

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

class RegisterUserSubmitted extends RegisterUserEvent {
  final String firstName;
  final String lastName;
  final String email;
  final String password;
  final String confirmPassword;

  const RegisterUserSubmitted(
    this.firstName,
    this.password,
    this.lastName,
    this.confirmPassword,
    this.email,
  );

  @override
  List<Object> get props =>
      [firstName, lastName, email, confirmPassword, password];
}

class RegisterFormChanged extends RegisterUserEvent {
  final String firstName;
  final String lastName;
  final String email;
  final String password;
  final String confirmPassword;

  const RegisterFormChanged(
    this.firstName,
    this.password,
    this.lastName,
    this.confirmPassword,
    this.email,
  );

  @override
  List<Object> get props =>
      [firstName, lastName, email, confirmPassword, password];
}
