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
airAirIdentifierThe AIR identifier to check.
cancellationTokenCancellationTokenToken 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
airIdentifiersIEnumerable<AirIdentifier>The AIR identifiers to check.
cancellationTokenCancellationTokenToken to cancel the asynchronous operation.
Returns
- Task<Result<IReadOnlyDictionary<AirIdentifier, ProviderAssetAvailability>>>
Dictionary mapping AIR identifiers to their availability information.