mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-20 06:08:34 +02:00
17 lines
418 B
Dart
17 lines
418 B
Dart
abstract class ConnectionToNodeState {}
|
|
|
|
class InitialConnectionState extends ConnectionToNodeState {}
|
|
|
|
class IsConnectingState extends ConnectionToNodeState {}
|
|
|
|
class ConnectedSuccessfullyState extends ConnectionToNodeState {
|
|
ConnectedSuccessfullyState(this.isAlive);
|
|
|
|
final bool isAlive;
|
|
}
|
|
|
|
class FailureConnectedState extends ConnectionToNodeState {
|
|
FailureConnectedState(this.error);
|
|
|
|
final String error;
|
|
} |