mirror of https://github.com/FluuxIO/go-xmpp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
626 B
Go
26 lines
626 B
Go
5 years ago
|
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{})
|
||
|
}
|