forked from chteufleur/go-xmpp
<message/> and <presence/> stanza shells.
This commit is contained in:
parent
300074fb07
commit
c13edc39c2
|
|
@ -26,3 +26,13 @@ func (iq *Iq) PayloadEncode(v interface{}) error {
|
||||||
func (iq *Iq) PayloadDecode(v interface{}) error {
|
func (iq *Iq) PayloadDecode(v interface{}) error {
|
||||||
return xml.Unmarshal([]byte(iq.Payload), v)
|
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"`
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue