convertMsgPriorityToWeb static method

String convertMsgPriorityToWeb(
  1. int priority
)

Implementation

static String convertMsgPriorityToWeb(int priority) {
  if (priority == MessagePriority.V2TIM_PRIORITY_DEFAULT) {
    return MSG_PRIORITY_NORMAL;
  }

  if (priority == MessagePriority.V2TIM_PRIORITY_NORMAL) {
    return MSG_PRIORITY_LOW;
  }

  if (priority == MessagePriority.V2TIM_PRIORITY_LOW) {
    return MSG_PRIORITY_LOWEST;
  }

  if (priority == MessagePriority.V2TIM_PRIORITY_HIGH) {
    return MSG_PRIORITY_HIGH;
  }

  return '';
}