convertToV2TIMReceiveMessageOpt static method

ReceiveMsgOptEnum convertToV2TIMReceiveMessageOpt(
  1. ReceiveMessageOpt opt
)

Implementation

static ReceiveMsgOptEnum convertToV2TIMReceiveMessageOpt(ReceiveMessageOpt opt) {
  switch (opt) {
    case ReceiveMessageOpt.receive:
      return ReceiveMsgOptEnum.V2TIM_RECEIVE_MESSAGE;
    case ReceiveMessageOpt.notReceive:
      return ReceiveMsgOptEnum.V2TIM_NOT_RECEIVE_MESSAGE;
    case ReceiveMessageOpt.notNotify:
      return ReceiveMsgOptEnum.V2TIM_RECEIVE_NOT_NOTIFY_MESSAGE;
    case ReceiveMessageOpt.notNotifyExceptMention:
      return ReceiveMsgOptEnum.V2TIM_RECEIVE_NOT_NOTIFY_MESSAGE_EXCEPT_AT;
    case ReceiveMessageOpt.notReceiveExceptMention:
      return ReceiveMsgOptEnum.V2TIM_NOT_RECEIVE_MESSAGE_EXCEPT_AT;
  }
}