convertFromApplicationFriendType static method

int convertFromApplicationFriendType(
  1. String type
)

Implementation

static int convertFromApplicationFriendType(String type) {
  if (type == SNS_APPLICATION_TYPE_BOTH) {
    return V2TIM_FRIEND_APPLICATION_BOTH;
  }
  if (type == SNS_APPLICATION_SENT_TO_ME) {
    return V2TIM_FRIEND_APPLICATION_COME_IN;
  }
  if (type == SNS_APPLICATION_SENT_BY_ME) {
    return V2TIM_FRIEND_APPLICATION_SEND_OUT;
  }
  return -1;
}