add html support for messages
This commit is contained in:
parent
c886269ff0
commit
2454a3b2d6
|
@ -17,6 +17,7 @@ type MessageClient struct {
|
||||||
|
|
||||||
Subject string `xml:"subject,omitempty"`
|
Subject string `xml:"subject,omitempty"`
|
||||||
Body string `xml:"body,omitempty"`
|
Body string `xml:"body,omitempty"`
|
||||||
|
HTML *HTML
|
||||||
Thread string `xml:"thread,omitempty"`
|
Thread string `xml:"thread,omitempty"`
|
||||||
Error *ErrorClient
|
Error *ErrorClient
|
||||||
|
|
||||||
|
@ -25,3 +26,12 @@ type MessageClient struct {
|
||||||
// Any hasn't matched element
|
// Any hasn't matched element
|
||||||
Other []XMLElement `xml:",any"`
|
Other []XMLElement `xml:",any"`
|
||||||
}
|
}
|
||||||
|
type HTML struct {
|
||||||
|
XMLName xml.Name `xml:"http://jabber.org/protocol/xhtml-im html"`
|
||||||
|
Body HTMLBody
|
||||||
|
Lang string `xml:"xml:lang,attr,omitempty"`
|
||||||
|
}
|
||||||
|
type HTMLBody struct {
|
||||||
|
XMLName xml.Name `xml:"http://www.w3.org/1999/xhtml body"`
|
||||||
|
Body XMLElement
|
||||||
|
}
|
||||||
|
|
Reference in New Issue