From 06eb31184ff9e03c3d27baa09cc66f8b5ea09b65 Mon Sep 17 00:00:00 2001 From: Jericho Date: Sat, 23 Jan 2021 14:58:04 -0500 Subject: [PATCH] (GH-367) WebHookSettings.GetAllAsync must return PaginatedResponseWithLinks --- Source/StrongGrid/Resources/IWebhookSettings.cs | 4 ++-- Source/StrongGrid/Resources/WebhookSettings.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/StrongGrid/Resources/IWebhookSettings.cs b/Source/StrongGrid/Resources/IWebhookSettings.cs index eba36027..42212758 100644 --- a/Source/StrongGrid/Resources/IWebhookSettings.cs +++ b/Source/StrongGrid/Resources/IWebhookSettings.cs @@ -94,9 +94,9 @@ Task UpdateEventWebhookSettingsAsync( /// The user to impersonate. /// The cancellation token. /// - /// The . + /// The . /// - Task GetAllInboundParseWebhookSettingsAsync(string onBehalfOf = null, CancellationToken cancellationToken = default); + Task> GetAllInboundParseWebhookSettingsAsync(string onBehalfOf = null, CancellationToken cancellationToken = default); /// /// Get the inbound parse webhook settings for a specific hostname. diff --git a/Source/StrongGrid/Resources/WebhookSettings.cs b/Source/StrongGrid/Resources/WebhookSettings.cs index 8bb75842..136a94d9 100644 --- a/Source/StrongGrid/Resources/WebhookSettings.cs +++ b/Source/StrongGrid/Resources/WebhookSettings.cs @@ -164,15 +164,15 @@ public Task CreateInboundParseWebhookSettingsAsync( /// The user to impersonate. /// The cancellation token. /// - /// The . + /// The . /// - public Task GetAllInboundParseWebhookSettingsAsync(string onBehalfOf = null, CancellationToken cancellationToken = default) + public Task> GetAllInboundParseWebhookSettingsAsync(string onBehalfOf = null, CancellationToken cancellationToken = default) { return _client .GetAsync($"{_inboundParseWebhookEndpoint}/settings") .OnBehalfOf(onBehalfOf) .WithCancellationToken(cancellationToken) - .AsObject("result"); + .AsPaginatedResponseWithLinks("result"); } ///