mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
Add IQ.isResponseIQ()
This commit is contained in:
parent
7d5274dad1
commit
87e0ac9ba1
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue