Add getShares and createShare Subsonic endpoints
This commit is contained in:
@@ -45,6 +45,7 @@ type Subsonic struct {
|
||||
TopSongs *TopSongs `xml:"topSongs,omitempty" json:"topSongs,omitempty"`
|
||||
|
||||
PlayQueue *PlayQueue `xml:"playQueue,omitempty" json:"playQueue,omitempty"`
|
||||
Shares *Shares `xml:"shares,omitempty" json:"shares,omitempty"`
|
||||
Bookmarks *Bookmarks `xml:"bookmarks,omitempty" json:"bookmarks,omitempty"`
|
||||
ScanStatus *ScanStatus `xml:"scanStatus,omitempty" json:"scanStatus,omitempty"`
|
||||
Lyrics *Lyrics `xml:"lyrics,omitempty" json:"lyrics,omitempty"`
|
||||
@@ -359,6 +360,22 @@ type Bookmarks struct {
|
||||
Bookmark []Bookmark `xml:"bookmark,omitempty" json:"bookmark,omitempty"`
|
||||
}
|
||||
|
||||
type Share struct {
|
||||
Entry []Child `xml:"entry,omitempty" json:"entry,omitempty"`
|
||||
ID string `xml:"id,attr" json:"id"`
|
||||
Url string `xml:"url,attr" json:"url"`
|
||||
Description string `xml:"description,omitempty,attr" json:"description,omitempty"`
|
||||
Username string `xml:"username,attr" json:"username"`
|
||||
Created time.Time `xml:"created,attr" json:"created"`
|
||||
Expires *time.Time `xml:"expires,omitempty,attr" json:"expires,omitempty"`
|
||||
LastVisited time.Time `xml:"lastVisited,attr" json:"lastVisited"`
|
||||
VisitCount int `xml:"visitCount,attr" json:"visitCount"`
|
||||
}
|
||||
|
||||
type Shares struct {
|
||||
Share []Share `xml:"share,omitempty" json:"share,omitempty"`
|
||||
}
|
||||
|
||||
type ScanStatus struct {
|
||||
Scanning bool `xml:"scanning,attr" json:"scanning"`
|
||||
Count int64 `xml:"count,attr" json:"count"`
|
||||
|
||||
Reference in New Issue
Block a user