forked from jshiffer/go-xmpp
Refactor IQ handling and merge payload iq struct fields for supported XEPs
This commit is contained in:
@@ -2,16 +2,24 @@ package iot
|
||||
|
||||
import "encoding/xml"
|
||||
|
||||
/*
|
||||
type Control struct {
|
||||
ControlSet ControlSet `xml:",omitempty"`
|
||||
ControlGetForm ControlGetForm `xml:",omitempty"`
|
||||
}
|
||||
|
||||
func (*Control) IQPayload() {
|
||||
}
|
||||
*/
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user