- Switched from subsonic-response in xml to response in json

- Retrofitting of all Subsonic models
This commit is contained in:
antonio 2023-03-08 19:19:09 +01:00
parent ca15f51c85
commit 521c51b17e
85 changed files with 682 additions and 898 deletions

View file

@ -11,16 +11,49 @@ import kotlinx.android.parcel.Parcelize
@Parcelize
@Entity(tableName = "queue")
class Queue(override val id: String) : Child(id) {
@PrimaryKey(autoGenerate = true)
@PrimaryKey
@ColumnInfo(name = "track_order")
var trackOrder: Int = 0
@ColumnInfo(name = "last_play", defaultValue = "0")
@ColumnInfo(name = "last_play")
var lastPlay: Long = 0
@ColumnInfo(name = "playing_changed", defaultValue = "0")
@ColumnInfo(name = "playing_changed")
var playingChanged: Long = 0
@ColumnInfo(name = "stream_id")
var streamId: String? = null
constructor(child: Child) : this(child.id) {
parentId = child.parentId
isDir = child.isDir
title = child.title
album = child.album
artist = child.artist
track = child.track
year = child.year
genre = child.genre
coverArtId = child.coverArtId
size = child.size
contentType = child.contentType
suffix = child.suffix
transcodedContentType = child.transcodedContentType
transcodedSuffix = child.transcodedSuffix
duration = child.duration
bitrate = child.bitrate
path = child.path
isVideo = child.isVideo
userRating = child.userRating
averageRating = child.averageRating
playCount = child.playCount
discNumber = child.discNumber
created = child.created
starred = child.starred
albumId = child.albumId
artistId = child.artistId
type = child.type
bookmarkPosition = child.bookmarkPosition
originalWidth = child.originalWidth
originalHeight = child.originalHeight
}
}