Esempio n. 1
0
        private void Btn_Signaling_Close_Click(object sender, EventArgs e)
        {
            NIMSignalingCloseParam param = new NIMSignalingCloseParam();

            param.offline_enabled_ = cbOfflineSupport.Checked;
            param.custom_info_     = tbOptExt.Text;
            param.channel_id_      = tbChannelId.Text;
            NIMSignalingAPI.SignalingClose(param, NimSignalingOptCloseCallback);
        }
        public static NIMSignalingCloseParam_C GetNativeNIMSignalingCloseParam(NIMSignalingCloseParam param)
        {
            NIMSignalingCloseParam_C param_c = new NIMSignalingCloseParam_C();

            if (param != null)
            {
                param_c.channel_id_      = Utf8StringMarshaler.GetInstance("").MarshalManagedToNative(param.channel_id_);
                param_c.custom_info_     = Utf8StringMarshaler.GetInstance("").MarshalManagedToNative(param.custom_info_);
                param_c.offline_enabled_ = param.offline_enabled_;
            }
            return(param_c);
        }