class XMPP::Stanza::Presence

Overview

Presence Packet Presence implements RFC 6120 - A.5 Client Namespace (a part) Presence stanzas are used to express an entity's current network availability (offline or online, along with various sub-states of the latter and optional user-defined descriptive text), and to notify other entities of that availability. Presence stanzas are also used to negotiate and manage subscriptions to the presence of other entities.

Included Modules

Defined in:

xmpp/stanza/presence.cr

Constructors

Class Method Summary

Instance Method Summary

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

attr_hash attr_hash, from : String from, from=(from : String) from=, id : String id, id=(id : String) id=, lang : String lang, lang=(lang : String) lang=, load_attrs(node : XML::Node) load_attrs, to : String to, to=(to : String) to=, type : String type, type=(type : String) type=, xmlns : String xmlns

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

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

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(xml : String) #

[View source]
def self.new(node : XML::Node) #

[View source]

Class Method Detail

def self.xml_name : String #

[View source]

Instance Method Detail

def error : Error | Nil #

[View source]
def error=(error : Error | Nil) #

[View source]
def extensions : Array(PresExtension) #

[View source]
def extensions=(extensions : Array(PresExtension)) #

[View source]
def get(type : PresExtension.class) #

get search and extracts a specific extension on a presence stanza. it will return extension instance if found on stanza else return nil


[View source]
def name : String #

[View source]
def priority : Int8 #

[View source]
def priority=(priority : Int8) #

[View source]
def show : String #

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

[View source]
def status : String #

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

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

[View source]