mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-21 10:02:00 -08:00
26 lines
669 B
Go
26 lines
669 B
Go
package xmpp
|
|
|
|
import "encoding/xml"
|
|
|
|
/*
|
|
Support for:
|
|
- XEP-0184 - Message Delivery Receipts: https://xmpp.org/extensions/xep-0184.html
|
|
*/
|
|
|
|
// Used on outgoing message, to tell the recipient that you are requesting a message receipt / ack.
|
|
type ReceiptRequest struct {
|
|
MsgExtension
|
|
XMLName xml.Name `xml:"urn:xmpp:receipts request"`
|
|
}
|
|
|
|
type ReceiptReceived struct {
|
|
MsgExtension
|
|
XMLName xml.Name `xml:"urn:xmpp:receipts received"`
|
|
ID string
|
|
}
|
|
|
|
func init() {
|
|
typeRegistry.MapExtension(PKTMessage, xml.Name{"urn:xmpp:receipts", "request"}, ReceiptRequest{})
|
|
typeRegistry.MapExtension(PKTMessage, xml.Name{"urn:xmpp:receipts", "received"}, ReceiptReceived{})
|
|
}
|