diff --git a/Source/StrongGrid.IntegrationTests/Tests/SenderAuthentication.cs b/Source/StrongGrid.IntegrationTests/Tests/SenderAuthentication.cs index 18bff9a8..58bb5364 100644 --- a/Source/StrongGrid.IntegrationTests/Tests/SenderAuthentication.cs +++ b/Source/StrongGrid.IntegrationTests/Tests/SenderAuthentication.cs @@ -50,9 +50,9 @@ public async Task RunAsync(IBaseClient client, TextWriter log, CancellationToken await log.WriteLineAsync("\n***** SENDER AUTHENTICATION: LINKS *****").ConfigureAwait(false); var links = await client.SenderAuthentication.GetAllLinksAsync(null, 50, 0, null, cancellationToken).ConfigureAwait(false); - await log.WriteLineAsync($"All AuthenticatedSender links retrieved. There are {links.Length} links").ConfigureAwait(false); + await log.WriteLineAsync($"All AuthenticatedSender links retrieved. There are {links.Records.Length} links").ConfigureAwait(false); - cleanUpTasks = links.Where(d => d.Domain == fictitiousDomain) + cleanUpTasks = links.Records.Where(d => d.Domain == fictitiousDomain) .Select(async oldDomain => { await client.SenderAuthentication.DeleteDomainAsync(oldDomain.Id, null, cancellationToken).ConfigureAwait(false); diff --git a/Source/StrongGrid/Resources/ISenderAuthentication.cs b/Source/StrongGrid/Resources/ISenderAuthentication.cs index b270a811..bf33b108 100644 --- a/Source/StrongGrid/Resources/ISenderAuthentication.cs +++ b/Source/StrongGrid/Resources/ISenderAuthentication.cs @@ -228,14 +228,14 @@ public interface ISenderAuthentication /// The user to impersonate. /// Cancellation token. /// - /// An array of . + /// The . /// /// /// A link whitelabel consists of a subdomain and domain that will be used to rewrite links in mail /// messages. Our customer will be asked to create a couple CNAME records for the links to be /// rewritten to and for us to verify that they are the domain owners. /// - Task GetAllLinksAsync(string segmentPrefix = null, int limit = 50, int offset = 0, string onBehalfOf = null, CancellationToken cancellationToken = default); + Task> GetAllLinksAsync(string segmentPrefix = null, int limit = 50, int offset = 0, string onBehalfOf = null, CancellationToken cancellationToken = default); /// /// Get a specific branded link. diff --git a/Source/StrongGrid/Resources/SenderAuthentication.cs b/Source/StrongGrid/Resources/SenderAuthentication.cs index 7af66c09..4e5c6a7a 100644 --- a/Source/StrongGrid/Resources/SenderAuthentication.cs +++ b/Source/StrongGrid/Resources/SenderAuthentication.cs @@ -405,14 +405,14 @@ public Task ValidateReverseDnsAsync(long ipId, string onBe /// The user to impersonate. /// Cancellation token. /// - /// An array of . + /// The . /// /// /// A link whitelabel consists of a subdomain and domain that will be used to rewrite links in mail /// messages. Our customer will be asked to create a couple CNAME records for the links to be /// rewritten to and for us to verify that they are the domain owners. /// - public Task GetAllLinksAsync(string segmentPrefix = null, int limit = 50, int offset = 0, string onBehalfOf = null, CancellationToken cancellationToken = default) + public Task> GetAllLinksAsync(string segmentPrefix = null, int limit = 50, int offset = 0, string onBehalfOf = null, CancellationToken cancellationToken = default) { return _client .GetAsync($"{_endpoint}/links") @@ -421,7 +421,7 @@ public Task GetAllLinksAsync(string segmentPrefix = null, int lim .WithArgument("offset", offset) .WithArgument("ip", segmentPrefix) .WithCancellationToken(cancellationToken) - .AsObject(); + .AsPaginatedResponseWithLinks(); } ///