public final class SMS extends Object
https://developer.skype.com/Docs/DevNotes?action=AttachFile&do=get&target=DevNotes-2.5beta.pdf| Modifier and Type | Class and Description |
|---|---|
static class |
SMS.FailureReason
Enumeration of SMS failure reason.
|
static class |
SMS.Status
Enumeration of SMS Status.
|
static class |
SMS.TargetStatus
Inner class to determine the target status.
|
static class |
SMS.Type
Enumeration of SMS types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this SMS message.
|
boolean |
equals(Object compared)
Overridden to compare ID of SMS objects.
|
String[] |
getAllContentChunks()
When an SMS message is too large it is split up in multiple SMS messages.
|
String[] |
getAllTargetNumbers()
Return an array of phonenumbers to send this SMS to.
|
SMS.TargetStatus[] |
getAllTargetStatuses()
Return an array of Status for each target phone number.
|
String |
getContent()
Return the body of this SMS message.
|
String |
getCurrencyUnit()
Return the costs currency.
|
Object |
getData(String name)
Returns the user data to which this object maps to the specified by the name.
|
SMS.FailureReason |
getFailureReason()
Return the failure reason of sending this SMS.
|
String |
getId()
Return the unique ID of this SMS object.
|
BigDecimal |
getPrice()
Return the costs of this SMS to send.
|
String |
getReplyToNumber()
The phone number to reply to if an SMS is received.
|
SMS.Status |
getStatus()
Return the status of this SMS message.
|
Date |
getTime()
Return the timestamp of this SMS.
|
SMS.Type |
getType()
Return the type of this SMS message.
|
int |
hashCode()
Overridden to use ID as the hashcode.
|
boolean |
isCheckedFailure()
Check if SMS is seen.
|
void |
setAllTargetNumbers(String[] newValues)
Set the target phone numbers.
|
void |
setData(String name,
Object userData)
Associates the specified user data with the specified name in this object.
|
void |
setReplyToNumber(String newValue)
Set the phone number the other party can reply to.
|
void |
toCheckedFailure()
Set SMS IS_FAILED_UNSEEN to TRUE.
|
public int hashCode()
public boolean equals(Object compared)
public String getId()
public String getContent() throws SkypeException
SkypeException - when connection to Skype client has gone bad.public SMS.Type getType() throws SkypeException
SkypeException - when connection to Skype client has gone bad.public SMS.Status getStatus() throws SkypeException
SkypeException - when connection to Skype client has gone bad.public SMS.FailureReason getFailureReason() throws SkypeException
SkypeException - when connection to Skype client has gone bad.public boolean isCheckedFailure()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.public void toCheckedFailure()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.public Date getTime() throws SkypeException
SkypeException - when the connection to the Skype client has gone bad.public BigDecimal getPrice() throws SkypeException
SkypeException - when the connection to the Skype client has gone bad.public String getCurrencyUnit() throws SkypeException
SkypeException - when the connection to the Skype client has gone bad.public String getReplyToNumber() throws SkypeException
SkypeException - when the connection to the Skype client has gone bad.public void setReplyToNumber(String newValue) throws SkypeException
newValue - phone number to reply to.SkypeException - when the connection to the Skype client has gone bad.public String[] getAllTargetNumbers() throws SkypeException
SkypeException - when the connection to the Skype client has gone bad.public void setAllTargetNumbers(String[] newValues) throws SkypeException
newValues - the numbers to set as target.SkypeException - when the connection to the Skype client has gone bad.public SMS.TargetStatus[] getAllTargetStatuses() throws SkypeException
SkypeException - when the connection to the Skype client has gone bad.public String[] getAllContentChunks() throws SkypeException
SkypeException - when the connection to the Skype client has gone bad.public void delete()
throws SkypeException
SkypeException - when the connection to the Skype client has gone bad.public final Object getData(String name)
name - name whose associated user data is to be returned.Map.get(Object)public final void setData(String name, Object userData)
name - name with which the specified user data is to be associated.userData - user data to be associated with the specified name.Map.put(Object, Object)Copyright © 2013. All Rights Reserved.