mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-01-08 09:39:20 -08:00
Moving XMPP library to Fluux project
This commit is contained in:
28
iot/control.go
Normal file
28
iot/control.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package iot // import "fluux.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() {
|
||||
}
|
||||
Reference in New Issue
Block a user