From 4d349a9a547abcf08fb0e9fd92da8cd374fd8c00 Mon Sep 17 00:00:00 2001 From: Albie Date: Fri, 10 Sep 2021 18:01:58 +0100 Subject: [PATCH] update api version and force ApiJsonSerializer --- DragonFruit.Link/DragonFruit.Link.csproj | 2 +- DragonFruit.Link/SteamApiClient.cs | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/DragonFruit.Link/DragonFruit.Link.csproj b/DragonFruit.Link/DragonFruit.Link.csproj index 5f30242..63df140 100644 --- a/DragonFruit.Link/DragonFruit.Link.csproj +++ b/DragonFruit.Link/DragonFruit.Link.csproj @@ -19,7 +19,7 @@ - + diff --git a/DragonFruit.Link/SteamApiClient.cs b/DragonFruit.Link/SteamApiClient.cs index 1305841..39d87e3 100644 --- a/DragonFruit.Link/SteamApiClient.cs +++ b/DragonFruit.Link/SteamApiClient.cs @@ -1,26 +1,20 @@ // DragonFruit Link API Copyright 2020 (C) DragonFruit Network // Licensed under the GNU GPLv3 License. Refer to the license.md file at the root of the repo for more info -using System.Globalization; using DragonFruit.Common.Data; +using DragonFruit.Common.Data.Serializers; using DragonFruit.Link.Exceptions; namespace DragonFruit.Link { - public class SteamApiClient : ApiClient + public class SteamApiClient : ApiClient { private readonly string _apiKey; private readonly bool _apiKeySet; #region Constructors - public SteamApiClient() - : base(CultureInfo.InvariantCulture) // creates a new ApiJsonSerializer - { - } - public SteamApiClient(string apiKey) - : this() { _apiKey = apiKey; _apiKeySet = true;