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 = "queue")
|
2023-03-06 21:59:10 +01:00
|
|
|
class Queue(override val id: String) : Child(id) {
|
|
|
|
|
@PrimaryKey(autoGenerate = true)
|
2023-03-02 10:48:30 +01:00
|
|
|
@ColumnInfo(name = "track_order")
|
2023-03-06 21:59:10 +01:00
|
|
|
var trackOrder: Int = 0
|
2023-03-02 10:48:30 +01:00
|
|
|
|
|
|
|
|
@ColumnInfo(name = "last_play", defaultValue = "0")
|
2023-03-06 21:59:10 +01:00
|
|
|
var lastPlay: Long = 0
|
2023-03-02 10:48:30 +01:00
|
|
|
|
|
|
|
|
@ColumnInfo(name = "playing_changed", defaultValue = "0")
|
2023-03-06 21:59:10 +01:00
|
|
|
var playingChanged: Long = 0
|
2023-03-02 10:48:30 +01:00
|
|
|
|
|
|
|
|
@ColumnInfo(name = "stream_id")
|
2023-03-06 21:59:10 +01:00
|
|
|
var streamId: String? = null
|
|
|
|
|
}
|