1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-16 08:34:50 +02:00

Add IQ.isResponseIQ()

This commit is contained in:
Florian Schmaus 2019-04-08 23:04:25 +02:00
parent 7d5274dad1
commit 87e0ac9ba1

View file

@ -105,6 +105,16 @@ public abstract class IQ extends Stanza {
} }
} }
/**
* Return true if this IQ is a request, i.e. an IQ of type {@link Type#result} or {@link Type#error}.
*
* @return true if IQ type is 'result' or 'error', false otherwise.
* @since 4.4
*/
public boolean isResponseIQ() {
return !isRequestIQ();
}
public final String getChildElementName() { public final String getChildElementName() {
return childElementName; return childElementName;
} }