You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
590 B
29 lines
590 B
6 years ago
|
package iot // import "fluux.io/xmpp/iot"
|
||
8 years ago
|
|
||
|
import "encoding/xml"
|
||
|
|
||
|
type ControlSet struct {
|
||
|
XMLName xml.Name `xml:"urn:xmpp:iot:control set"`
|
||
|
Fields []ControlField `xml:",any"`
|
||
|
}
|
||
|
|
||
8 years ago
|
func (*ControlSet) IsIQPayload() {
|
||
|
}
|
||
|
|
||
8 years ago
|
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"`
|
||
|
}
|
||
8 years ago
|
|
||
|
type ControlSetResponse struct {
|
||
|
XMLName xml.Name `xml:"urn:xmpp:iot:control setResponse"`
|
||
|
}
|
||
|
|
||
|
func (*ControlSetResponse) IsIQPayload() {
|
||
|
}
|