1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Adjust in documentation StanzaTypeFilter to uppercase as in code

This commit is contained in:
Alameyo 2019-03-27 00:12:58 +01:00
parent 0cd3318b12
commit 7f542e403f

View file

@ -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.