Setting up basic API Structure

This commit is contained in:
2026-08-28 14:54:54 +02:00
parent 968228cbc3
commit b3a13cd5a2
18 changed files with 974 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/// Mirror of the backend `EAgentStatus` enum.
///
/// See the note in `EAgentType.dart` about ordering and [unknown].
enum EAgentStatus {
offline,
idle,
working,
error,
unknown;
bool get isOnline => this == EAgentStatus.idle || this == EAgentStatus.working;
String get displayName {
switch (this) {
case EAgentStatus.offline:
return 'Offline';
case EAgentStatus.idle:
return 'Idle';
case EAgentStatus.working:
return 'Working';
case EAgentStatus.error:
return 'Error';
case EAgentStatus.unknown:
return 'Unknown';
}
}
}