/// <remarks/> public void getCommunicationHistoryAsync(GetCommunicationHistoryRequest getCommunicationHistory1, object userState) { if ((this.getCommunicationHistoryOperationCompleted == null)) { this.getCommunicationHistoryOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetCommunicationHistoryOperationCompleted); } this.InvokeAsync("getCommunicationHistory", new object[] { getCommunicationHistory1}, this.getCommunicationHistoryOperationCompleted, userState); }
private String getCommunicateHistory(String contactId) { if (logger.IsDebugEnabled) { logger.Debug("getCommunicateHistory:contactId=" + contactId); } String result; cn.tripolis.dialogue.contact.GetCommunicationHistoryRequest request = new cn.tripolis.dialogue.contact.GetCommunicationHistoryRequest(); try { request.contactId = contactId; request.includeFullDetails = true; cn.tripolis.dialogue.contact.CommunicationHistoryResponse response = contactService.getCommunicationHistory(request); result = response.message; } catch (System.Web.Services.Protocols.SoapException ex) { if (!Util.isCodeExist(ex.Detail) || Util.getExistId(ex.Detail).Equals("")) { result = ex.Detail.InnerXml; if (logger.IsDebugEnabled) { logger.Debug("error happens in add contact to contact group, error is" + result); } throw new Exception(ex.Detail.InnerXml); } result = Util.getExistId(ex.Detail); } return result; }
/// <remarks/> public void getCommunicationHistoryAsync(GetCommunicationHistoryRequest getCommunicationHistory1) { this.getCommunicationHistoryAsync(getCommunicationHistory1, null); }