|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.skype.api.SkypeObject
com.skype.api.Sms
public class Sms
Wrapper class that includes SMS-specific properties and methods, such as P_BODY and GetTargetPrice. Instantiate SMS instances using Skype.CreateOutgoingSms; post SMS messages to a Conversation using Conversation.PostSMS.
Each SMS can have multiple targets (normalized phone numbers). Note that in a Conversation context, every SMS instance has a corresponding Message instance. Once you've posted an SMS, you can retrieve its corresponding Message instance using Sms.GetPropChatmsgId. That Message instance's P_BODY_XML property contains the SMS message data, such as price, target phone number(s), failure codes, and so forth, which you can parsed out and display in the UI. To put it another way, the object chain goes like this:
@code
Conversation->Message->SMS
Note that SkypeKit SDK supports outgoing SMS messages only. SkypeKit clients, even when logged in with accounts that have SkypeIn numbers, cannot receive SMS messages.
| Nested Class Summary | |
|---|---|
static class |
Sms.CONFIRM_TYPE
|
static class |
Sms.FAILUREREASON
|
class |
Sms.GetBodyChunksResult
|
static class |
Sms.PROPERTY
Properties of the Sms class |
static class |
Sms.SETBODYRESULT
|
class |
Sms.SetSMSBodyResult
|
static interface |
Sms.SmsListener
|
static class |
Sms.STATUS
|
static class |
Sms.TARGETSTATUS
|
static class |
Sms.TYPE
|
| Field Summary |
|---|
| Fields inherited from class com.skype.api.SkypeObject |
|---|
mObjectId, mPropCache, skype |
| Constructor Summary | |
|---|---|
Sms(int oid,
Skype skype)
|
|
| Method Summary | |
|---|---|
byte[] |
GetBinProperty(Sms.PROPERTY prop)
|
Sms.GetBodyChunksResult |
GetBodyChunks()
Retrieves string list of SMS text chunks in first argument, while the second argument contains the number of available characters until creation of the next chunk becomes necessary. |
boolean |
GetBooleanProperty(Sms.PROPERTY prop)
|
int |
GetIntProperty(Sms.PROPERTY prop)
|
java.lang.Object |
GetPropertyAsEnum(int propid)
|
java.lang.String |
GetStrProperty(Sms.PROPERTY prop)
|
int |
GetTargetPrice(java.lang.String target)
Retrieves the amount of Skype credit necessary to send the SMS to a particular recipient. |
Sms.TARGETSTATUS |
GetTargetStatus(java.lang.String target)
Retrieves the send status of this SMS to a particular recipient (P_TARGET_STATUSES) either prior to or after invoking Conversation.PostSMS. |
static int |
moduleID()
|
Sms.SetSMSBodyResult |
SetBody(java.lang.String text)
-The- method for setting the body text of this SMS. |
boolean |
SetTargets(java.lang.String[] numbers)
Sets the recipient(s) of this SMS. |
| Methods inherited from class com.skype.api.SkypeObject |
|---|
close, getOid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sms(int oid,
Skype skype)
| Method Detail |
|---|
public static final int moduleID()
public java.lang.Object GetPropertyAsEnum(int propid)
GetPropertyAsEnum in class SkypeObjectpublic java.lang.String GetStrProperty(Sms.PROPERTY prop)
public int GetIntProperty(Sms.PROPERTY prop)
public boolean GetBooleanProperty(Sms.PROPERTY prop)
public byte[] GetBinProperty(Sms.PROPERTY prop)
public Sms.TARGETSTATUS GetTargetStatus(java.lang.String target)
target - The normalized phone number of the target recipient. public int GetTargetPrice(java.lang.String target)
target - The normalized phone number of the target recipient. public boolean SetTargets(java.lang.String[] numbers)
numbers - Normalized phone number(s) of the intended recipient(s). public Sms.SetSMSBodyResult SetBody(java.lang.String text)
text - Message body text. public Sms.GetBodyChunksResult GetBodyChunks()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||