Class JobStatusCollection
- Namespace
- CivitaiSharp.Sdk.Models.Results
- Assembly
- CivitaiSharp.Sdk.dll
Collection of job statuses returned from job submission or status queries.
public sealed record JobStatusCollection : IEquatable<JobStatusCollection>
- Inheritance
-
JobStatusCollection
- Implements
- Inherited Members
Constructors
JobStatusCollection(string?, IReadOnlyList<JobStatus>?)
Collection of job statuses returned from job submission or status queries.
public JobStatusCollection(string? Token = null, IReadOnlyList<JobStatus>? Jobs = null)
Parameters
TokenstringThe batch token for polling or bulk operations. Maps to JSON property "token". This is a Base64-encoded identifier that can be used with GetByTokenAsync, CancelAsync, or TaintAsync.
JobsIReadOnlyList<JobStatus>The list of job statuses. Maps to JSON property "jobs".
Properties
Jobs
The list of job statuses. Maps to JSON property "jobs".
[JsonPropertyName("jobs")]
public IReadOnlyList<JobStatus>? Jobs { get; init; }
Property Value
JobsList
Gets the list of job statuses, or an empty list if none.
[JsonIgnore]
public IReadOnlyList<JobStatus> JobsList { get; }
Property Value
Token
The batch token for polling or bulk operations. Maps to JSON property "token". This is a Base64-encoded identifier that can be used with GetByTokenAsync, CancelAsync, or TaintAsync.
[JsonPropertyName("token")]
public string? Token { get; init; }