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