mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-25 03:52:02 -08:00
8798ff6fc1
- Fixed commands from v 0.4.0 and tests - Added primitive Result Sets support (XEP-0059)
22 lines
391 B
Go
22 lines
391 B
Go
package stanza
|
|
|
|
import (
|
|
"encoding/xml"
|
|
)
|
|
|
|
/*
|
|
Support for:
|
|
- XEP-0066 - Out of Band Data: https://xmpp.org/extensions/xep-0066.html
|
|
*/
|
|
|
|
type OOB struct {
|
|
MsgExtension
|
|
XMLName xml.Name `xml:"jabber:x:oob x"`
|
|
URL string `xml:"url"`
|
|
Desc string `xml:"desc,omitempty"`
|
|
}
|
|
|
|
func init() {
|
|
TypeRegistry.MapExtension(PKTMessage, xml.Name{Space: "jabber:x:oob", Local: "x"}, OOB{})
|
|
}
|