mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-24 03:22:01 -08:00
26 lines
626 B
Go
26 lines
626 B
Go
|
package stanza
|
||
|
|
||
|
import "encoding/xml"
|
||
|
|
||
|
// ============================================================================
|
||
|
// Software Version (XEP-0092)
|
||
|
|
||
|
// Version
|
||
|
type Version struct {
|
||
|
XMLName xml.Name `xml:"jabber:iq:version query"`
|
||
|
Name string `xml:"name,omitempty"`
|
||
|
Version string `xml:"version,omitempty"`
|
||
|
OS string `xml:"os,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (v *Version) Namespace() string {
|
||
|
return v.XMLName.Space
|
||
|
}
|
||
|
|
||
|
// ============================================================================
|
||
|
// Registry init
|
||
|
|
||
|
func init() {
|
||
|
TypeRegistry.MapExtension(PKTIQ, xml.Name{"jabber:iq:version", "query"}, Version{})
|
||
|
}
|