AnyEvent::XMPP::IM::Presence - XMPP presence
This module represents an XMPP presence. It stores the full JID of the contact, the show value, status value and priority.
AnyEvent::XMPP::IM::Presence is derived from AnyEvent::XMPP::IM::Delayed, use the interface described there to find out whether this presence was delayed.
Returns the full JID of this presence.
Returns the priority of this presence.
Returns all language tags of available status descriptions. See also status.
Returns the show value of this presence, which is one of:
'away', 'chat', 'dnd', 'xa'
or the empty string if the presence is 'available'.
Returns the presence description. $lang is optional can should be one of the tags returned by status_all_lang.
$lang
status_all_lang
Returns a AnyEvent::XMPP::IM::Message object with the to field set to this presence full JID.
%args are further arguments to the constructor of the message.
%args
Robin Redeker, <elmex at ta-sa.org>, JID: <elmex at jabber.org>
<elmex at ta-sa.org>
<elmex at jabber.org>
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install AnyEvent::XMPP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::XMPP
CPAN shell
perl -MCPAN -e shell install AnyEvent::XMPP
For more information on module installation, please visit the detailed CPAN module installation guide.