21 lines
446 B
Go
21 lines
446 B
Go
package main
|
|
|
|
// Implementation of XEP-0461
|
|
// https://xmpp.org/extensions/xep-0461.html#business-id
|
|
|
|
import (
|
|
"encoding/xml"
|
|
"gosrc.io/xmpp/stanza"
|
|
)
|
|
|
|
type Reply struct {
|
|
stanza.MsgExtension
|
|
XMLName xml.Name `xml:"urn:xmpp:reply:0 reply"`
|
|
To string `xml:"to,attr"`
|
|
ID string `xml:"id,attr"`
|
|
}
|
|
|
|
func init() {
|
|
stanza.TypeRegistry.MapExtension(stanza.PKTMessage, xml.Name{Space: "urn:xmpp:reply:0", Local: "reply"}, Reply{})
|
|
}
|