cReceiveMessageOpt2DartOpt static method
Implementation
static ReceiveMsgOptEnum cReceiveMessageOpt2DartOpt(int opt) {
switch (opt) {
case ReceiveMsgOptType.kTIMRecvMsgOpt_Receive:
return ReceiveMsgOptEnum.V2TIM_RECEIVE_MESSAGE;
case ReceiveMsgOptType.kTIMRecvMsgOpt_Not_Receive:
return ReceiveMsgOptEnum.V2TIM_NOT_RECEIVE_MESSAGE;
case ReceiveMsgOptType.kTIMRecvMsgOpt_Not_Notify:
return ReceiveMsgOptEnum.V2TIM_RECEIVE_NOT_NOTIFY_MESSAGE;
case ReceiveMsgOptType.kTIMRecvMsgOpt_Not_Notify_Except_At:
return ReceiveMsgOptEnum.V2TIM_RECEIVE_NOT_NOTIFY_MESSAGE_EXCEPT_AT;
case ReceiveMsgOptType.kTIMRecvMsgOpt_Not_Receive_Except_At:
return ReceiveMsgOptEnum.V2TIM_NOT_RECEIVE_MESSAGE_EXCEPT_AT;
default:
return ReceiveMsgOptEnum.V2TIM_RECEIVE_MESSAGE;
}
}