mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-21 18:12:00 -08:00
Adds support for error element on message and presence
This commit is contained in:
parent
8cb1e1264e
commit
7ae2adca9f
@ -14,6 +14,7 @@ type Message struct {
|
|||||||
Subject string `xml:"subject,omitempty"`
|
Subject string `xml:"subject,omitempty"`
|
||||||
Body string `xml:"body,omitempty"`
|
Body string `xml:"body,omitempty"`
|
||||||
Thread string `xml:"thread,omitempty"`
|
Thread string `xml:"thread,omitempty"`
|
||||||
|
Error Err `xml:"error,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Message) Name() string {
|
func (Message) Name() string {
|
||||||
|
@ -11,7 +11,7 @@ type Presence struct {
|
|||||||
Show string `xml:"show,attr,omitempty"` // away, chat, dnd, xa
|
Show string `xml:"show,attr,omitempty"` // away, chat, dnd, xa
|
||||||
Status string `xml:"status,attr,omitempty"`
|
Status string `xml:"status,attr,omitempty"`
|
||||||
Priority string `xml:"priority,attr,omitempty"`
|
Priority string `xml:"priority,attr,omitempty"`
|
||||||
//Error *clientError
|
Error Err `xml:"error,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Presence) Name() string {
|
func (Presence) Name() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user