From a8ead86f98ff5642fbe4dcef4380e622b585f3b1 Mon Sep 17 00:00:00 2001 From: Vlad Sandu Date: Wed, 7 Apr 2021 17:30:31 +0300 Subject: [PATCH] Remove obsolete endpoint from legacy client --- src/Postmark/IPostmarkClient.Net20.Async.cs | 14 ------------- src/Postmark/IPostmarkClient.Net20.cs | 7 ------- src/Postmark/PostmarkClient.Net20.Async.cs | 23 --------------------- src/Postmark/PostmarkClient.Net20.cs | 15 -------------- 4 files changed, 59 deletions(-) diff --git a/src/Postmark/IPostmarkClient.Net20.Async.cs b/src/Postmark/IPostmarkClient.Net20.Async.cs index ed55fb3..758b96a 100644 --- a/src/Postmark/IPostmarkClient.Net20.Async.cs +++ b/src/Postmark/IPostmarkClient.Net20.Async.cs @@ -259,20 +259,6 @@ public partial interface IPostmarkClient /// PostmarkBounce EndGetBounce(IAsyncResult asyncResult); - /// - /// Returns a list of tags used for the current server. - /// - /// - /// - IAsyncResult BeginGetBounceTags(); - - /// - /// Completes an asynchronous request for a list of tags used for the current server. - /// - /// An for the desired response - /// - IEnumerable EndGetBounceTags(IAsyncResult asyncResult); - /// /// Returns the raw source of the bounce we accepted. /// If Postmark does not have a dump for that bounce, it will return an empty string. diff --git a/src/Postmark/IPostmarkClient.Net20.cs b/src/Postmark/IPostmarkClient.Net20.cs index c74e21b..2e6bdb6 100644 --- a/src/Postmark/IPostmarkClient.Net20.cs +++ b/src/Postmark/IPostmarkClient.Net20.cs @@ -250,13 +250,6 @@ public partial interface IPostmarkClient /// PostmarkBounce GetBounce(string bounceId); - /// - /// Returns a list of tags used for the current server. - /// - /// - /// - IEnumerable GetBounceTags(); - /// /// Returns the raw source of the bounce we accepted. /// If Postmark does not have a dump for that bounce, it will return an empty string. diff --git a/src/Postmark/PostmarkClient.Net20.Async.cs b/src/Postmark/PostmarkClient.Net20.Async.cs index 3e0cb09..5547955 100644 --- a/src/Postmark/PostmarkClient.Net20.Async.cs +++ b/src/Postmark/PostmarkClient.Net20.Async.cs @@ -415,29 +415,6 @@ public PostmarkBounce EndGetBounce(IAsyncResult asyncResult) return EndBounceRequest(asyncResult); } - /// - /// Returns a list of tags used for the current server. - /// - /// - /// - public IAsyncResult BeginGetBounceTags() - { - var request = NewBouncesRequest(); - request.Path = "bounces/tags"; - - return _client.BeginRequest(request); - } - - /// - /// Completes an asynchronous request for a list of tags used for the current server. - /// - /// An for the desired response - /// - public IEnumerable EndGetBounceTags(IAsyncResult asyncResult) - { - return EndBounceRequest>(asyncResult); - } - /// /// Returns the raw source of the bounce we accepted. /// If Postmark does not have a dump for that bounce, it will return an empty string. diff --git a/src/Postmark/PostmarkClient.Net20.cs b/src/Postmark/PostmarkClient.Net20.cs index 6518042..78f2f74 100644 --- a/src/Postmark/PostmarkClient.Net20.cs +++ b/src/Postmark/PostmarkClient.Net20.cs @@ -443,21 +443,6 @@ public PostmarkBounce GetBounce(string bounceId) return JsonConvert.DeserializeObject(response.Content, _settings); } - /// - /// Returns a list of tags used for the current server. - /// - /// - /// - public IEnumerable GetBounceTags() - { - var request = NewBouncesRequest(); - request.Path = "bounces/tags"; - - var response = _client.Request(request); - - return JsonConvert.DeserializeObject>(response.Content, _settings); - } - /// /// Returns the raw source of the bounce we accepted. /// If Postmark does not have a dump for that bounce, it will return an empty string.