2018-01-08 05:56:03 -08:00
|
|
|
package iot // import "fluux.io/xmpp"
|
2016-02-15 02:08:54 -08:00
|
|
|
|
|
|
|
import "encoding/xml"
|
|
|
|
|
|
|
|
type ControlSet struct {
|
|
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control set"`
|
|
|
|
Fields []ControlField `xml:",any"`
|
|
|
|
}
|
|
|
|
|
2016-02-15 06:22:51 -08:00
|
|
|
func (*ControlSet) IsIQPayload() {
|
|
|
|
}
|
|
|
|
|
2016-02-15 02:08:54 -08: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 07:33:27 -08:00
|
|
|
|
|
|
|
type ControlSetResponse struct {
|
|
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control setResponse"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ControlSetResponse) IsIQPayload() {
|
|
|
|
}
|