mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-12-04 00:02:01 -08:00
947fcf0432
* PubSub protocol support Added support for : - XEP-0050 (Command)) - XEP-0060 (PubSub) - XEP-0004 (Forms) Fixed the NewClient function by adding parsing of the domain from the JID if no domain is provided in transport config. Updated xmpp_jukebox example * Delete useless pubsub errors * README.md update Fixed import in echo example * Typo * Fixed raw send on client example * Fixed jukebox example and added a README.md
28 lines
828 B
Go
28 lines
828 B
Go
package stanza
|
|
|
|
import (
|
|
"encoding/xml"
|
|
)
|
|
|
|
type Tune struct {
|
|
XMLName xml.Name `xml:"http://jabber.org/protocol/tune tune"`
|
|
Artist string `xml:"artist,omitempty"`
|
|
Length int `xml:"length,omitempty"`
|
|
Rating int `xml:"rating,omitempty"`
|
|
Source string `xml:"source,omitempty"`
|
|
Title string `xml:"title,omitempty"`
|
|
Track string `xml:"track,omitempty"`
|
|
Uri string `xml:"uri,omitempty"`
|
|
}
|
|
|
|
// Mood defines data model for XEP-0107 - User Mood
|
|
// See: https://xmpp.org/extensions/xep-0107.html
|
|
type Mood struct {
|
|
MsgExtension // Mood can be added as a message extension
|
|
XMLName xml.Name `xml:"http://jabber.org/protocol/mood mood"`
|
|
// TODO: Custom parsing to extract mood type from tag name.
|
|
// Note: the list is predefined.
|
|
// Mood type
|
|
Text string `xml:"text,omitempty"`
|
|
}
|