mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-08 09:53:12 +00:00
42 lines
904 B
Dart
42 lines
904 B
Dart
part of 'recovery_key_bloc.dart';
|
|
|
|
sealed class RecoveryKeyEvent extends Equatable {
|
|
const RecoveryKeyEvent();
|
|
}
|
|
|
|
class RecoveryKeyStatusChanged extends RecoveryKeyEvent {
|
|
const RecoveryKeyStatusChanged(this.recoveryKeyStatus);
|
|
|
|
final RecoveryKeyStatus? recoveryKeyStatus;
|
|
|
|
@override
|
|
List<Object?> get props => [recoveryKeyStatus];
|
|
}
|
|
|
|
class CreateNewRecoveryKey extends RecoveryKeyEvent {
|
|
const CreateNewRecoveryKey({
|
|
this.expirationDate,
|
|
this.numberOfUses,
|
|
});
|
|
|
|
final DateTime? expirationDate;
|
|
final int? numberOfUses;
|
|
|
|
@override
|
|
List<Object?> get props => [expirationDate, numberOfUses];
|
|
}
|
|
|
|
class ConsumedNewRecoveryKey extends RecoveryKeyEvent {
|
|
const ConsumedNewRecoveryKey();
|
|
|
|
@override
|
|
List<Object?> get props => [];
|
|
}
|
|
|
|
class RecoveryKeyStatusRefresh extends RecoveryKeyEvent {
|
|
const RecoveryKeyStatusRefresh();
|
|
|
|
@override
|
|
List<Object?> get props => [];
|
|
}
|