From b367a115cea4a4f9060ce3748e516f140ddb7a0e Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Sat, 11 Jan 2020 19:21:38 -0500 Subject: [PATCH] Change DreamMaker and Job listing clients to use EntityId --- .../Components/DreamMakerClient.cs | 2 +- .../Components/IDreamMakerClient.cs | 6 +++--- src/Tgstation.Server.Client/Components/IJobsClient.cs | 9 ++++----- src/Tgstation.Server.Client/Components/JobsClient.cs | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/Tgstation.Server.Client/Components/DreamMakerClient.cs b/src/Tgstation.Server.Client/Components/DreamMakerClient.cs index d08c587194..496872d60f 100644 --- a/src/Tgstation.Server.Client/Components/DreamMakerClient.cs +++ b/src/Tgstation.Server.Client/Components/DreamMakerClient.cs @@ -38,7 +38,7 @@ namespace Tgstation.Server.Client.Components public Task GetCompileJob(CompileJob compileJob, CancellationToken cancellationToken) => apiClient.Read(Routes.SetID(Routes.DreamMaker, compileJob?.Id ?? throw new ArgumentNullException(nameof(compileJob))), instance.Id, cancellationToken); /// - public Task> GetJobIds(CancellationToken cancellationToken) => apiClient.Read>(Routes.ListRoute(Routes.DreamMaker), instance.Id, cancellationToken); + public Task> GetJobIds(CancellationToken cancellationToken) => apiClient.Read>(Routes.ListRoute(Routes.DreamMaker), instance.Id, cancellationToken); /// public Task Read(CancellationToken cancellationToken) => apiClient.Read(Routes.DreamMaker, instance.Id, cancellationToken); diff --git a/src/Tgstation.Server.Client/Components/IDreamMakerClient.cs b/src/Tgstation.Server.Client/Components/IDreamMakerClient.cs index 011475d5a5..87a3d0fb54 100644 --- a/src/Tgstation.Server.Client/Components/IDreamMakerClient.cs +++ b/src/Tgstation.Server.Client/Components/IDreamMakerClient.cs @@ -33,11 +33,11 @@ namespace Tgstation.Server.Client.Components Task Compile(CancellationToken cancellationToken); /// - /// Gets the s of all s for the instance + /// Gets the s of all s for the instance /// /// The for the operation - /// A resulting in a of s with only the field populated - Task> GetJobIds(CancellationToken cancellationToken); + /// A resulting in a of s. + Task> GetJobIds(CancellationToken cancellationToken); /// /// Get a diff --git a/src/Tgstation.Server.Client/Components/IJobsClient.cs b/src/Tgstation.Server.Client/Components/IJobsClient.cs index 8ce64a95e0..f53b0dd612 100644 --- a/src/Tgstation.Server.Client/Components/IJobsClient.cs +++ b/src/Tgstation.Server.Client/Components/IJobsClient.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Tgstation.Server.Api.Models; @@ -12,11 +11,11 @@ namespace Tgstation.Server.Client.Components public interface IJobsClient { /// - /// List the s in the + /// List the s in the /// /// The for the operation - /// A resulting in a of the s in the - Task> List(CancellationToken cancellationToken); + /// A resulting in a of the s in the + Task> List(CancellationToken cancellationToken); /// /// List the active s in the diff --git a/src/Tgstation.Server.Client/Components/JobsClient.cs b/src/Tgstation.Server.Client/Components/JobsClient.cs index d673abfc41..00c043ae0e 100644 --- a/src/Tgstation.Server.Client/Components/JobsClient.cs +++ b/src/Tgstation.Server.Client/Components/JobsClient.cs @@ -35,7 +35,7 @@ namespace Tgstation.Server.Client.Components public Task Cancel(Job job, CancellationToken cancellationToken) => apiClient.Delete(Routes.SetID(Routes.Jobs, job?.Id ?? throw new ArgumentNullException(nameof(job))), instance.Id, cancellationToken); /// - public Task> List(CancellationToken cancellationToken) => apiClient.Read>(Routes.ListRoute(Routes.Jobs), instance.Id, cancellationToken); + public Task> List(CancellationToken cancellationToken) => apiClient.Read>(Routes.ListRoute(Routes.Jobs), instance.Id, cancellationToken); /// public Task> ListActive(CancellationToken cancellationToken) => apiClient.Read>(Routes.Jobs, instance.Id, cancellationToken);