public class AMPDeliverCondition extends Object implements AMPExtension.Condition
Modifier and Type | Class and Description |
---|---|
static class |
AMPDeliverCondition.Value
Value for amp deliver condition as defined by XEP-0079.
|
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
ATTRIBUTE_NAME
Constructor and Description |
---|
AMPDeliverCondition(AMPDeliverCondition.Value value)
Create new amp deliver condition with value set to one of defined by XEP-0079.
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getValue() |
static boolean |
isSupported(XMPPConnection connection)
Check if server supports deliver condition.
|
public static final String NAME
public AMPDeliverCondition(AMPDeliverCondition.Value value)
value
- AMPDeliveryCondition.Value instance that will be used as value parameter. Can't be null.public static boolean isSupported(XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
connection
- Smack connection instanceXMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
InterruptedException
public String getName()
getName
in interface AMPExtension.Condition
public String getValue()
getValue
in interface AMPExtension.Condition