getObj static method
Implementation
static BleConnectionState getObj(int state) {
switch (state) {
case 1:
return BleConnectionState.connected;
case 2:
return BleConnectionState.disconnected;
case 0:
default:
return BleConnectionState.none;
}
}