/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "inactive">Whether to return only inactive or active bounces; use null to return all bounces</param> /// <param name = "emailFilter">Filters based on whether the filter value is contained in the bounce source's email</param> /// <param name = "tag">Filters on the bounce tag</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, bool?inactive, string emailFilter, string tag, int offset, int count) { var request = NewBouncesRequest(); request.Path = "bounces"; if (inactive.HasValue) { request.AddParameter("inactive", inactive.Value.ToString().ToLowerInvariant()); } if (!string.IsNullOrEmpty(emailFilter)) { request.AddParameter("emailFilter", emailFilter); } if (!string.IsNullOrEmpty(tag)) { request.AddParameter("tag", tag); } request.AddParameter("offset", offset.ToString()); request.AddParameter("count", count.ToString()); var response = _client.Request(request); return(JsonConvert.DeserializeObject <PostmarkBounces>(response.Content, _settings)); }
/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "inactive">Whether to return only inactive or active bounces; use null to return all bounces</param> /// <param name = "emailFilter">Filters based on whether the filter value is contained in the bounce source's email</param> /// <param name = "tag">Filters on the bounce tag</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public IAsyncResult BeginGetBounces(PostmarkBounceType type, bool?inactive, string emailFilter, string tag, int offset, int count) { var request = NewBouncesRequest(); request.Path = "bounces"; if (inactive.HasValue) { request.AddParameter("inactive", inactive.Value.ToString().ToLowerInvariant()); } if (!string.IsNullOrEmpty(emailFilter)) { request.AddParameter("emailFilter", emailFilter); } if (!string.IsNullOrEmpty(tag)) { request.AddParameter("tag", tag); } request.AddParameter("offset", offset.ToString()); request.AddParameter("count", count.ToString()); return(_client.BeginRequest(request)); }
/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "inactive">Whether to return only inactive or active bounces; use null to return all bounces</param> /// <param name = "emailFilter">Filters based on whether the filter value is contained in the bounce source's email</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, bool?inactive, string emailFilter, int offset, int count) { return(GetBounces(type, inactive, emailFilter, null, offset, count)); }
/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "emailFilter">Filters based on whether the filter value is contained in the bounce source's email</param> /// <param name = "tag">Filters on the bounce tag</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, string emailFilter, string tag, int offset, int count) { return(GetBounces(type, null, emailFilter, tag, offset, count)); }
/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "inactive">Whether to return only inactive or active bounces; use null to return all bounces</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, bool?inactive, int offset, int count) { return(GetBounces(type, inactive, null, null, offset, count)); }
/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, int offset, int count) { return(GetBouncesImpl(type, null, null, null, offset, count)); }
public static PostmarkBounces GetBounces(this PostmarkClient client, PostmarkBounceType type, bool?inactive, string emailFilter, int offset, int count) { return(client.GetBouncesAsync(offset, count, type, inactive: inactive, emailFilter: emailFilter).WaitForResult()); }
public static IAsyncResult BeginGetBounces (this PostmarkClient client, PostmarkBounceType type, bool?inactive, string emailFilter, string tag, int offset, int count) { return(client.GetBouncesAsync(offset, count, type, inactive, emailFilter, tag)); }
/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public IAsyncResult BeginGetBounces(PostmarkBounceType type, int offset, int count) { return(BeginGetBouncesImpl(type, null, null, null, offset, count)); }
/// <summary> /// Retrieves a collection of <see cref="PostmarkBounce"/> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name="type">The type of bounces to filter on</param> /// <param name="inactive">Whether to return only inactive or active bounces; use null to return all bounces</param> /// <param name="emailFilter">Filters based on whether the filter value is contained in the bounce source's email</param> /// <param name="offset">The page offset for the returned results; mandatory</param> /// <param name="count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href="http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, bool? inactive, string emailFilter, int offset, int count) { return GetBounces(type, inactive, emailFilter, null, offset, count); }
/// <summary> /// Retrieves a collection of <see cref="PostmarkBounce"/> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name="type">The type of bounces to filter on</param> /// <param name="emailFilter">Filters based on whether the filter value is contained in the bounce source's email</param> /// <param name="tag">Filters on the bounce tag</param> /// <param name="offset">The page offset for the returned results; mandatory</param> /// <param name="count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href="http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, string emailFilter, string tag, int offset, int count) { return GetBounces(type, null, emailFilter, tag, offset, count); }
/// <summary> /// Retrieves a collection of <see cref="PostmarkBounce"/> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name="type">The type of bounces to filter on</param> /// <param name="inactive">Whether to return only inactive or active bounces; use null to return all bounces</param> /// <param name="offset">The page offset for the returned results; mandatory</param> /// <param name="count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href="http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, bool? inactive, int offset, int count) { return GetBounces(type, inactive, null, null, offset, count); }
/// <summary> /// Retrieves a collection of <see cref="PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name="type">The type of bounces to filter on</param> /// <param name="inactive">Whether to return only inactive or active bounces; use null to return all bounces</param> /// <param name="emailFilter">Filters based on whether the filter value is contained in the bounce source's email</param> /// <param name="tag">Filters on the bounce tag</param> /// <param name="offset">The page offset for the returned results; mandatory</param> /// <param name="count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href="http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, bool? inactive, string emailFilter, string tag, int offset, int count) { var request = NewBouncesRequest(); request.Path = "bounces"; if (inactive.HasValue) request.AddParameter("inactive", inactive.Value.ToString().ToLowerInvariant()); if (!string.IsNullOrEmpty(emailFilter)) request.AddParameter("emailFilter", emailFilter); if (!string.IsNullOrEmpty(tag)) request.AddParameter("tag", tag); request.AddParameter("offset", offset.ToString()); request.AddParameter("count", count.ToString()); var response = _client.Request(request); return JsonConvert.DeserializeObject<PostmarkBounces>(response.Content, _settings); }
/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public PostmarkBounces GetBounces(PostmarkBounceType type, int offset, int count) { return GetBouncesImpl(type, null, null, null, offset, count); }
public static PostmarkBounces GetBounces(this PostmarkClient client, PostmarkBounceType type, int offset, int count) { return(Task.Run(async() => await client.GetBouncesAsync(offset, count, type)).Result); }
/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "emailFilter">Filters based on whether the filter value is contained in the bounce source's email</param> /// <param name = "tag">Filters on the bounce tag</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public IAsyncResult BeginGetBounces(PostmarkBounceType type, string emailFilter, string tag, int offset, int count) { return(BeginGetBouncesImpl(type, null, emailFilter, tag, offset, count)); }
public static PostmarkBounces GetBounces(this PostmarkClient client, PostmarkBounceType type, bool?inactive, string emailFilter, int offset, int count) { return(Task.Run(async() => await client.GetBouncesAsync(offset, count, type, inactive: inactive, emailFilter: emailFilter)).Result); }
/// <summary> /// Retrieves a collection of <see cref = "PostmarkBounce" /> instances along /// with a sum total of bounces recorded by the server, based on filter parameters. /// </summary> /// <param name = "type">The type of bounces to filter on</param> /// <param name = "inactive">Whether to return only inactive or active bounces; use null to return all bounces</param> /// <param name = "emailFilter">Filters based on whether the filter value is contained in the bounce source's email</param> /// <param name = "offset">The page offset for the returned results; mandatory</param> /// <param name = "count">The number of results to return by the page offset; mandatory.</param> /// <returns></returns> /// <seealso href = "http://developer.postmarkapp.com/bounces" /> public IAsyncResult BeginGetBounces(PostmarkBounceType type, bool?inactive, string emailFilter, int offset, int count) { return(BeginGetBouncesImpl(type, inactive, emailFilter, null, offset, count)); }
public static IAsyncResult BeginGetBounces (this PostmarkClient client, PostmarkBounceType type, bool?inactive, int offset, int count) { return(client.GetBouncesAsync(offset, count, type, inactive)); }
public static PostmarkBounces GetBounces(this PostmarkClient client, PostmarkBounceType type, int offset, int count) { return(client.GetBouncesAsync(offset, count, type).WaitForResult()); }