mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-13 00:21:07 +01:00
PacketExtension.from(Packet), deprecate getFrom()
add 'from(Packet)' to DataForm
This commit is contained in:
parent
f0651bae2d
commit
58e430af42
14 changed files with 158 additions and 13 deletions
|
|
@ -107,7 +107,23 @@ public class DelayInformation implements PacketExtension {
|
|||
return xml;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param packet
|
||||
* @return the DelayInformation or null
|
||||
* @deprecated use {@link #from(Packet)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static DelayInformation getFrom(Packet packet) {
|
||||
return from(packet);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param packet
|
||||
* @return the DelayInformation or null
|
||||
*/
|
||||
public static DelayInformation from(Packet packet) {
|
||||
return packet.getExtension(ELEMENT, NAMESPACE);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue