import 'package:equatable/equatable.dart';

abstract class ChangePasswordEvent extends Equatable {
  const ChangePasswordEvent();

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

class ChangePasswordSubmitted extends ChangePasswordEvent {
  final String currentPassword;
  final String password;
  final String repeatPassword;

  const ChangePasswordSubmitted(
    this.password,
    this.currentPassword,
    this.repeatPassword,
  );

  @override
  List<Object> get props => [currentPassword, password, repeatPassword];
}

class ChangePasswordFormChanged extends ChangePasswordEvent {
  final String currentPassword;
  final String password;
  final String repeatPassword;

  const ChangePasswordFormChanged(
      this.currentPassword, this.password, this.repeatPassword);

  @override
  List<Object> get props => [currentPassword, password, repeatPassword];
}
