forked from jshiffer/go-xmpp
Allow formatting IOT Control SetResponse
This commit is contained in:
@@ -2,16 +2,6 @@ package iot
|
||||
|
||||
import "encoding/xml"
|
||||
|
||||
/*
|
||||
type Control struct {
|
||||
ControlSet ControlSet `xml:",omitempty"`
|
||||
ControlGetForm ControlGetForm `xml:",omitempty"`
|
||||
}
|
||||
|
||||
func (*Control) IQPayload() {
|
||||
}
|
||||
*/
|
||||
|
||||
type ControlSet struct {
|
||||
XMLName xml.Name `xml:"urn:xmpp:iot:control set"`
|
||||
Fields []ControlField `xml:",any"`
|
||||
@@ -29,3 +19,10 @@ type ControlField struct {
|
||||
Name string `xml:"name,attr,omitempty"`
|
||||
Value string `xml:"value,attr,omitempty"`
|
||||
}
|
||||
|
||||
type ControlSetResponse struct {
|
||||
XMLName xml.Name `xml:"urn:xmpp:iot:control setResponse"`
|
||||
}
|
||||
|
||||
func (*ControlSetResponse) IsIQPayload() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user