Exemplo n.º 1
0
        /// <summary>
        /// 将用户踢下线
        /// </summary>
        /// <param name="tid">群id</param>
        /// <param name="idList">被踢用户id 列表</param>
        /// <param name="action"></param>
        public static void KickMemberOutFromTeam(string tid, string[] idList, TeamChangedNotificationDelegate action)
        {
            var idJson = NimUtility.Json.JsonParser.Serialize(idList);
            var ptr    = NimUtility.DelegateConverter.ConvertToIntPtr(action);

            TeamNativeMethods.nim_team_kick_async(tid, idJson, null, _teamChangedCallback, ptr);
        }