getIndexes returning list of artists and ignoredArticles

This commit is contained in:
Deluan
2016-03-01 13:15:23 -05:00
parent e0f214d356
commit 8e482bc494
3 changed files with 26 additions and 10 deletions
+13 -5
View File
@@ -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"`
}