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.
33 lines
630 B
33 lines
630 B
5 years ago
|
package stanza
|
||
8 years ago
|
|
||
5 years ago
|
import (
|
||
|
"encoding/xml"
|
||
|
)
|
||
8 years ago
|
|
||
|
type ControlSet struct {
|
||
|
XMLName xml.Name `xml:"urn:xmpp:iot:control set"`
|
||
|
Fields []ControlField `xml:",any"`
|
||
|
}
|
||
|
|
||
5 years ago
|
func (c *ControlSet) Namespace() string {
|
||
|
return c.XMLName.Space
|
||
|
}
|
||
|
|
||
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"`
|
||
|
}
|
||
5 years ago
|
|
||
|
func (c *ControlSetResponse) Namespace() string {
|
||
|
return c.XMLName.Space
|
||
|
}
|