go-xmpp/stanza/delay.go
CORNIERE Rémi 877a6ab949 Support for XEP-203
Need to finish XEP-0082 before merge
2020-04-29 10:18:03 +02:00

21 lines
409 B
Go

package stanza
import "encoding/xml"
/*
Support for:
- XEP-0203: Delayed Delivery: https://xmpp.org/extensions/xep-0203.html
*/
const NSDelay = "urn:xmpp:delay"
type Delay struct {
XMLName xml.Name `xml:"urn:xmpp:delay delay"`
From string `xml:"from,attr"`
date JabberDate // TODO
}
func init() {
TypeRegistry.MapExtension(PKTMessage, xml.Name{Space: NSDelay, Local: "delay"}, Delay{})
}