You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
432 B
15 lines
432 B
enum DeviceConnectionStatus { NOT_CONNECTED, CONNECTING, CONNECTED }
|
|
|
|
extension DeviceConnectionStatusExtenstion on DeviceConnectionStatus {
|
|
String get statusName {
|
|
switch (this) {
|
|
case DeviceConnectionStatus.NOT_CONNECTED:
|
|
return "Not connected";
|
|
case DeviceConnectionStatus.CONNECTING:
|
|
return "Connecting";
|
|
case DeviceConnectionStatus.CONNECTED:
|
|
return "MDS connected";
|
|
}
|
|
}
|
|
}
|