getIndexes returning list of artists and ignoredArticles
This commit is contained in:
@@ -2,13 +2,21 @@ package responses
|
||||
|
||||
import "encoding/xml"
|
||||
|
||||
type Index struct {
|
||||
XMLName xml.Name `xml:"index"`
|
||||
Name string `xml:"name,attr"`
|
||||
type IdxArtist struct {
|
||||
XMLName xml.Name `xml:"artist"`
|
||||
Id string `xml:"id,attr"`
|
||||
Name string `xml:"name,attr"`
|
||||
}
|
||||
|
||||
type IdxIndex struct {
|
||||
XMLName xml.Name `xml:"index"`
|
||||
Name string `xml:"name,attr"`
|
||||
Artists []IdxArtist `xml:"index"`
|
||||
}
|
||||
|
||||
type ArtistIndex struct {
|
||||
XMLName xml.Name `xml:"indexes"`
|
||||
Index []Index `xml:"indexes"`
|
||||
XMLName xml.Name `xml:"indexes"`
|
||||
Index []IdxIndex `xml:"indexes"`
|
||||
IgnoredArticles string `xml:"ignoredArticles,attr"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user