convertInterfaceValue static method
枚举Index转为对应原生接口返回值
index
枚举Index
returns
原生接口返回值
Implementation
static int convertInterfaceValue(int index) {
switch (index) {
case 0:
return 8;
case 1:
return 10;
case 2:
return 12;
case 3:
return 15;
case 4:
return 20;
case 5:
return 25;
case 6:
return 30;
}
return 20;
}