public static QueryAddressResponse queryAddress(QueryAddressInfo info) { string _uri = ECConstUri.address_uri + string.Format("?account={0}&condition={1}&pageCount={2}&pageNum={3}", info.account, info.condition, info.pageCount, info.pageNum); QueryAddressResponse result = eSDKServiceHelper.CallService <QueryAddressResponse>(_uri, HttpMethod.GET); return(result); }
//查询个人通讯录 private void btn_QueryAddress_Click(object sender, EventArgs e) { try { QueryAddressInfo _info = new QueryAddressInfo(); _info.account = this.txt_ECAccount.Text.Trim(); _info.condition = this.txt_queryCondition.Text.Trim(); _info.pageCount = this.txt_pageCount.Text.Trim(); _info.pageNum = this.txt_pageNum.Text.Trim(); QueryAddressResponse result = ecBusiness.QueryAddress(_info); 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 query address success."); } else { this.WriteLog("call query address failed," + result.resultContext); } } else { this.WriteLog("call query address fail,response is null."); } } catch (Exception ex) { this.WriteLog("call query address fail," + ex.Message); } }
/// <summary> /// 查询个人通讯录户 /// </summary> /// <param name="info"></param> /// <returns></returns> public QueryAddressResponse QueryAddress(QueryAddressInfo info) { QueryAddressResponse result = eSDKServiceHelper.queryAddress(info); return(result); }