go-xmpp/iot_control.go

27 lines
534 B
Go
Raw Normal View History

2019-06-04 15:04:25 +00:00
package xmpp // import "gosrc.io/xmpp/iot"
2019-06-04 15:04:25 +00:00
import (
"encoding/xml"
)
type ControlSet struct {
2019-06-04 15:04:25 +00:00
IQPayload
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"`
}
type ControlSetResponse struct {
2019-06-04 15:04:25 +00:00
IQPayload
XMLName xml.Name `xml:"urn:xmpp:iot:control setResponse"`
}