Fix client trying to read the wrong type of object for Version()

This commit is contained in:
Cyberboss
2018-08-20 12:13:40 -04:00
parent 048dc486d7
commit 855a17a54b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -36,9 +36,9 @@ namespace Tgstation.Server.Client
IUsersClient Users { get; }
/// <summary>
/// The <see cref="System.Version"/> of the <see cref="IServerClient"/>
/// The <see cref="ServerInformation"/> of the <see cref="IServerClient"/>
/// </summary>
Task<Version> Version(CancellationToken cancellationToken);
Task<ServerInformation> Version(CancellationToken cancellationToken);
/// <summary>
/// Adds a <paramref name="requestLogger"/> to the request pipeline
+1 -1
View File
@@ -55,7 +55,7 @@ namespace Tgstation.Server.Client
public void Dispose() => apiClient.Dispose();
/// <inheritdoc />
public Task<Version> Version(CancellationToken cancellationToken) => apiClient.Read<Version>(Routes.Root, cancellationToken);
public Task<ServerInformation> Version(CancellationToken cancellationToken) => apiClient.Read<ServerInformation>(Routes.Root, cancellationToken);
/// <inheritdoc />
public void AddRequestLogger(IRequestLogger requestLogger) => apiClient.AddRequestLogger(requestLogger);