Exemplo n.º 1
0
        /// <summary>
        /// 对群禁言/解除禁言
        /// </summary>
        /// <param name="tid">群组ID</param>
        /// <param name="value">禁言(true)或解除禁言(false)</param>
        /// <param name="cb">操作结果回调</param>
        public static void MuteTeam(string tid, bool value, TeamChangedNotificationDelegate cb)
        {
            var ptr = NimUtility.DelegateConverter.ConvertToIntPtr(cb);

            TeamNativeMethods.nim_team_mute_async(tid, value, null, _teamChangedCallback, ptr);
        }