Refactored responses again

This commit is contained in:
Deluan
2016-02-24 12:00:55 -05:00
parent 1a3f370ea6
commit c6dfea51ff
4 changed files with 18 additions and 20 deletions
+5 -14
View File
@@ -1,17 +1,8 @@
package responses
type valid struct {
import "encoding/xml"
type License struct {
XMLName xml.Name `xml:"license"`
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
}
}