2018-01-08 13:56:03 +00:00
|
|
|
package iot // import "fluux.io/xmpp"
|
2016-02-15 10:08:54 +00:00
|
|
|
|
|
|
|
import "encoding/xml"
|
|
|
|
|
|
|
|
type ControlSet struct {
|
|
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control set"`
|
|
|
|
Fields []ControlField `xml:",any"`
|
|
|
|
}
|
|
|
|
|
2016-02-15 14:22:51 +00:00
|
|
|
func (*ControlSet) IsIQPayload() {
|
|
|
|
}
|
|
|
|
|
2016-02-15 10:08:54 +00:00
|
|
|
type ControlGetForm struct {
|
|
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control getForm"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ControlField struct {
|
|
|
|
XMLName xml.Name
|
|
|
|
Name string `xml:"name,attr,omitempty"`
|
|
|
|
Value string `xml:"value,attr,omitempty"`
|
|
|
|
}
|
2016-02-15 15:33:27 +00:00
|
|
|
|
|
|
|
type ControlSetResponse struct {
|
|
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control setResponse"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ControlSetResponse) IsIQPayload() {
|
|
|
|
}
|