2019-06-04 08:04:25 -07:00
|
|
|
package xmpp // import "gosrc.io/xmpp/iot"
|
2016-02-15 02:08:54 -08:00
|
|
|
|
2019-06-04 08:04:25 -07:00
|
|
|
import (
|
|
|
|
"encoding/xml"
|
|
|
|
)
|
2016-02-15 02:08:54 -08:00
|
|
|
|
|
|
|
type ControlSet struct {
|
2019-06-04 08:04:25 -07:00
|
|
|
IQPayload
|
2016-02-15 02:08:54 -08:00
|
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control set"`
|
|
|
|
Fields []ControlField `xml:",any"`
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2019-06-04 08:04:25 -07:00
|
|
|
IQPayload
|
2016-02-15 07:33:27 -08:00
|
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control setResponse"`
|
|
|
|
}
|