initial commit
This commit is contained in:
20
xmpp-reply.go
Normal file
20
xmpp-reply.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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{})
|
||||
}
|
||||
Reference in New Issue
Block a user