Make URL field names consistent.
This commit is contained in:
parent
c2207fac12
commit
c7f69f6a43
12
device.go
12
device.go
@ -84,15 +84,15 @@ func (icon *Icon) SetURLBase(url *url.URL) {
|
|||||||
type Service struct {
|
type Service struct {
|
||||||
ServiceType string `xml:"serviceType"`
|
ServiceType string `xml:"serviceType"`
|
||||||
ServiceId string `xml:"serviceId"`
|
ServiceId string `xml:"serviceId"`
|
||||||
SCPD URLField `xml:"SCPDURL"`
|
SCPDURL URLField `xml:"SCPDURL"`
|
||||||
Control URLField `xml:"controlURL"`
|
ControlURL URLField `xml:"controlURL"`
|
||||||
EventSub URLField `xml:"eventSubURL"`
|
EventSubURL URLField `xml:"eventSubURL"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (srv *Service) SetURLBase(urlBase *url.URL) {
|
func (srv *Service) SetURLBase(urlBase *url.URL) {
|
||||||
srv.SCPD.SetURLBase(urlBase)
|
srv.SCPDURL.SetURLBase(urlBase)
|
||||||
srv.Control.SetURLBase(urlBase)
|
srv.ControlURL.SetURLBase(urlBase)
|
||||||
srv.EventSub.SetURLBase(urlBase)
|
srv.EventSubURL.SetURLBase(urlBase)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (srv *Service) String() string {
|
func (srv *Service) String() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user