Files

30 lines
1.1 KiB
Go

package subsonic
type Lyrics struct {
Artist string `xml:"artist,attr,omitempty" json:"artist,omitempty"`
Title string `xml:"title,attr,omitempty" json:"title,omitempty"`
Value string `xml:",chardata" json:"value,omitempty"`
}
type Bookmarks struct {
Bookmark []Bookmark `xml:"bookmark,omitempty" json:"bookmark,omitempty"`
}
type Bookmark struct {
Position int64 `xml:"position,attr" json:"position"` // milliseconds
Username string `xml:"username,attr" json:"username"`
Comment string `xml:"comment,attr,omitempty" json:"comment,omitempty"`
Created string `xml:"created,attr" json:"created"`
Changed string `xml:"changed,attr" json:"changed"`
Entry Child `xml:"entry" json:"entry"`
}
type PlayQueue struct {
Current string `xml:"current,attr,omitempty" json:"current,omitempty"`
Position int64 `xml:"position,attr,omitempty" json:"position,omitempty"`
Username string `xml:"username,attr" json:"username"`
Changed string `xml:"changed,attr" json:"changed"`
ChangedBy string `xml:"changedBy,attr" json:"changedBy"`
Entry []Child `xml:"entry,omitempty" json:"entry,omitempty"`
}