mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-11 03:03:18 +00:00
44 lines
1,021 B
Dart
44 lines
1,021 B
Dart
part of 'tokens_bloc.dart';
|
|
|
|
sealed class TokensEvent extends Equatable {
|
|
const TokensEvent();
|
|
}
|
|
|
|
class RevalidateTokens extends TokensEvent {
|
|
const RevalidateTokens();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class AddServerProviderToken extends TokensEvent {
|
|
const AddServerProviderToken(this.serverProviderCredential);
|
|
|
|
final ServerProviderCredential serverProviderCredential;
|
|
|
|
@override
|
|
List<Object> get props => [serverProviderCredential];
|
|
}
|
|
|
|
class ServerSelectedForProviderToken extends TokensEvent {
|
|
const ServerSelectedForProviderToken(
|
|
this.providerServer,
|
|
this.server,
|
|
this.serverProviderCredential,
|
|
);
|
|
|
|
final ServerBasicInfoWithValidators providerServer;
|
|
final Server server;
|
|
final ServerProviderCredential serverProviderCredential;
|
|
|
|
@override
|
|
List<Object> get props => [providerServer, server, serverProviderCredential];
|
|
}
|
|
|
|
class RefreshServerApiTokenEvent extends TokensEvent {
|
|
const RefreshServerApiTokenEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|