[feat&optimize] Group Batch Download, Optimize download logic

This commit is contained in:
acite
2025-09-27 00:37:57 +08:00
parent a89f892306
commit 5b770a965d
7 changed files with 304 additions and 146 deletions

View File

@@ -0,0 +1,31 @@
package com.acitelight.aether.model
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.tonyodev.fetch2.Status
class VideoDownloadItemState(
val id: Int,
fileName: String,
filePath: String,
url: String,
progress: Int,
status: Status,
downloadedBytes: Long,
totalBytes: Long,
klass: String,
vid: String,
val type: String
) {
var fileName by mutableStateOf(fileName)
var filePath by mutableStateOf(filePath)
var url by mutableStateOf(url)
var progress by mutableStateOf(progress)
var status by mutableStateOf(status)
var downloadedBytes by mutableStateOf(downloadedBytes)
var totalBytes by mutableStateOf(totalBytes)
var klass by mutableStateOf(klass)
var vid by mutableStateOf(vid)
}