1
0
Fork 0

Add XEP-0092 (Software version)

This commit is contained in:
Chteufleur 2016-04-20 22:16:31 +02:00
parent f7b1e7ecb2
commit e82f10fe48
3 changed files with 22 additions and 7 deletions

View File

@ -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"`
}

View File

@ -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"`