messagePriority2Dart static method
Implementation
static int messagePriority2Dart(int priority) {
int res = 0;
switch (priority) {
case 0:
res = MessagePriority.V2TIM_PRIORITY_HIGH;
break;
case 1:
res = MessagePriority.V2TIM_PRIORITY_NORMAL;
break;
case 2:
res = MessagePriority.V2TIM_PRIORITY_LOW;
break;
case 3:
res = MessagePriority.V2TIM_PRIORITY_LOW;
break;
default:
break;
}
return res;
}