This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2018-02-14 18:49:26 +01:00
|
|
|
package xmpp
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/xml"
|
|
|
|
|
|
|
|
"dev.sum7.eu/genofire/yaja/xmpp/base"
|
|
|
|
"dev.sum7.eu/genofire/yaja/xmpp/iq"
|
|
|
|
)
|
|
|
|
|
|
|
|
// IQServer implements RFC 6120 - A.6 Server Namespace (a part)
|
|
|
|
type IQServer struct {
|
|
|
|
XMLName xml.Name `xml:"jabber:server iq"`
|
|
|
|
From *xmppbase.JID `xml:"from,attr,omitempty"`
|
|
|
|
ID string `xml:"id,attr"` // required
|
|
|
|
To *xmppbase.JID `xml:"to,attr"` // required
|
|
|
|
Type IQType `xml:"type,attr"` // required
|
|
|
|
Error *ErrorServer
|
|
|
|
|
2018-02-22 03:12:07 +01:00
|
|
|
Bind *Bind // RFC 6120: A.7 Resource binding namespace (But in a IQ?)
|
2018-02-14 18:49:26 +01:00
|
|
|
Ping *xmppiq.Ping // XEP-0199: XMPP Ping (see iq/ping.go)
|
|
|
|
|
|
|
|
// Any hasn't matched element
|
|
|
|
Other []XMLElement `xml:",any"`
|
|
|
|
}
|