package com.all.pdfreader.pro.app.model

/**
 * 文件删除结果封装类
 */
data class DeleteResult(
    val success: Boolean,
    val errorMessage: String? = null,
    val deletedFiles: Int = 0,
    val deletedSize: Long = 0
) {
    companion object {
        fun success(deletedFiles: Int = 1, deletedSize: Long = 0) =
            DeleteResult(true, null, deletedFiles, deletedSize)
        fun failure(message: String) = DeleteResult(false, message, 0, 0)
    }
}