Beispiel #1
0
        /// <summary>
        /// 更新群信息
        /// </summary>
        /// <param name="tid"></param>
        /// <param name="info"></param>
        /// <param name="action"></param>
        public static void UpdateTeamInfo(string tid, NIMTeamInfo info, TeamChangedNotificationDelegate action)
        {
            var ptr      = NimUtility.DelegateConverter.ConvertToIntPtr(action);
            var infoJson = info.Serialize();

            TeamNativeMethods.nim_team_update_team_info_async(tid, infoJson, null, _teamChangedCallback, ptr);
        }
Beispiel #2
0
        /// <summary>
        /// 创建群
        /// </summary>
        /// <param name="teamInfo">群组信息</param>
        /// <param name="idList">成员id列表(不包括自己)</param>
        /// <param name="postscript">附言</param>
        /// <param name="action"></param>
        public static void CreateTeam(NIMTeamInfo teamInfo, string[] idList, string postscript, TeamChangedNotificationDelegate action)
        {
            var tinfoJson = teamInfo.Serialize();
            var idJson    = NimUtility.Json.JsonParser.Serialize(idList);
            var ptr       = NimUtility.DelegateConverter.ConvertToIntPtr(action);

            TeamNativeMethods.nim_team_create_team_async(tinfoJson, idJson, postscript, null, _teamChangedCallback, ptr);
        }