package main // Implementation of XEP-0045 admin // https://xmpp.org/extensions/xep-0045.html import ( "encoding/xml" "gosrc.io/xmpp/stanza" ) type MucOwnerQuery struct { XMLName xml.Name `xml:"http://jabber.org/protocol/muc#owner query"` ResultSet *stanza.ResultSet `xml:"set,omitempty"` Form stanza.Form `xml:"jabber:x:data x,omitempty"` } func (v *MucOwnerQuery) Namespace() string { return v.XMLName.Space } func (v *MucOwnerQuery) GetSet() *stanza.ResultSet { return v.ResultSet } func init() { stanza.TypeRegistry.MapExtension(stanza.PKTIQ, xml.Name{Space: "http://jabber.org/protocol/muc#owner", Local: "query"}, MucOwnerQuery{}) }