Beispiel #1
0
        private void btn_editConf_Click(object sender, EventArgs e)
        {
            try
            {
                EditConfInfo _confInfo = new EditConfInfo();
                _confInfo.userId      = this.txt_AccountId.Text.Trim();
                _confInfo.gwIp        = this.txt_gwIp.Text.Trim();
                _confInfo.subPbx      = this.txt_PBXid.Text.Trim();
                _confInfo.confId      = this.txt_confId.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();

                CommentResponse result = ecBusiness.EditConf(_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 edit conference success.");
                    }
                    else
                    {
                        this.WriteLog("call edit conference failed," + result.resultContext);
                    }
                }
                else
                {
                    this.WriteLog("call edit conference failed,response is null.");
                }
            }
            catch (Exception ex)
            {
                this.WriteLog("call edit conference failed," + ex.Message);
            }
        }
Beispiel #2
0
        private void btn_addConfNumber_Click(object sender, EventArgs e)
        {
            try
            {
                AddConfMemberInfo _addConfMemberInfo = new AddConfMemberInfo();
                _addConfMemberInfo.userId    = this.txt_AccountId.Text.Trim();
                _addConfMemberInfo.gwIp      = this.txt_gwIp.Text.Trim();
                _addConfMemberInfo.confId    = this.txt_confId.Text.Trim();
                _addConfMemberInfo.subPbx    = this.txt_PBXid.Text.Trim();
                _addConfMemberInfo.account   = "1205007";
                _addConfMemberInfo.attNumber = "1205007";
                _addConfMemberInfo.attType   = "0";
                _addConfMemberInfo.email     = "";

                CommentResponse result = ecBusiness.AddConfMember(_addConfMemberInfo);
                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 #3
0
        public static CommentResponse addConfMember(AddConfMemberInfo info)
        {
            CommentResponse result = eSDKServiceHelper.CallService <CommentResponse>(EcConstUri.attendee_uri, HttpMethod.POST, info);

            return(result);
        }
Beispiel #4
0
        public static CommentResponse editConf(EditConfInfo info)
        {
            CommentResponse result = eSDKServiceHelper.CallService <CommentResponse>(EcConstUri.ctc_uri, HttpMethod.PUT, info);

            return(result);
        }
Beispiel #5
0
        /// <summary>
        /// 添加会议成员
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public CommentResponse AddConfMember(AddConfMemberInfo info)
        {
            CommentResponse result = eSDKServiceHelper.addConfMember(info);

            return(result);
        }
Beispiel #6
0
        /// <summary>
        /// 修改会议
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public CommentResponse EditConf(EditConfInfo info)
        {
            CommentResponse result = eSDKServiceHelper.editConf(info);

            return(result);
        }