/*
 * Book's Story — free and open-source Material You eBook reader.
 * Copyright (C) 2024-2026 Acclorite
 * SPDX-License-Identifier: GPL-3.0-only
 */

package org.dueattendant149.bookshelf.domain.model.cache

data class CacheStatus(
    val remoteId: String,
    val state: CacheState,
    val progress: Float,
    val cachedFiles: List<CachedFile>,
)

enum class CacheState {
    NONE,
    PENDING,
    DOWNLOADING,
    COMPLETED,
    FAILED,
}

data class CachedFile(
    val type: String,
    val status: String,
    val progress: Float,
    val localPath: String?,
)
