|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.objectxp.msg.Message
com.objectxp.msg.SmsMessage
com.objectxp.msg.smart.SmartMessage
com.objectxp.msg.smart.Ringtone
public class Ringtone
This class represents a Ringtone for SmartMessaging enabled phones. The Ringtone must be passed in RTX-Format. The Class converts the ringtone definition into a bitstring as described in Nokia's SmartMessaging® V3.0 - specification.
Example:
...
SmsService service = new GsmSmsService();
...
Ringtone rt = new Ringtone();
rt.setRecipient("+41987654321");
rt.setSender("+41123456789");
rt.setMessage("Easy:d=4,o=5,b=63:8g4,32g,32d,32g,32g,32d,2p");
service.sendMessage(rt);
...
| Nested Class Summary | |
|---|---|
class |
Ringtone.Note
|
| Field Summary |
|---|
| Fields inherited from class com.objectxp.msg.SmsMessage |
|---|
CLASS_0, CLASS_1, CLASS_2, CLASS_3, DC_8BIT, DC_DEFAULT, DC_GROUP_DATA, DC_GROUP_GENERAL, DC_GROUP_MSG_WAITING_DISCARD, DC_GROUP_MSG_WAITING_STORE, DC_UCS2, INDICATION_ACTIVE, INDICATION_INACTIVE, INDICATION_TYPE_EMAIL, INDICATION_TYPE_FAX, INDICATION_TYPE_OTHER, INDICATION_TYPE_VOICEMAIL, NO_CLASS |
| Fields inherited from class com.objectxp.msg.Message |
|---|
ACK_TIME, MT_BINARY, MT_STATUS, MT_TEXT, SENDER_TYPE_ALPHA, SENDER_TYPE_GUESS, SENDER_TYPE_NUMBER |
| Constructor Summary | |
|---|---|
Ringtone()
Create a empty Ringtone SmartMessage. |
|
Ringtone(byte[] data)
Create a new ringtone. |
|
Ringtone(SmsService service)
Deprecated. since jSMS 1.7, use Ringtone() |
|
Ringtone(SmsService service,
java.lang.String rtx)
Deprecated. since jSMS 1.7, use Ringtone(String) |
|
Ringtone(java.lang.String rtx)
Create a new Ringtone SmartMessage. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
This method returns the Ringtone in RTX format or null if no RTX tone has ben set yet. |
java.lang.String |
getRtx()
Deprecated. since jSMS 2.1.3, use getMessage() |
void |
setMessage(java.lang.String rtx)
Sets the ringtone to to send to a mobile recipient. |
java.lang.String |
toString()
Constructs a string representation of this Message |
| Methods inherited from class com.objectxp.msg.smart.SmartMessage |
|---|
buildParts, buildParts, getParts |
| Methods inherited from class com.objectxp.msg.Message |
|---|
clone, getProperty, getSenderType, getTimestamp, setID, setProperty, setSenderType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ringtone()
public Ringtone(SmsService service)
throws java.lang.IllegalArgumentException
Ringtone()
java.lang.IllegalArgumentExceptionpublic Ringtone(java.lang.String rtx)
rtx - the ringtone in RTX-Format.public Ringtone(byte[] data)
Please Note that only Temporary and Basic Song Types are supported.
data - the ringing tone data.
java.lang.IllegalArgumentException - if the ringtone data cannot be parsed.
public Ringtone(SmsService service,
java.lang.String rtx)
Ringtone(String)
rtx - the ringtone in RTX-Format.| Method Detail |
|---|
public void setMessage(java.lang.String rtx)
setMessage in class SmsMessagertx - the ringtone in RTX-Format.public java.lang.String getMessage()
getMessage in class SmsMessageSmsMessage.getUserData()public java.lang.String getRtx()
getMessage()
public java.lang.String toString()
Message
toString in class SmsMessage
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||