/// <summary> /// Returns the number of bounce events based on the specified parameters /// </summary> /// <param name="options">the options for this query</param> /// <returns>the number of bounce events</returns> public long GetBouncesCount(BounceParameters options) { QueryParameters parameters = options.GetQueryParameters(); ResponseWrapper response = Get("reports/bounces/count", parameters); return(SerializationUtils <long> .FromXmlString(response.Body, "count")); }
/// <summary> /// Returns a page of bounce events based on the specified parameters /// </summary> /// <param name="options">the options for this query</param> /// <param name="pageIndex">the index of the page</param> /// <param name="pageSize">the size of the page</param> /// <returns>a page of bounce events</returns> public Page <Bounce> GetBounces(BounceParameters options, int pageIndex, int pageSize) { QueryParameters parameters = CreatePageQueryParameters(pageIndex, pageSize, options); ResponseWrapper response = Get("reports/bounces", parameters); Page <Bounce> page = new Page <Bounce>(pageIndex, pageSize, response); page.Items = SerializationUtils <BounceCollection> .FromXmlString(response.Body); return(page); }