SaveLastResultToCacheUseCaseImpl

internal class SaveLastResultToCacheUseCaseImpl(val temporaryGenerationResultRepository: TemporaryGenerationResultRepository, val preferenceManager: PreferenceManager) : SaveLastResultToCacheUseCase(source)

Implements SaveLastResultToCacheUseCase behavior in the SDAI domain layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(temporaryGenerationResultRepository: TemporaryGenerationResultRepository, preferenceManager: PreferenceManager)

Properties

Link copied to clipboard

Exposes the preferenceManager value used by the SDAI domain layer.

Link copied to clipboard

Exposes the temporaryGenerationResultRepository value used by the SDAI domain layer.

Functions

Link copied to clipboard
open suspend operator override fun invoke(result: AiGenerationResult): AiGenerationResult

Executes the invoke step in the SDAI domain layer.