tempus/app/src/main/java/com/cappielloantonio/play/model/Queue.kt

26 lines
712 B
Kotlin
Raw Normal View History

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