forValue static method

PlayerSDKNotifyCodes forValue(
  1. int id
)

Implementation

static PlayerSDKNotifyCodes forValue(int id) {
  PlayerSDKNotifyCodes ret = PlayerSDKNotifyCodes.PLP_TRIAL_VERSION;
  for (PlayerSDKNotifyCodes item in _typesByValue) {
    if (item.value == id) {
      return item;
    }
  }
  return ret;
}