mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-28 05:12:00 -08:00
27 lines
534 B
Go
27 lines
534 B
Go
package xmpp // import "gosrc.io/xmpp/iot"
|
|
|
|
import (
|
|
"encoding/xml"
|
|
)
|
|
|
|
type ControlSet struct {
|
|
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 {
|
|
IQPayload
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control setResponse"`
|
|
}
|