|
Class Jabber::Protocol::Presence
|
|
The presence class is used to construct presence messages to send to the Jabber service.
gen_accept_subscription,
gen_accept_unsubscription,
gen_away,
gen_chat,
gen_dnd,
gen_initial,
gen_new_subscription,
gen_normal,
gen_unavailable,
gen_xa,
new,
to_s,
[RW] |
:from |
|
[RW] |
:id |
|
[RW] |
:priority |
|
[RW] |
:show |
The state to show (chat, xa, dnd, away)
|
[RW] |
:status |
The status message
|
[RW] |
:to |
|
[RW] |
:type |
|
Constructs a Presence object w/the supplied id
id: | [String] The message ID
|
show: | [String] The state to show
|
status: | [String] The status message
|
Generate a presence object for initial presence notification
Generate a presence object w/show="normal" (normal availability)
Generate a presence object w/show="chat" (free for chat)
Generate a presence object w/show="xa" (extended away)
Generate a presence object w/show="dnd" (do not disturb)
Generate a presence object w/show="away" (away from resource)
Generate a presence object w/show="unavailable" (not free for
chat)
href="Presence.html">Presence object
return: | [String] The presence XML message to send the Jabber service
|
|