Beispiel #1
0
        /// <summary>
        /// 移交群主
        /// </summary>
        /// <param name="tid"></param>
        /// <param name="newOwnerId"></param>
        /// <param name="leaveTeam">是否在移交后退出群</param>
        /// <param name="action"></param>
        public static void TransferTeamAdmin(string tid, string newOwnerId, bool leaveTeam, TeamChangedNotificationDelegate action)
        {
            var ptr = NimUtility.DelegateConverter.ConvertToIntPtr(action);

            TeamNativeMethods.nim_team_transfer_team_async(tid, newOwnerId, leaveTeam, null, _teamChangedCallback, ptr);
        }