toInt static method

int toInt(
  1. QosPreferenceEnum value
)

转换为常量类型 value 枚举 Return 转换结果

Implementation

static int toInt(QosPreferenceEnum value) {
  switch (value) {
    case QosPreferenceEnum.Smooth:
      return 1;
    case QosPreferenceEnum.Clear:
      return 2;
  }
}