/// <summary> /// delete email content by email id. /// </summary> /// <param name="emailTypeId">email type id</param> /// <param name="emailName">email name</param> /// <returns>email id</returns> public String deleteDirectEmailId(String emailId) { if (logger.IsDebugEnabled) { logger.Debug("deleteDirectEmailId:emaemailIdilTypeId=" + emailId); } String result = ""; IDRequest request = new IDRequest(); try { request.id = emailId; IDResponse response = directEmailService.delete(request); result = response.message; } catch (System.Web.Services.Protocols.SoapException ex) { if (logger.IsDebugEnabled) { logger.Debug("error happens in getting email type id, error is" + result); } throw new Exception(ex.Detail.InnerXml); } return result; }
/// <remarks/> public void deleteAsync(IDRequest deleteRequest, object userState) { if ((this.deleteOperationCompleted == null)) { this.deleteOperationCompleted = new System.Threading.SendOrPostCallback(this.OndeleteOperationCompleted); } this.InvokeAsync("delete", new object[] { deleteRequest}, this.deleteOperationCompleted, userState); }
/// <remarks/> public void getByIdAsync(IDRequest getByIdRequest, object userState) { if ((this.getByIdOperationCompleted == null)) { this.getByIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetByIdOperationCompleted); } this.InvokeAsync("getById", new object[] { getByIdRequest}, this.getByIdOperationCompleted, userState); }
/// <remarks/> public void deleteAsync(IDRequest deleteRequest) { this.deleteAsync(deleteRequest, null); }
/// <remarks/> public void getByIdAsync(IDRequest getByIdRequest) { this.getByIdAsync(getByIdRequest, null); }