mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
Merge pull request #306 from Alameyo/doc-fix-stanza-type-filter-to-uppercase
Fix in documentation. StanzaTypeFilter to uppercase as in code.
This commit is contained in:
commit
fea7362293
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ and a stanza listener:
|
||||||
```
|
```
|
||||||
// Create a stanza filter to listen for new messages from a particular
|
// Create a stanza filter to listen for new messages from a particular
|
||||||
// user. We use an AndFilter to combine two other filters._
|
// user. We use an AndFilter to combine two other filters._
|
||||||
StanzaFilter filter = new AndFilter(StanzaTypeFilter.Message, FromMatchesFilter.create("mary@jivesoftware.com"));
|
StanzaFilter filter = new AndFilter(StanzaTypeFilter.MESSAGE, FromMatchesFilter.create("mary@jivesoftware.com"));
|
||||||
// Assume we've created an XMPPConnection named "connection".
|
// Assume we've created an XMPPConnection named "connection".
|
||||||
|
|
||||||
// First, register a stanza collector using the filter we created.
|
// First, register a stanza collector using the filter we created.
|
||||||
|
|
Loading…
Reference in a new issue