TemporaryGenerationResultRepository

Used to store last AiGenerationResult in RAM, for the case when user did not save it to DB yet, but it is needed to be loaded in GalleryDetail when accessing from result dialog.

Functions

Link copied to clipboard
abstract suspend fun get(): AiGenerationResult

Returns an instance of AiGenerationResult.

Link copied to clipboard
abstract suspend fun put(result: AiGenerationResult)

Saves the instance of last AiGenerationResult to RAM.