24 lines
837 B
Go
24 lines
837 B
Go
package subsonic
|
|
|
|
type Playlists struct {
|
|
Playlist []Playlist `xml:"playlist,omitempty" json:"playlist,omitempty"`
|
|
}
|
|
|
|
type Playlist struct {
|
|
ID string `xml:"id,attr" json:"id"`
|
|
Name string `xml:"name,attr" json:"name"`
|
|
Comment string `xml:"comment,attr,omitempty" json:"comment,omitempty"`
|
|
Owner string `xml:"owner,attr,omitempty" json:"owner,omitempty"`
|
|
Public bool `xml:"public,attr" json:"public"`
|
|
SongCount int `xml:"songCount,attr" json:"songCount"`
|
|
Duration int `xml:"duration,attr" json:"duration"`
|
|
Created string `xml:"created,attr" json:"created"`
|
|
Changed string `xml:"changed,attr" json:"changed"`
|
|
CoverArt string `xml:"coverArt,attr,omitempty" json:"coverArt,omitempty"`
|
|
}
|
|
|
|
type PlaylistWithSongs struct {
|
|
Playlist
|
|
Entry []Child `xml:"entry,omitempty" json:"entry,omitempty"`
|
|
}
|