<message/> and <presence/> stanza shells.

This commit is contained in:
Matt Goodall 2012-07-08 12:10:55 +01:00
parent 300074fb07
commit c13edc39c2
1 changed files with 10 additions and 0 deletions

View File

@ -26,3 +26,13 @@ func (iq *Iq) PayloadEncode(v interface{}) error {
func (iq *Iq) PayloadDecode(v interface{}) error {
return xml.Unmarshal([]byte(iq.Payload), v)
}
// XMPP <message/> stanza.
type Message struct {
XMLName xml.Name `xml:"message"`
}
// XMPP <presence/> stanza.
type Presence struct {
XMLName xml.Name `xml:"presence"`
}