Example #1
0
        private void btn_CTD_Click(object sender, EventArgs e)
        {
            try
            {
                CTDCallInfo _info = new CTDCallInfo();
                _info.account = this.txt_ECAccount.Text.Trim();
                _info.caller  = this.txt_Caller.Text.Trim();
                _info.callee  = this.txt_Callee.Text.Trim();

                CommentResponse result = ecBusiness.ctdCall(_info);
                if (result != null)
                {
                    this.txt_ResultCode.Text = result.resultCode;
                    this.txt_Content.Text    = result.resultContext;
                    if (result.resultCode == "0")
                    {
                        this.WriteLog("call ctd success.");
                    }
                    else
                    {
                        this.WriteLog("call ctd failed," + result.resultContext);
                    }
                }
                else
                {
                    this.WriteLog("call ctd fail,response is null.");
                }
            }
            catch (Exception ex)
            {
                this.WriteLog("call ctd fail," + ex.Message);
            }
        }
Example #2
0
        private void btn_SendAffiche_Click(object sender, EventArgs e)
        {
            try
            {
                afficheInfo _afficheinfo = new afficheInfo();

                _afficheinfo.afficheTitle   = "Title";
                _afficheinfo.afficheContent = "Content";
                _afficheinfo.receiverType   = "1";

                List <string> listAccounts = new List <string>();
                listAccounts.Add("uctest01");
                listAccounts.Add("uctest02");
                _afficheinfo.staffAccounts = listAccounts;

                List <string> listDepartmentIds = new List <string>();
                listDepartmentIds.Add("ucpart01");
                listDepartmentIds.Add("ucpart02");
                _afficheinfo.departmentIds = listDepartmentIds;

                CommentResponse result = ecBusiness.affiche(_afficheinfo);
                if (result != null)
                {
                    this.txt_ResultCode.Text = result.resultCode;
                    this.txt_Content.Text    = result.resultContext;
                    if (result.resultCode == "0")
                    {
                        this.WriteLog("call affiche success.");
                    }
                    else
                    {
                        this.WriteLog("call affiche failed," + result.resultContext);
                    }
                }
                else
                {
                    this.WriteLog("call affiche failed,response is null.");
                }
            }
            catch (Exception ex)
            {
                this.WriteLog("call affiche failed," + ex.Message);
            }
        }
Example #3
0
        /// <summary>
        /// 点击呼叫
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public CommentResponse ctdCall(CTDCallInfo info)
        {
            CommentResponse result = eSDKServiceHelper.ctdCall(info);

            return(result);
        }
Example #4
0
        /// <summary>
        /// 发送公告
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public CommentResponse affiche(afficheInfo info)
        {
            CommentResponse result = eSDKServiceHelper.affiche(info);

            return(result);
        }
Example #5
0
        public static CommentResponse ctdCall(CTDCallInfo info)
        {
            CommentResponse result = eSDKServiceHelper.CallService <CommentResponse>(ECConstUri.ctd_uri, HttpMethod.POST, info);

            return(result);
        }
Example #6
0
        public static CommentResponse affiche(afficheInfo info)
        {
            CommentResponse result = eSDKServiceHelper.CallService <CommentResponse>(ECConstUri.affiche_uri, HttpMethod.POST, info);

            return(result);
        }