class XMPP::Stanza::Mood

Overview

Mood defines data model for XEP-0107 - User Mood See: https://xmpp.org/extensions/xep-0107.html

Defined in:

xmpp/stanza/pep.cr

Constant Summary

VALID_MOODS = {"afraid", "amazed", "angry", "amorous", "annoyed", "anxious", "aroused", "ashamed", "bored", "brave", "calm", "cautious", "cold", "confident", "confused", "contemplative", "contented", "cranky", "crazy", "creative", "curious", "dejected", "depressed", "disappointed", "disgusted", "dismayed", "distracted", "embarrassed", "envious", "excited", "flirtatious", "frustrated", "grateful", "grieving", "grumpy", "guilty", "happy", "hopeful", "hot", "humbled", "humiliated", "hungry", "hurt", "impressed", "in_awe", "in_love", "indignant", "interested", "intoxicated", "invincible", "jealous", "lonely", "lost", "lucky", "mean", "moody", "nervous", "neutral", "offended", "outraged", "playful", "proud", "relaxed", "relieved", "remorseful", "restless", "sad", "sarcastic", "satisfied", "serious", "shocked", "shy", "sick", "sleepy", "spontaneous", "stressed", "strong", "surprised", "thankful", "thirsty", "tired", "undefined", "weak", "worried"}

Predefined mood types from XEP-0107

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module XMPP::Stanza::Packet

name : String name, to_xml(xml : XML::Builder)
to_xml : String
to_xml

Constructor Detail

def self.new(node : XML::Node) #

[View source]

Class Method Detail

def self.xml_name : XMLName #

[View source]

Instance Method Detail

def mood_description : String #

Get a human-readable description of the mood


[View source]
def name : String #

[View source]
def text : String #

[View source]
def text=(text : String) #

[View source]
def to_xml(xml : XML::Builder) #

[View source]
def valid_mood? : Bool #

Check if the mood value is a valid XEP-0107 mood type


[View source]
def value : String #

[View source]
def value=(value : String) #

[View source]