Skip to content

Commit bfc4a3c

Browse files
committed
Rename main class to ModrinthClient
1 parent c6036f9 commit bfc4a3c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Modrinth.RestClient.Test/EndpointTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ namespace Modrinth.RestClient.Test;
55
[SetUpFixture]
66
public class EndpointTests
77
{
8-
protected IModrinthApi _client = null!;
9-
protected IModrinthApi _noAuthClient = null!;
8+
protected IModrinthClient _client = null!;
9+
protected IModrinthClient _noAuthClient = null!;
1010

1111
[OneTimeSetUp]
1212
public void SetUp()
@@ -17,7 +17,7 @@ public void SetUp()
1717
throw new Exception("MODRINTH_TOKEN environment variable is not set.");
1818
}
1919
var userAgent = $"Zechiax/Modrinth.RestClient.Test/{Assembly.GetExecutingAssembly().GetName().Version}";
20-
_client = new ModrinthApi(url: ModrinthApi.StagingBaseUrl, userAgent: userAgent, token: token);
21-
_noAuthClient = new ModrinthApi(url: ModrinthApi.StagingBaseUrl, userAgent: userAgent);
20+
_client = new ModrinthClient(url: ModrinthClient.StagingBaseUrl, userAgent: userAgent, token: token);
21+
_noAuthClient = new ModrinthClient(url: ModrinthClient.StagingBaseUrl, userAgent: userAgent);
2222
}
2323
}

Modrinth.RestClient/IModrinthApi.cs renamed to Modrinth.RestClient/IModrinthClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Modrinth.RestClient;
99
/// <summary>
1010
/// Entry point for the API
1111
/// </summary>
12-
public interface IModrinthApi
12+
public interface IModrinthClient
1313
{
1414
/// <inheritdoc cref="IProjectApi" />
1515
IProjectApi Project { get; }

Modrinth.RestClient/Modrinth.RestClient.cs renamed to Modrinth.RestClient/ModrinthClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ namespace Modrinth.RestClient;
1010

1111

1212
/// <summary>
13-
/// Base for creating new clients using RestEase from <see cref="IModrinthApi"/> interface
13+
/// Base for creating new clients using RestEase from <see cref="IModrinthClient"/> interface
1414
/// </summary>
15-
public class ModrinthApi : IModrinthApi
15+
public class ModrinthClient : IModrinthClient
1616
{
1717
/// <summary>
1818
/// API Url of the production server
@@ -50,13 +50,13 @@ public class ModrinthApi : IModrinthApi
5050
#endregion
5151

5252
/// <summary>
53-
/// Initializes a new instance of the <see cref="ModrinthApi"/> class.
53+
/// Initializes a new instance of the <see cref="ModrinthClient"/> class.
5454
/// </summary>
5555
/// <param name="token">Authentication token for Authenticated requests</param>
5656
/// <param name="userAgent">User-Agent header you want to use while communicating with Modrinth API, it's recommended to set a uniquely-identifying one (<a href="https://docs.modrinth.com/api-spec/#section/User-Agents">see the docs</a>)</param>
5757
/// <param name="url">Custom API url, default is <see cref="BaseUrl"/></param>
5858
/// <returns></returns>
59-
public ModrinthApi(string? userAgent = null, string? token = null, string url = BaseUrl)
59+
public ModrinthClient(string? userAgent = null, string? token = null, string url = BaseUrl)
6060
{
6161
if (string.IsNullOrEmpty(userAgent))
6262
{

0 commit comments

Comments
 (0)