Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit e2ac81f

Browse files
author
Not Officer
committed
refactoring
1 parent f993180 commit e2ac81f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Fortnite-API/Extensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,5 @@ public static RestRequest ApplySearchParameters(this RestRequest request, Action
245245

246246
return request;
247247
}
248-
249248
}
250249
}

src/Fortnite-API/FortniteApi.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using Fortnite_API.Endpoints;
1+
using System.Reflection;
2+
3+
using Fortnite_API.Endpoints;
24

35
using RestSharp;
46

@@ -13,9 +15,10 @@ public class FortniteApi
1315

1416
public FortniteApi(string apiKey = null)
1517
{
18+
var currentVersion = Assembly.GetExecutingAssembly().GetName().Version;
1619
var _client = new RestClient("https://fortnite-api.com/")
1720
{
18-
UserAgent = "FortniteApi.Net (v1.0.0)",
21+
UserAgent = $"Fortnite-API.NET/{currentVersion.ToString(3)}",
1922
Timeout = 10 * 1000
2023
}.UseSerializer<JsonNetSerializer>();
2124

0 commit comments

Comments
 (0)