2023-03-02 10:48:30 +01:00
|
|
|
package com.cappielloantonio.play.model
|
|
|
|
|
|
|
|
|
|
import androidx.annotation.Keep
|
|
|
|
|
import androidx.room.ColumnInfo
|
|
|
|
|
import androidx.room.Entity
|
|
|
|
|
import androidx.room.PrimaryKey
|
2023-03-06 21:59:10 +01:00
|
|
|
import com.cappielloantonio.play.subsonic.models.Child
|
2023-03-02 10:48:30 +01:00
|
|
|
import kotlinx.android.parcel.Parcelize
|
|
|
|
|
|
|
|
|
|
@Keep
|
|
|
|
|
@Parcelize
|
|
|
|
|
@Entity(tableName = "download")
|
2023-03-06 21:59:10 +01:00
|
|
|
class Download(@PrimaryKey override val id: String) : Child(id) {
|
|
|
|
|
@ColumnInfo(name = "media_id")
|
|
|
|
|
var mediaID: String? = null
|
2023-03-02 10:48:30 +01:00
|
|
|
|
2023-03-06 21:59:10 +01:00
|
|
|
@ColumnInfo
|
|
|
|
|
var server: String? = null
|
2023-03-02 10:48:30 +01:00
|
|
|
|
2023-03-06 21:59:10 +01:00
|
|
|
@ColumnInfo(name = "playlist_id")
|
|
|
|
|
var playlistId: String? = null
|
2023-03-02 10:48:30 +01:00
|
|
|
}
|