Skip to content

Commit

Permalink
Remove obsolete endpoint from legacy client
Browse files Browse the repository at this point in the history
  • Loading branch information
vladsandu committed Apr 7, 2021
1 parent 9602959 commit a8ead86
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 59 deletions.
14 changes: 0 additions & 14 deletions src/Postmark/IPostmarkClient.Net20.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,20 +259,6 @@ public partial interface IPostmarkClient
/// <returns></returns>
PostmarkBounce EndGetBounce(IAsyncResult asyncResult);

/// <summary>
/// Returns a list of tags used for the current server.
/// </summary>
/// <returns></returns>
/// <seealso href = "http://developer.postmarkapp.com/bounces" />
IAsyncResult BeginGetBounceTags();

/// <summary>
/// Completes an asynchronous request for a list of tags used for the current server.
/// </summary>
/// <param name="asyncResult">An <see cref="IAsyncResult" /> for the desired response</param>
/// <returns></returns>
IEnumerable<string> EndGetBounceTags(IAsyncResult asyncResult);

/// <summary>
/// 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.
Expand Down
7 changes: 0 additions & 7 deletions src/Postmark/IPostmarkClient.Net20.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,6 @@ public partial interface IPostmarkClient
/// <seealso href = "http://developer.postmarkapp.com/bounces" />
PostmarkBounce GetBounce(string bounceId);

/// <summary>
/// Returns a list of tags used for the current server.
/// </summary>
/// <returns></returns>
/// <seealso href = "http://developer.postmarkapp.com/bounces" />
IEnumerable<string> GetBounceTags();

/// <summary>
/// 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.
Expand Down
23 changes: 0 additions & 23 deletions src/Postmark/PostmarkClient.Net20.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,29 +415,6 @@ public PostmarkBounce EndGetBounce(IAsyncResult asyncResult)
return EndBounceRequest<PostmarkBounce>(asyncResult);
}

/// <summary>
/// Returns a list of tags used for the current server.
/// </summary>
/// <returns></returns>
/// <seealso href = "http://developer.postmarkapp.com/bounces" />
public IAsyncResult BeginGetBounceTags()
{
var request = NewBouncesRequest();
request.Path = "bounces/tags";

return _client.BeginRequest(request);
}

/// <summary>
/// Completes an asynchronous request for a list of tags used for the current server.
/// </summary>
/// <param name="asyncResult">An <see cref="IAsyncResult" /> for the desired response</param>
/// <returns></returns>
public IEnumerable<string> EndGetBounceTags(IAsyncResult asyncResult)
{
return EndBounceRequest<IEnumerable<string>>(asyncResult);
}

/// <summary>
/// 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.
Expand Down
15 changes: 0 additions & 15 deletions src/Postmark/PostmarkClient.Net20.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,21 +443,6 @@ public PostmarkBounce GetBounce(string bounceId)
return JsonConvert.DeserializeObject<PostmarkBounce>(response.Content, _settings);
}

/// <summary>
/// Returns a list of tags used for the current server.
/// </summary>
/// <returns></returns>
/// <seealso href = "http://developer.postmarkapp.com/bounces" />
public IEnumerable<string> GetBounceTags()
{
var request = NewBouncesRequest();
request.Path = "bounces/tags";

var response = _client.Request(request);

return JsonConvert.DeserializeObject<IEnumerable<string>>(response.Content, _settings);
}

/// <summary>
/// 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.
Expand Down

0 comments on commit a8ead86

Please sign in to comment.