class XMPP::Stanza::Presence
- XMPP::Stanza::Presence
- XMPP::Stanza::Extension
- Reference
- Object
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.crConstructors
Class Method Summary
Instance Method Summary
- #error : Error | Nil
- #error=(error : Error | Nil)
- #extensions : Array(PresExtension)
- #extensions=(extensions : Array(PresExtension))
-
#get(type : PresExtension.class)
get search and extracts a specific extension on a presence stanza.
- #name : String
- #priority : Int8
- #priority=(priority : Int8)
- #show : String
- #show=(show : String)
- #status : String
- #status=(status : String)
- #to_xml(elem : XML::Builder)
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
Class Method Detail
Instance Method Detail
get search and extracts a specific extension on a presence stanza. it will return extension instance if found on stanza else return nil