Table of Contents

Interface ICoverageService

Namespace
CivitaiSharp.Sdk.Services
Assembly
CivitaiSharp.Sdk.dll

Service for checking model availability on the generation infrastructure.

public interface ICoverageService

Methods

GetAsync(AirIdentifier, CancellationToken)

Checks the availability of a single AIR identifier.

Task<Result<ProviderAssetAvailability>> GetAsync(AirIdentifier air, CancellationToken cancellationToken = default)

Parameters

air AirIdentifier

The AIR identifier to check.

cancellationToken CancellationToken

Token to cancel the asynchronous operation.

Returns

Task<Result<ProviderAssetAvailability>>

Availability information for the AIR identifier.

GetAsync(IEnumerable<AirIdentifier>, CancellationToken)

Checks the availability of one or more AIR identifiers.

Task<Result<IReadOnlyDictionary<AirIdentifier, ProviderAssetAvailability>>> GetAsync(IEnumerable<AirIdentifier> airIdentifiers, CancellationToken cancellationToken = default)

Parameters

airIdentifiers IEnumerable<AirIdentifier>

The AIR identifiers to check.

cancellationToken CancellationToken

Token to cancel the asynchronous operation.

Returns

Task<Result<IReadOnlyDictionary<AirIdentifier, ProviderAssetAvailability>>>

Dictionary mapping AIR identifiers to their availability information.