dartFriendApplicationType2CType static method

int dartFriendApplicationType2CType(
  1. int type
)

Implementation

static int dartFriendApplicationType2CType(int type) {
  switch (type) {
    case FriendApplicationType.V2TIM_FRIEND_APPLICATION_COME_IN:
      return CFriendPendencyType.friendPendencyTypeComeIn;
    case FriendApplicationType.V2TIM_FRIEND_APPLICATION_SEND_OUT:
      return CFriendPendencyType.friendPendencyTypeSendOut;
    case FriendApplicationType.V2TIM_FRIEND_APPLICATION_BOTH:
      return CFriendPendencyType.friendPendencyTypeBoth;
    default:
      print('please input a valid FriendApplicationType');
      return CFriendPendencyType.friendPendencyTypeComeIn;
  }
}