convertMsgPriority static method
- String priority
Implementation
static int? convertMsgPriority(String priority) {
if (priority == MSG_PRIORITY_NORMAL) {
return MessagePriority.V2TIM_PRIORITY_DEFAULT;
}
if (priority == MSG_PRIORITY_LOW) {
return MessagePriority.V2TIM_PRIORITY_NORMAL;
}
if (priority == MSG_PRIORITY_LOWEST) {
return MessagePriority.V2TIM_PRIORITY_LOW;
}
if (priority == MSG_PRIORITY_HIGH) {
return MessagePriority.V2TIM_PRIORITY_HIGH;
}
return null;
}