From a6c1209d0c264ee04f2a8e9be2479da20bc1e3ba Mon Sep 17 00:00:00 2001 From: Albie Date: Fri, 12 Aug 2022 18:44:46 +0100 Subject: [PATCH 1/2] update deps --- DragonFruit.Link.Tests/DragonFruit.Link.Tests.csproj | 10 +++++----- DragonFruit.Link/DragonFruit.Link.csproj | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/DragonFruit.Link.Tests/DragonFruit.Link.Tests.csproj b/DragonFruit.Link.Tests/DragonFruit.Link.Tests.csproj index 2d4bc3f..748ee1e 100644 --- a/DragonFruit.Link.Tests/DragonFruit.Link.Tests.csproj +++ b/DragonFruit.Link.Tests/DragonFruit.Link.Tests.csproj @@ -6,17 +6,17 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/DragonFruit.Link/DragonFruit.Link.csproj b/DragonFruit.Link/DragonFruit.Link.csproj index 5bc0f5b..51ef89b 100644 --- a/DragonFruit.Link/DragonFruit.Link.csproj +++ b/DragonFruit.Link/DragonFruit.Link.csproj @@ -19,8 +19,8 @@ - - + + From 07b2775b20a0d30f9247abce49574a887ca082bd Mon Sep 17 00:00:00 2001 From: Albie Date: Fri, 12 Aug 2022 18:44:53 +0100 Subject: [PATCH 2/2] use request callbacks --- DragonFruit.Link/SteamApiRequest.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DragonFruit.Link/SteamApiRequest.cs b/DragonFruit.Link/SteamApiRequest.cs index 0af8994..0e5a5d9 100644 --- a/DragonFruit.Link/SteamApiRequest.cs +++ b/DragonFruit.Link/SteamApiRequest.cs @@ -4,6 +4,7 @@ using System; using DragonFruit.Data; using DragonFruit.Data.Parameters; +using DragonFruit.Data.Requests; using DragonFruit.Link.Exceptions; using Newtonsoft.Json; @@ -12,7 +13,7 @@ namespace DragonFruit.Link { [JsonObject(MemberSerialization.OptIn)] - public abstract class SteamApiRequest : ApiRequest + public abstract class SteamApiRequest : ApiRequest, IRequestExecutingCallback { protected override Methods Method => Methods.Get; protected override bool RequireAuth => false; // this only checks headers, ours is in the query @@ -33,7 +34,7 @@ public abstract class SteamApiRequest : ApiRequest [QueryParameter("format")] protected string OutputFormat => "json"; - protected override void OnRequestExecuting(ApiClient client) + public void OnRequestExecuting(ApiClient client) { if (RequireApiKey && string.IsNullOrEmpty(ApiKey)) {