예제 #1
0
        /// <summary>
        /// 邀请好友入群
        /// </summary>
        /// <param name="tid">群组id</param>
        /// <param name="idList">被邀请人员id列表</param>
        /// <param name="postscript">邀请附言</param>
        /// <param name="attachment">用户可自定义的补充邀请信息</param>
        /// <param name="action">操作结果回调</param>
        public static void InviteEx(string tid, string[] idList, string postscript, string attachment, TeamChangedNotificationDelegate action)
        {
            var idJson = NimUtility.Json.JsonParser.Serialize(idList);
            var ptr    = NimUtility.DelegateConverter.ConvertToIntPtr(action);

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