convertToApplicationFriendType static method
- int type
Implementation
static String convertToApplicationFriendType(int type) {
if (type == V2TIM_FRIEND_APPLICATION_BOTH) {
return SNS_APPLICATION_TYPE_BOTH;
}
if (type == V2TIM_FRIEND_APPLICATION_COME_IN) {
return SNS_APPLICATION_SENT_TO_ME;
}
if (type == V2TIM_FRIEND_APPLICATION_SEND_OUT) {
return SNS_APPLICATION_SENT_BY_ME;
}
return "undefind enum";
}