Beispiel #1
0
        private void btn_addConf_Click(object sender, EventArgs e)
        {
            try
            {
                AddConfInfo _confInfo = new AddConfInfo();
                _confInfo.userId      = this.txt_AccountId.Text.Trim();
                _confInfo.gwIp        = this.txt_gwIp.Text.Trim();
                _confInfo.subPbx      = this.txt_PBXid.Text.Trim();
                _confInfo.guestPwd    = this.txt_guestPw5.Text.Trim();
                _confInfo.chairmanPwd = this.txt_masterPw5.Text.Trim();
                _confInfo.amount      = this.txt_confNumber.Text.Trim();
                _confInfo.recordFlag  = this.cbx_isRecord.Text.Trim();
                _confInfo.srtpMode    = this.cbx_isEncrype.Text.Trim();
                _confInfo.startTime   = this.txt_confStartTime.Text.Trim();
                _confInfo.endTime     = this.txt_confEndTime.Text.Trim();
                _confInfo.confMode    = this.cbx_confType.Text.Trim();
                _confInfo.confName    = this.txt_confTitle.Text.Trim();
                _confInfo.leavePrompt = this.cbx_leavePrompt.Text.Trim();
                _confInfo.enterPrompt = this.cbx_enterPrompt.Text.Trim();

                AddConfResponse result = ecBusiness.AddConf(_confInfo);
                if (result != null)
                {
                    this.txt_ResultCode.Text = result.resultCode;
                    this.txt_Content.Text    = result.resultContext;
                    this.txt_ResultInfo.Text = eSDKServiceHelper.GetJsonString(result);
                    if (result.resultCode == "0")
                    {
                        this.WriteLog("call schedule conference success.");
                    }
                    else
                    {
                        this.WriteLog("call schedule conference failed," + result.resultContext);
                    }
                }
                else
                {
                    this.WriteLog("call schedule conference failed,response is null.");
                }
            }
            catch (Exception ex)
            {
                this.WriteLog("call schedule conference failed," + ex.Message);
            }
        }
Beispiel #2
0
        public static AddConfResponse addConf(AddConfInfo info)
        {
            AddConfResponse result = eSDKServiceHelper.CallService <AddConfResponse>(EcConstUri.ctc_uri, HttpMethod.POST, info);

            return(result);
        }
Beispiel #3
0
        /// <summary>
        /// 预约会议
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public AddConfResponse AddConf(AddConfInfo info)
        {
            AddConfResponse result = eSDKServiceHelper.addConf(info);

            return(result);
        }