1AnyEvent::XMPP::IM::DelUasyeerd(C3o)ntributed Perl DocumAennytEavteinotn::XMPP::IM::Delayed(3)
2
3
4
6 AnyEvent::XMPP::IM::Delayed - A delayed "XML" stanza
7
10 This module handles the delayed fields of stanzas and is a superclass
11 of AnyEvent::XMPP::IM::Message and AnyEvent::XMPP::IM::Presence.
12
14 new The constructor takes no arguments and makes just a new object of
15 this class.
16
17 xml_node ()
18 Returns the AnyEvent::XMPP::Node object for this stream error.
19
20 fetch_delay_from_node ($node)
21 $node must be a AnyEvent::XMPP::Node. This method will try to fetch
22 the delay information from the $node. It will look in the lists of
23 child nodes for the delay elements and set it's values from there.
24
25 delay_from
26 This method returns either the original source of a maybe delayed
27 stanza. It's the JID of the original entity that sent the stanza.
28
29 This method returns undef if this stanza was not delayed.
30
31 And this method returns undef if this stanza had no details about
32 who sent the message in the first place.
33
34 To find out whether this stanza was delayed use the "delay_stamp"
35 method.
36
37 delay_stamp
38 This method returns the timestamp in XMPP format which can be fed
39 to the "from_xmpp_datetime" function documented in
40 AnyEvent::XMPP::Util.
41
42 (Please note that this might be a newstyle XEP-0087 timestamp or
43 old style legacy timestamp)
44
45 If the stanza was not delayed this method returns undef.
46
47 delay_reason
48 This method might return a human readable string containing the
49 reason why the stanza was delayed.
50
51 Will be undef if stanza contained no delay.
52
53 is_delayed
54 If this method returns a true value then this stanza was delayed.
55 Otherwise it returns undef.
56
58 Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"
59
61 Copyright 2007, 2008 Robin Redeker, all rights reserved.
62
63 This program is free software; you can redistribute it and/or modify it
64 under the same terms as Perl itself.
65
66
67
68perl v5.36.0 2022-07-22 AnyEvent::XMPP::IM::Delayed(3)