Added Agent Availability screen
This commit is contained in:
@@ -2,22 +2,22 @@
|
||||
///
|
||||
/// See the note in `EAgentType.dart` about ordering and [unknown].
|
||||
enum EAgentStatus {
|
||||
offline,
|
||||
idle,
|
||||
available,
|
||||
working,
|
||||
offline,
|
||||
error,
|
||||
unknown;
|
||||
|
||||
bool get isOnline => this == EAgentStatus.idle || this == EAgentStatus.working;
|
||||
bool get isOnline => this == EAgentStatus.available || this == EAgentStatus.working;
|
||||
|
||||
String get displayName {
|
||||
switch (this) {
|
||||
case EAgentStatus.offline:
|
||||
return 'Offline';
|
||||
case EAgentStatus.idle:
|
||||
return 'Idle';
|
||||
case EAgentStatus.available:
|
||||
return 'Available';
|
||||
case EAgentStatus.working:
|
||||
return 'Working';
|
||||
case EAgentStatus.offline:
|
||||
return 'Offline';
|
||||
case EAgentStatus.error:
|
||||
return 'Error';
|
||||
case EAgentStatus.unknown:
|
||||
|
||||
Reference in New Issue
Block a user