Table of Contents

Interface IUsageService

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

Service for monitoring account usage and consumption.

public interface IUsageService

Methods

GetConsumptionAsync(DateTime?, DateTime?, CancellationToken)

Gets account consumption statistics for the specified period.

Task<Result<ConsumptionDetails>> GetConsumptionAsync(DateTime? startDate = null, DateTime? endDate = null, CancellationToken cancellationToken = default)

Parameters

startDate DateTime?

Start date for the reporting period (UTC). Serialized as ISO 8601.

endDate DateTime?

End date for the reporting period (UTC). Serialized as ISO 8601.

cancellationToken CancellationToken

Token to cancel the asynchronous operation.

Returns

Task<Result<ConsumptionDetails>>

Consumption details.