示例#1
0
      /// <summary>
      /// get mail Report for sending
      /// </summary>
      /// <param name="mailJobId"></param>
      /// <param name="startTime"></param>
      /// <param name="endTime"></param>
      /// <param name="pageSize"></param>
      /// <param name="pageNumber"></param>
      /// <returns></returns>
        public Contact[] getDeliveredByMailJobId(String mailJobId, DateTime startTime, DateTime endTime, int pageSize, int pageNumber)
        {
            Contact[] contacts = null; ;
            if (logger.IsDebugEnabled)
            {
                logger.Debug("getDeliveredByMailJobId:mailJobId=" + mailJobId);
            }          
          

            ReportingWithinTimeRangeByMailJobIdRequest request = new ReportingWithinTimeRangeByMailJobIdRequest();
            try
            {
                request.mailJobId = mailJobId;     
           
                request.returnContactFields = new ReturnContactFields();             
                request.returnContactFields.contactDatabaseFieldGroupNames = new string[] { "reportgroup" };              
                request.timeRange = new cn.tripolis.dialogue.reporting.TimeRange();
                request.timeRange.startTime = startTime;
                request.timeRange.endTime = endTime;

                request.paging = new cn.tripolis.dialogue.reporting.PagingIn();
                request.paging.pageSize = pageSize;
                request.paging.pageNr = pageNumber;               

                ContactListResponse response = reportingService.getDeliveredByMailJobId(request);
                if (response != null)
                {
                    contacts = response.contacts;
                }
            }
            catch (System.Web.Services.Protocols.SoapException ex)
            {
               
                    throw new Exception(ex.Detail.InnerXml);
                
            }
             return contacts;
        }
示例#2
0
 /// <remarks/>
 public void getOpenedByMailJobIdAsync(ReportingWithinTimeRangeByMailJobIdRequest getOpenedByMailJobIdRequest, object userState) {
     if ((this.getOpenedByMailJobIdOperationCompleted == null)) {
         this.getOpenedByMailJobIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetOpenedByMailJobIdOperationCompleted);
     }
     this.InvokeAsync("getOpenedByMailJobId", new object[] {
                 getOpenedByMailJobIdRequest}, this.getOpenedByMailJobIdOperationCompleted, userState);
 }
示例#3
0
 /// <remarks/>
 public void getOpenedByMailJobIdAsync(ReportingWithinTimeRangeByMailJobIdRequest getOpenedByMailJobIdRequest) {
     this.getOpenedByMailJobIdAsync(getOpenedByMailJobIdRequest, null);
 }