2016-02-15 02:08:54 -08:00
|
|
|
package iot
|
|
|
|
|
|
|
|
import "encoding/xml"
|
|
|
|
|
2016-02-15 06:22:51 -08:00
|
|
|
/*
|
2016-02-15 02:08:54 -08:00
|
|
|
type Control struct {
|
|
|
|
ControlSet ControlSet `xml:",omitempty"`
|
|
|
|
ControlGetForm ControlGetForm `xml:",omitempty"`
|
|
|
|
}
|
|
|
|
|
2016-02-15 06:22:51 -08:00
|
|
|
func (*Control) IQPayload() {
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
2016-02-15 02:08:54 -08:00
|
|
|
type ControlSet struct {
|
|
|
|
XMLName xml.Name `xml:"urn:xmpp:iot:control set"`
|
|
|
|
Fields []ControlField `xml:",any"`
|
|
|
|
}
|
|
|
|
|
2016-02-15 06:22:51 -08:00
|
|
|
func (*ControlSet) IsIQPayload() {
|
|
|
|
}
|
|
|
|
|
2016-02-15 02:08:54 -08:00
|
|
|
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"`
|
|
|
|
}
|