mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-30 22:32:03 -08:00
5eae7f4ef7
The URL will be more permanent as this is a place we dedicate as short URL for our go projects.
29 lines
590 B
Go
29 lines
590 B
Go
package iot // import "gosrc.io/xmpp/iot"
|
|
|
|
import "encoding/xml"
|
|
|
|
type ControlSet struct {
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control set"`
|
|
Fields []ControlField `xml:",any"`
|
|
}
|
|
|
|
func (*ControlSet) IsIQPayload() {
|
|
}
|
|
|
|
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 {
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control setResponse"`
|
|
}
|
|
|
|
func (*ControlSetResponse) IsIQPayload() {
|
|
}
|