convertToReceiveMessageOpt static method
Implementation
static ReceiveMessageOpt convertToReceiveMessageOpt(int v2Opt) {
switch (v2Opt) {
case 0: // V2TIM_RECEIVE_MESSAGE
return ReceiveMessageOpt.receive;
case 1: // V2TIM_NOT_RECEIVE_MESSAGE
return ReceiveMessageOpt.notReceive;
case 2: // V2TIM_RECEIVE_NOT_NOTIFY_MESSAGE
return ReceiveMessageOpt.notNotify;
case 3: // V2TIM_RECEIVE_NOT_NOTIFY_MESSAGE_EXCEPT_AT
return ReceiveMessageOpt.notNotifyExceptMention;
case 4: // V2TIM_NOT_RECEIVE_MESSAGE_EXCEPT_AT
return ReceiveMessageOpt.notReceiveExceptMention;
default:
return ReceiveMessageOpt.receive;
}
}