Пример #1
0
        /// <summary>
        /// 邀请好友入群
        /// </summary>
        /// <param name="tid">群id</param>
        /// <param name="idList">被邀请人员id列表</param>
        /// <param name="postscript">邀请附言</param>
        /// <param name="action">操作结果回调</param>
        public static void Invite(string tid, string[] idList, string postscript, TeamChangedNotificationDelegate action)
        {
            var idJson = NimUtility.Json.JsonParser.Serialize(idList);
            var ptr    = NimUtility.DelegateConverter.ConvertToIntPtr(action);

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