Phase 2: Subsonic REST API framework (auth, response formatting, error handling, routing) plus user permission model
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user