2019-06-26 08:14:52 -07:00
|
|
|
package stanza
|
2019-06-04 09:35:56 -07:00
|
|
|
|
2019-06-26 08:14:52 -07:00
|
|
|
import (
|
|
|
|
"encoding/xml"
|
|
|
|
)
|
2019-06-04 09:35:56 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
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() {
|
2020-01-31 02:48:03 -08:00
|
|
|
TypeRegistry.MapExtension(PKTMessage, xml.Name{Space: "jabber:x:oob", Local: "x"}, OOB{})
|
2019-06-04 09:35:56 -07:00
|
|
|
}
|