Add XEP-0092 (Software version)
This commit is contained in:
parent
f7b1e7ecb2
commit
e82f10fe48
|
|
@ -0,0 +1,17 @@
|
|||
package xmpp
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
)
|
||||
|
||||
const (
|
||||
NsJabberClient = "jabber:iq:version"
|
||||
)
|
||||
|
||||
// XEP-0092 Software Version
|
||||
type SoftwareVersion struct {
|
||||
XMLName xml.Name `xml:"jabber:iq:version query"`
|
||||
Name string `xml:"name,omitempty"`
|
||||
Version string `xml:"version,omitempty"`
|
||||
OS string `xml:"os,omitempty"`
|
||||
}
|
||||
|
|
@ -6,7 +6,6 @@ import (
|
|||
"fmt"
|
||||
)
|
||||
|
||||
|
||||
const (
|
||||
IqTypeGet = "get"
|
||||
IqTypeSet = "set"
|
||||
|
|
@ -14,7 +13,6 @@ const (
|
|||
IqTypeError = "error"
|
||||
)
|
||||
|
||||
|
||||
// XMPP <iq/> stanza.
|
||||
type Iq struct {
|
||||
XMLName xml.Name `xml:"iq"`
|
||||
|
|
|
|||
Loading…
Reference in New Issue