Imports System
Imports System.IO
Imports System.Xml.Serialization
' <summary>Represents an xml root artists document element.</summary>
<XmlRoot("artists", Namespace:="http://www.spotify.com/ns/music/1")> _
Public Class Artists
Private p_attribute_xmlns As XmlSerializerNamespaces
Private p_element_query As Query
Private p_element_totalresults As String
Private p_element_startindex As String
Private p_element_itemsperpage As String
Private p_element_artist As Artist()
' <summary>XmlSerializerNamespaces attribute.</summary>
<XmlNamespaceDeclarations()> _
Public Property xmlns() As XmlSerializerNamespaces
Get
Return Me.p_attribute_xmlns
End Get
Set(ByVal Value As XmlSerializerNamespaces)
Me.p_attribute_xmlns = Value
End Set
End Property
' <summary>Query xml element.</summary>
<XmlElement("Query", Namespace:="http://a9.com/-/spec/opensearch/1.1/")> _
Public Property Query() As Query
Get
Return Me.p_element_query
End Get
Set(ByVal Value As Query)
Me.p_element_query = Value
End Set
End Property
' <summary>String totalResults element.</summary>
<XmlElement("totalResults", Namespace:="http://a9.com/-/spec/opensearch/1.1/")> _
Public Property TotalResults() As String
Get
Return Me.p_element_totalresults
End Get
Set(ByVal Value As String)
Me.p_element_totalresults = Value
End Set
End Property
' <summary>String startIndex element.</summary>
<XmlElement("startIndex", Namespace:="http://a9.com/-/spec/opensearch/1.1/")> _
Public Property StartIndex() As String
Get
Return Me.p_element_startindex
End Get
Set(ByVal Value As String)
Me.p_element_startindex = Value
End Set
End Property
' <summary>String itemsPerPage element.</summary>
<XmlElement("itemsPerPage", Namespace:="http://a9.com/-/spec/opensearch/1.1/")> _
Public Property ItemsPerPage() As String
Get
Return Me.p_element_itemsperpage
End Get
Set(ByVal Value As String)
Me.p_element_itemsperpage = Value
End Set
End Property
' <summary>Artist[] artist xml element.</summary>
<XmlElement("artist", Namespace:="")> _
Public Property Artists() As Artist()
Get
Return Me.p_element_artist
End Get
Set(ByVal Value As Artist())
Me.p_element_artist = Value
End Set
End Property
End Class
' <summary>Represents a artists.Query node.</summary>
Public Class Query
Private p_attribute_role As String
Private p_attribute_startpage As Int32
Private p_attribute_searchterms As String
' <summary>String role attribute.</summary>
<XmlAttribute("role")> _
Public Property Role() As String
Get
Return Me.p_attribute_role
End Get
Set(ByVal Value As String)
Me.p_attribute_role = Value
End Set
End Property
' <summary>Int32 startPage attribute.</summary>
<XmlAttribute("startPage")> _
Public Property StartPage() As Int32
Get
Return Me.p_attribute_startpage
End Get
Set(ByVal Value As Int32)
Me.p_attribute_startpage = Value
End Set
End Property
' <summary>String searchTerms attribute.</summary>
<XmlAttribute("searchTerms")> _
Public Property SearchTerms() As String
Get
Return Me.p_attribute_searchterms
End Get
Set(ByVal Value As String)
Me.p_attribute_searchterms = Value
End Set
End Property
End Class
' <summary>Represents a artists.artist node.</summary>
Public Class Artist
Private p_attribute_href As String
Private p_element_name As String
Private p_element_popularity As String
' <summary>String href attribute.</summary>
<XmlAttribute("href")> _
Public Property Href() As String
Get
Return Me.p_attribute_href
End Get
Set(ByVal Value As String)
Me.p_attribute_href = Value
End Set
End Property
' <summary>String name element.</summary>
<XmlElement("name")> _
Public Property Name() As String
Get
Return Me.p_element_name
End Get
Set(ByVal Value As String)
Me.p_element_name = Value
End Set
End Property
' <summary>String popularity element.</summary>
<XmlElement("popularity")> _
Public Property Popularity() As String
Get
Return Me.p_element_popularity
End Get
Set(ByVal Value As String)
Me.p_element_popularity = Value
End Set
End Property
End Class