From 7fce56fc099cfd39cbf5b9f1e54209189d79d765 Mon Sep 17 00:00:00 2001 From: Vlad Sandu Date: Fri, 27 Mar 2020 19:06:44 +0200 Subject: [PATCH] Use long Bounce IDs --- src/Postmark/Model/PostmarkBounce.cs | 2 +- src/Postmark/PostmarkClient.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Postmark/Model/PostmarkBounce.cs b/src/Postmark/Model/PostmarkBounce.cs index f607066..17110ad 100644 --- a/src/Postmark/Model/PostmarkBounce.cs +++ b/src/Postmark/Model/PostmarkBounce.cs @@ -14,7 +14,7 @@ public class PostmarkBounce /// This is used for other API calls that require the ID. /// /// The ID - public int ID { get; set; } + public long ID { get; set; } /// /// The for this bounce. diff --git a/src/Postmark/PostmarkClient.cs b/src/Postmark/PostmarkClient.cs index 0d02c5e..0393568 100644 --- a/src/Postmark/PostmarkClient.cs +++ b/src/Postmark/PostmarkClient.cs @@ -117,7 +117,7 @@ public async Task GetBouncesAsync(int offset = 0, int count = 1 /// The bounce ID of the bounce to retrieve. /// /// - public async Task GetBounceAsync(int bounceId) + public async Task GetBounceAsync(long bounceId) { return await ProcessNoBodyRequestAsync("/bounces/" + bounceId); } @@ -129,7 +129,7 @@ public async Task GetBounceAsync(int bounceId) /// The bounce ID of the bounce dump to retrieve. /// /// - public async Task GetBounceDumpAsync(int bounceId) + public async Task GetBounceDumpAsync(long bounceId) { return await ProcessNoBodyRequestAsync("/bounces/" + bounceId + "/dump"); } @@ -140,7 +140,7 @@ public async Task GetBounceDumpAsync(int bounceId) /// The bounce ID of the bounce to Activate /// /// - public async Task ActivateBounceAsync(int bounceId) + public async Task ActivateBounceAsync(long bounceId) { return await ProcessNoBodyRequestAsync("/bounces/" + bounceId + "/activate", verb: HttpMethod.Put); }