return full bookmark object from getbookmarks

fixes #328
This commit is contained in:
sentriz
2023-09-13 01:45:40 +01:00
parent 2a7a455ce2
commit 3553348877
3 changed files with 29 additions and 22 deletions

View File

@@ -377,17 +377,12 @@ type Bookmarks struct {
}
type Bookmark struct {
Entry BookmarkEntry `xml:"entry,omitempty" json:"entry,omitempty"`
Username string `xml:"username,attr" json:"username"`
Position int `xml:"position,attr" json:"position"`
Comment string `xml:"comment,attr" json:"comment"`
Created time.Time `xml:"created,attr" json:"created"`
Changed time.Time `xml:"changed,attr" json:"changed"`
}
type BookmarkEntry struct {
ID *specid.ID `xml:"id,attr" json:"id"`
Type string `xml:"type,attr" json:"type"`
Entry *TrackChild `xml:"entry,omitempty" json:"entry,omitempty"`
Username string `xml:"username,attr" json:"username"`
Position int `xml:"position,attr" json:"position"`
Comment string `xml:"comment,attr" json:"comment"`
Created time.Time `xml:"created,attr" json:"created"`
Changed time.Time `xml:"changed,attr" json:"changed"`
}
type Starred struct {