Esempio n. 1
0
        /// <summary>
        /// 禁止多端推送
        /// </summary>
        /// <param name="cb">操作结果委托</param>
        public static void DisableMultiportPush(ConfigMultiportPushDelegate cb)
        {
            ConfigMultiportPushParam param = new ConfigMultiportPushParam();

            param.Enabled = false;
            var ptr = DelegateConverter.ConvertToIntPtr(cb);

            ClientNativeMethods.nim_client_set_multiport_push_config(param.Serialize(), null, ConfigMultiportPushCb, ptr);
        }
Esempio n. 2
0
        private static void MultiportPushChanged(int resCode, string content, string jsonExt, IntPtr ptr)
        {
            ConfigMultiportPushParam param = ConfigMultiportPushParam.Deserialize(content);

            ptr.InvokeOnce <ConfigMultiportPushDelegate>((ResponseCode)resCode, param);
        }