From c7f69f6a434c35ac72fa9d985daa82d4ace028b2 Mon Sep 17 00:00:00 2001 From: John Beisley Date: Sat, 28 Sep 2013 18:54:48 +0100 Subject: [PATCH] Make URL field names consistent. --- device.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/device.go b/device.go index 0cb7bf5..1176343 100644 --- a/device.go +++ b/device.go @@ -84,15 +84,15 @@ func (icon *Icon) SetURLBase(url *url.URL) { type Service struct { ServiceType string `xml:"serviceType"` ServiceId string `xml:"serviceId"` - SCPD URLField `xml:"SCPDURL"` - Control URLField `xml:"controlURL"` - EventSub URLField `xml:"eventSubURL"` + SCPDURL URLField `xml:"SCPDURL"` + ControlURL URLField `xml:"controlURL"` + EventSubURL URLField `xml:"eventSubURL"` } func (srv *Service) SetURLBase(urlBase *url.URL) { - srv.SCPD.SetURLBase(urlBase) - srv.Control.SetURLBase(urlBase) - srv.EventSub.SetURLBase(urlBase) + srv.SCPDURL.SetURLBase(urlBase) + srv.ControlURL.SetURLBase(urlBase) + srv.EventSubURL.SetURLBase(urlBase) } func (srv *Service) String() string {