mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-09 12:31:08 +01:00
Deprecate Forwarded.getForwardedPacket()
This commit is contained in:
parent
9a00e09c0a
commit
1cd268a8f0
3 changed files with 14 additions and 3 deletions
|
|
@ -78,11 +78,22 @@ public class Forwarded implements ExtensionElement {
|
|||
* get the stanza(/packet) forwarded by this stanza.
|
||||
*
|
||||
* @return the {@link Stanza} instance (typically a message) that was forwarded.
|
||||
* @deprecated use @{link {@link #getForwardedStanza()}} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public Stanza getForwardedPacket() {
|
||||
return forwardedPacket;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the forwarded Stanza found in this extension.
|
||||
*
|
||||
* @return the {@link Stanza} (typically a message) that was forwarded.
|
||||
*/
|
||||
public Stanza getForwardedStanza() {
|
||||
return forwardedPacket;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the timestamp of the forwarded packet.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue