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); } }
/// <summary> /// 点击呼叫 /// </summary> /// <param name="info"></param> /// <returns></returns> public CommentResponse ctdCall(CTDCallInfo info) { CommentResponse result = eSDKServiceHelper.ctdCall(info); return(result); }
public static CommentResponse ctdCall(CTDCallInfo info) { CommentResponse result = eSDKServiceHelper.CallService <CommentResponse>(ECConstUri.ctd_uri, HttpMethod.POST, info); return(result); }