mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 09:39:39 +02:00
Add StanzaIdFilter, deprecate PacketIDFilter
This commit is contained in:
parent
2856b8ace6
commit
7ebea7ce94
10 changed files with 73 additions and 29 deletions
|
@ -51,7 +51,7 @@ import org.jivesoftware.smack.packet.Stanza;
|
|||
* <code>
|
||||
* public void methodToTest() {
|
||||
* Packet packet = new Packet(); // create an XMPP packet
|
||||
* PacketCollector collector = connection.createPacketCollector(new PacketIDFilter());
|
||||
* PacketCollector collector = connection.createPacketCollector(new StanzaIdFilter());
|
||||
* connection.sendPacket(packet);
|
||||
* Packet reply = collector.nextResult();
|
||||
* }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue