Skip to content

Commit

Permalink
update to support new DragonFruit.Data library
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Dec 16, 2021
1 parent 5f298de commit 5000a39
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions DragonFruit.OnionFruit.Status.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
using System.Linq;
using System.Threading.Tasks;
using Bia.Countries.Iso3166;
using DragonFruit.Common.Data;
using DragonFruit.Common.Data.Services;
using DragonFruit.Data;
using DragonFruit.Data.Serializers.Newtonsoft;

namespace DragonFruit.OnionFruit.Status.Generator
{
internal static class Program
{
private static readonly ApiClient Client = new();
private static readonly ApiClient Client = new ApiClient<ApiJsonSerializer>();

private static async Task Main(string[] args)
{
Expand Down
5 changes: 3 additions & 2 deletions DragonFruit.OnionFruit.Status.Tests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

using System;
using System.Linq;
using DragonFruit.Common.Data;
using DragonFruit.Data;
using DragonFruit.Data.Serializers.Newtonsoft;
using DragonFruit.OnionFruit.Status.Helpers;

namespace DragonFruit.OnionFruit.Status.Tests
Expand All @@ -12,7 +13,7 @@ internal class Program
{
private static void Main(string[] args)
{
var client = new ApiClient
var client = new ApiClient<ApiJsonSerializer>
{
UserAgent = "OnionFruit"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

<ItemGroup>
<PackageReference Include="Bia.Countries" Version="3.0.0" />
<PackageReference Include="DragonFruit.Common.Data" Version="2021.1215.59-beta" />
<PackageReference Include="DragonFruit.Data" Version="2021.1216.4-beta" />
<PackageReference Include="DragonFruit.Data.Serializers.Newtonsoft" Version="2021.1216.4-beta" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Threading;
using System.Threading.Tasks;
using DragonFruit.Common.Data;
using DragonFruit.Data;

namespace DragonFruit.OnionFruit.Status
{
Expand Down
4 changes: 2 additions & 2 deletions DragonFruit.OnionFruit.Status/TorRelayInformationRequest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// OnionFruit.Status Copyright 2021 DragonFruit Network <[email protected]>
// Licensed under MIT. Please refer to the LICENSE file for more info

using DragonFruit.Common.Data;
using DragonFruit.Common.Data.Parameters;
using DragonFruit.Data;
using DragonFruit.Data.Parameters;

namespace DragonFruit.OnionFruit.Status
{
Expand Down

0 comments on commit 5000a39

Please sign in to comment.