Refactored responses, implemented getLicense

This commit is contained in:
Deluan
2016-02-24 11:29:26 -05:00
parent ed1a132d8e
commit 1a3f370ea6
9 changed files with 116 additions and 58 deletions
+17
View File
@@ -0,0 +1,17 @@
package responses
type valid struct {
Valid bool `xml:"valid,attr"`
}
type license struct {
Subsonic
Body valid `xml:"license"`
}
func NewGetLicense(valid bool) *license {
response := new(license)
response.Subsonic = NewSubsonic()
response.Body.Valid = valid
return response
}