from static method

NetState from(
  1. int val
)

Create enum item from int value

Implementation

static NetState from(int val) {
  switch(val) {
    case SiprixVoipSdk.kNetStateRestored:  return NetState.restored;
    case SiprixVoipSdk.kNetStateSwitched:  return NetState.switched;
    default: return  NetState.lost;
  }
}