Skip to content

Commit

Permalink
update api version and force ApiJsonSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Sep 10, 2021
1 parent beda1ce commit 4d349a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DragonFruit.Link/DragonFruit.Link.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DragonFruit.Common.Data" Version="2021.908.44" />
<PackageReference Include="DragonFruit.Common.Data" Version="2021.910.47" />
</ItemGroup>

</Project>
10 changes: 2 additions & 8 deletions DragonFruit.Link/SteamApiClient.cs
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
// DragonFruit Link API Copyright 2020 (C) DragonFruit Network <inbox@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<ApiJsonSerializer>
{
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;
Expand Down

0 comments on commit 4d349a9

Please sign in to comment.