mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
23
common/lib/src/model/server_result.dart
Normal file
23
common/lib/src/model/server_result.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
class ServerResult {
|
||||
final ServerResultType type;
|
||||
final Object? error;
|
||||
final StackTrace? stackTrace;
|
||||
|
||||
ServerResult(this.type, {this.error, this.stackTrace});
|
||||
}
|
||||
|
||||
enum ServerResultType {
|
||||
missingHostError,
|
||||
missingPortError,
|
||||
illegalPortError,
|
||||
freeingPort,
|
||||
freePortSuccess,
|
||||
freePortError,
|
||||
pingingRemote,
|
||||
pingingLocal,
|
||||
pingError,
|
||||
startSuccess,
|
||||
startError;
|
||||
|
||||
bool get isError => name.contains("Error");
|
||||
}
|
||||
Reference in New Issue
Block a user