lib/blather/stanza/message.rb in blather-0.4.16 vs lib/blather/stanza/message.rb in blather-0.5.0
- old
+ new
@@ -155,15 +155,20 @@
# msg.thread # => 'thread-id'
# msg.parent_thread # => 'parent-id'
#
# @handler :message
class Message < Stanza
+ # @private
VALID_TYPES = [:chat, :error, :groupchat, :headline, :normal].freeze
+ # @private
VALID_CHAT_STATES = [:active, :composing, :gone, :inactive, :paused].freeze
+ # @private
CHAT_STATE_NS = 'http://jabber.org/protocol/chatstates'.freeze
+ # @private
HTML_NS = 'http://jabber.org/protocol/xhtml-im'.freeze
+ # @private
HTML_BODY_NS = 'http://www.w3.org/1999/xhtml'.freeze
register :message
# @private