public class GsmStatus extends java.lang.Object implements SmsStatus
SmsMessage.requestStatusReport(boolean)
,
StatusReportMessage.getStatus()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
CONGESTION |
static int |
CONNECTION_REJECTED_BY_SMSC |
static int |
ERROR_IN_RECIPIENT |
static int |
INCOMPATIBLE_DESTINATION |
static int |
NO_INTERWORKING_AVAILABLE |
static int |
NO_RESPONSE_FROM_RECIPIENT |
static int |
NOT_OPTIONABLE |
static int |
QUALITY_NOT_AVAILABLE |
static int |
QUALITY_OF_SERVICE_NA |
static int |
RECIPIENT_BUSY |
static int |
REMOTE_PROCEDURE_ERROR |
static int |
SERVICE_REJECTED |
static int |
SMS_DELETED_BY_ORIGINATOR |
static int |
SMS_DELETED_BY_SMSC_ADMIN |
static int |
SMS_FORWARDED_TO_RECIPIENT |
static int |
SMS_NOT_EXISTS |
static int |
SMS_RECEIVED_BY_RECIPIENT |
static int |
SMS_REPLACED_BY_SC |
static int |
SMS_VALIDITY_EXPIRED |
static int |
UNKNOWN_ERROR |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDischargeTime()
Get the time at which a previously submitted SMS was successfully
delivered to or attempted to deliver to the recipient or disposed of
by the SMSC.
|
int |
getReasonCode()
Get the status code for this object.
|
int |
getStatusValue()
Get the status code for this object.
|
boolean |
isCancelled()
Returns true if the indicated message has been cancelled by a previous call
to
SmsService.cancel(Message) . |
boolean |
isDeleted()
Returns true if the indicated message has been deleted.
|
boolean |
isDelivered()
Check if the Message has been sent sucessfuly.
|
boolean |
isPermanentError()
Returns true if a permanent error has occured.
|
boolean |
isTemporaryError()
Returns true if a temporary error has occured.
|
boolean |
isTransactionCompleted()
Returns true if the transaction has completed without error.
|
boolean |
stillTryingTransferMessage()
Returns true if the Message could not yet be delivered.
|
java.lang.String |
toString()
Returns a String representation of this GsmStatus (e.g.
|
public static final int SMS_RECEIVED_BY_RECIPIENT
public static final int SMS_FORWARDED_TO_RECIPIENT
public static final int SMS_REPLACED_BY_SC
public static final int CONGESTION
public static final int RECIPIENT_BUSY
public static final int NO_RESPONSE_FROM_RECIPIENT
public static final int SERVICE_REJECTED
public static final int QUALITY_NOT_AVAILABLE
public static final int ERROR_IN_RECIPIENT
public static final int REMOTE_PROCEDURE_ERROR
public static final int INCOMPATIBLE_DESTINATION
public static final int CONNECTION_REJECTED_BY_SMSC
public static final int NOT_OPTIONABLE
public static final int QUALITY_OF_SERVICE_NA
public static final int NO_INTERWORKING_AVAILABLE
public static final int SMS_VALIDITY_EXPIRED
public static final int SMS_DELETED_BY_ORIGINATOR
public static final int SMS_DELETED_BY_SMSC_ADMIN
public static final int SMS_NOT_EXISTS
public static final int UNKNOWN_ERROR
public int getStatusValue()
SMS_RECEIVED_BY_RECIPIENT
.public int getReasonCode()
SMS_RECEIVED_BY_RECIPIENT
.public boolean isTransactionCompleted()
public boolean isDelivered()
SmsStatus
isDelivered
in interface SmsStatus
public boolean isPermanentError()
isPermanentError
in interface SmsStatus
public boolean isTemporaryError()
public boolean stillTryingTransferMessage()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Date getDischargeTime()
SmsStatus
getDischargeTime
in interface SmsStatus
public boolean isCancelled()
SmsStatus
SmsService.cancel(Message)
.isCancelled
in interface SmsStatus
object XP, Inc. © 2000-2013. All rights reserved object XP