package com.gh.download.simple

import android.os.Parcelable
import androidx.annotation.Keep
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.lg.download.DownloadStatus
import kotlinx.parcelize.Parcelize

@Keep
@Entity(tableName = "SimpleDownloadEntity")
@Parcelize
data class SimpleDownloadEntity(
    @PrimaryKey(autoGenerate = false)
    var id: String,
    var desc: String = "",
    var url: String = "",
    var dirPath: String = "",
    var fileName: String = "",
    var displayName: String = "",
    var packageName: String = "",
    var downloadedBytes: Long = 0,
    var totalBytes: Long = 0,
    var progress: Float = 0F,
    var status: DownloadStatus = DownloadStatus.UNKNOWN,
    var speed: Float = 0F,
    var version: String = "",
    var icon: String = "",
) : Parcelable