Skip to content

Commit

Permalink
Merge pull request #81 from wildbit/task/use-long-bounce-ids
Browse files Browse the repository at this point in the history
Use long Bounce IDs
  • Loading branch information
vladsandu committed Apr 6, 2020
2 parents 58e6d78 + 8c96389 commit 5b3a67e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Postmark/Model/PostmarkBounce.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class PostmarkBounce
/// This is used for other API calls that require the ID.
/// </summary>
/// <value>The ID</value>
public int ID { get; set; }
public long ID { get; set; }

/// <summary>
/// The <see cref = "PostmarkBounceType" /> for this bounce.
Expand Down
6 changes: 3 additions & 3 deletions src/Postmark/PostmarkClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public async Task<PostmarkBounces> GetBouncesAsync(int offset = 0, int count = 1
/// <param name="bounceId">The bounce ID of the bounce to retrieve.</param>
/// <returns></returns>
/// <seealso href = "http://developer.postmarkapp.com/bounces" />
public async Task<PostmarkBounce> GetBounceAsync(int bounceId)
public async Task<PostmarkBounce> GetBounceAsync(long bounceId)
{
return await ProcessNoBodyRequestAsync<PostmarkBounce>("/bounces/" + bounceId);
}
Expand All @@ -130,7 +130,7 @@ public async Task<PostmarkBounce> GetBounceAsync(int bounceId)
/// <param name="bounceId">The bounce ID of the bounce dump to retrieve.</param>
/// <returns></returns>
/// <seealso href = "http://developer.postmarkapp.com/bounces" />
public async Task<PostmarkBounceDump> GetBounceDumpAsync(int bounceId)
public async Task<PostmarkBounceDump> GetBounceDumpAsync(long bounceId)
{
return await ProcessNoBodyRequestAsync<PostmarkBounceDump>("/bounces/" + bounceId + "/dump");
}
Expand All @@ -141,7 +141,7 @@ public async Task<PostmarkBounceDump> GetBounceDumpAsync(int bounceId)
/// <param name="bounceId">The bounce ID of the bounce to Activate</param>
/// <returns></returns>
/// <seealso href = "http://developer.postmarkapp.com/bounces" />
public async Task<PostmarkBounceActivation> ActivateBounceAsync(int bounceId)
public async Task<PostmarkBounceActivation> ActivateBounceAsync(long bounceId)
{
return await ProcessNoBodyRequestAsync<PostmarkBounceActivation>("/bounces/" + bounceId + "/activate", verb: HttpMethod.Put);
}
Expand Down

0 comments on commit 5b3a67e

Please sign in to comment.