public class SmsSubmissionResult extends java.lang.Object implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_ACCOUNT_NOT_HTTP
Message was rejected because your account is not provisioned for submitting via the REST interface.
|
static int |
STATUS_COMMS_FAILURE
Message was not submitted because there was a communications failure.
|
static int |
STATUS_FACILITY_NOT_ALLOWED
Your request makes use of a facility that is not enabled on your account
|
static int |
STATUS_INTERNAL_ERROR
Message was rejected due to a failure within the Nexmo systems.
Message can be re-submitted after a short delay |
static int |
STATUS_INVALID_CREDENTIALS
Message was rejected due to receiving invalid account api key and/or secret
|
static int |
STATUS_INVALID_FROM_ADDRESS
The 'from' address specified in the message submission was not permitted
|
static int |
STATUS_INVALID_MESSAFE_CLASS
The message class value supplied was out of range (0 - 3)
|
static int |
STATUS_INVALID_MESSAGE
Message was rejected because the Nexmo service was unable to handle this request.
|
static int |
STATUS_INVALID_PARAMS
Message was rejected due to an illegal value in one or more elements of the submission request
|
static int |
STATUS_INVALID_SIGNATURE
Message was not submitted due to a verification failure in the submitted signature
|
static int |
STATUS_INVALID_TTL
invalid TTL -- The ttl parameter values, or combination of parameters is invalid
|
static int |
STATUS_MESSAGE_TOO_LONG
Message was rejected because it exceeds the allowable maximum length (140 octets for a binary message, or 3200 chars for a text message)
|
static int |
STATUS_MISSING_PARAMS
Message was rejected due to incomplete data in the submission request
|
static int |
STATUS_NUMBER_BARRED
Message was rejected because the phone number you tried to submit to has been blacklisted.
|
static int |
STATUS_NUMBER_UNREACHABKE
This destination cannot be delivered to at this time (if reachable=true is specified)
|
static int |
STATUS_OK
Message was successfully submitted to the Nexmo service
|
static int |
STATUS_PARTNER_ACCOUNT_BARRED
Message was rejected because your account has been barred, or has not yet been activated
|
static int |
STATUS_PARTNER_QUOTA_EXCEEDED
Message was rejected because your pre-paid balance does not contain enough credit to handle this request.
Please top up your balance before re-submitting this request or subsequent requests. |
static int |
STATUS_THROTTLED
Message was rejected due to exceeding the maximum throughput allowed for this account.
Message can be re-submitted after a short delay |
static int |
STATUS_TOO_MANY_BINDS
Message was rejected because already have the maximum number of concurrent connections allowed for your account.
|
static int |
STATUS_TOO_MANY_DESTINATIONS
There are more than the maximum allowed number of destinations in this request
|
| Modifier | Constructor and Description |
|---|---|
protected |
SmsSubmissionResult(int status,
java.lang.String destination,
java.lang.String messageId,
java.lang.String errorText,
java.lang.String clientReference,
java.math.BigDecimal remainingBalance,
java.math.BigDecimal messagePrice,
boolean temporaryError,
SmsSubmissionReachabilityStatus smsSubmissionReachabilityStatus,
java.lang.String network) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClientReference() |
java.lang.String |
getDestination() |
java.lang.String |
getErrorText() |
java.lang.String |
getMessageId() |
java.math.BigDecimal |
getMessagePrice() |
java.lang.String |
getNetwork() |
java.math.BigDecimal |
getRemainingBalance() |
SmsSubmissionReachabilityStatus |
getSmsSubmissionReachabilityStatus() |
int |
getStatus() |
boolean |
getTemporaryError() |
java.lang.String |
toString() |
public static final int STATUS_OK
public static final int STATUS_THROTTLED
public static final int STATUS_MISSING_PARAMS
public static final int STATUS_INVALID_PARAMS
public static final int STATUS_INVALID_CREDENTIALS
public static final int STATUS_INTERNAL_ERROR
public static final int STATUS_INVALID_MESSAGE
public static final int STATUS_NUMBER_BARRED
public static final int STATUS_PARTNER_ACCOUNT_BARRED
public static final int STATUS_PARTNER_QUOTA_EXCEEDED
public static final int STATUS_TOO_MANY_BINDS
public static final int STATUS_ACCOUNT_NOT_HTTP
public static final int STATUS_MESSAGE_TOO_LONG
public static final int STATUS_COMMS_FAILURE
public static final int STATUS_INVALID_SIGNATURE
public static final int STATUS_INVALID_FROM_ADDRESS
public static final int STATUS_INVALID_TTL
public static final int STATUS_NUMBER_UNREACHABKE
public static final int STATUS_TOO_MANY_DESTINATIONS
public static final int STATUS_FACILITY_NOT_ALLOWED
public static final int STATUS_INVALID_MESSAFE_CLASS
protected SmsSubmissionResult(int status, java.lang.String destination, java.lang.String messageId, java.lang.String errorText, java.lang.String clientReference, java.math.BigDecimal remainingBalance, java.math.BigDecimal messagePrice, boolean temporaryError, SmsSubmissionReachabilityStatus smsSubmissionReachabilityStatus, java.lang.String network)
public int getStatus()
public java.lang.String getDestination()
public java.lang.String getMessageId()
public java.lang.String getErrorText()
public java.lang.String getClientReference()
public java.math.BigDecimal getRemainingBalance()
public java.math.BigDecimal getMessagePrice()
public boolean getTemporaryError()
public SmsSubmissionReachabilityStatus getSmsSubmissionReachabilityStatus()
public java.lang.String getNetwork()
public java.lang.String toString()
toString in class java.lang.Object