public class YSms extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
_aggCnt |
protected int |
_aggIdx |
protected String |
_aggSig |
protected int |
_alphab |
protected boolean |
_deliv |
protected String |
_dest |
protected boolean |
_isnew |
protected YMessageBox |
_mbox |
protected int |
_mclass |
protected int |
_mref |
protected int |
_npdu |
protected String |
_orig |
protected ArrayList<YSms> |
_parts |
protected byte[] |
_pdu |
protected int |
_pid |
protected int |
_slot |
protected String |
_smsc |
protected String |
_stamp |
protected byte[] |
_udata |
protected byte[] |
_udh |
| Modifier | Constructor and Description |
|---|---|
protected |
YSms(YMessageBox mbox) |
| Modifier and Type | Method and Description |
|---|---|
int |
addText(String val)
Adds regular text to the SMS.
|
int |
addUnicodeData(ArrayList<Integer> val)
Adds unicode characters to the SMS.
|
int |
convertToUnicode() |
String |
decodeAddress(byte[] addr,
int ofs,
int siz) |
String |
decodeTimeStamp(byte[] exp,
int ofs,
int siz) |
int |
deleteFromSIM()
Delete the SMS from the SIM card.
|
byte[] |
encodeAddress(String addr) |
byte[] |
encodeTimeStamp(String exp) |
byte[] |
encodeUserData() |
int |
generateParts() |
int |
generatePdu() |
int |
get_alphabet() |
int |
get_concatCount() |
int |
get_concatIndex() |
String |
get_concatSignature() |
int |
get_dcs() |
int |
get_msgClass() |
int |
get_msgRef() |
int |
get_partCount() |
ArrayList<YSms> |
get_parts() |
byte[] |
get_pdu() |
int |
get_protocolId() |
String |
get_recipient() |
String |
get_sender()
Returns the reported message sender.
|
int |
get_slot() |
String |
get_smsc() |
String |
get_textData()
Returns the content of the message as a text string.
|
String |
get_timestamp()
Returns the reported message timestamp.
|
ArrayList<Integer> |
get_unicodeData()
Returns the content of the message, as a list of integer unicode values.
|
byte[] |
get_userData() |
byte[] |
get_userDataHeader() |
boolean |
isFlashMessage()
Returns true iff the message is a "Flash" SMS (class 0 message).
|
boolean |
isNew() |
boolean |
isReceived() |
int |
parsePdu(byte[] pdu) |
int |
parseUserDataHeader() |
int |
send()
Sends the SMS to the recipient.
|
int |
set_alphabet(int val) |
int |
set_dcs(int val) |
int |
set_msgClass(int val) |
int |
set_msgRef(int val) |
int |
set_new(boolean val) |
int |
set_parts(ArrayList<YSms> parts) |
int |
set_pdu(byte[] pdu) |
int |
set_protocolId(int val) |
int |
set_received(boolean val) |
int |
set_recipient(String val) |
int |
set_sender(String val) |
int |
set_slot(int val) |
int |
set_smsc(String val) |
int |
set_timestamp(String val) |
int |
set_userData(byte[] val) |
int |
set_userDataHeader(byte[] val) |
int |
udataSize() |
protected YMessageBox _mbox
protected int _slot
protected boolean _deliv
protected boolean _isnew
protected String _smsc
protected int _mref
protected String _orig
protected String _dest
protected int _pid
protected int _alphab
protected int _mclass
protected String _stamp
protected byte[] _udh
protected byte[] _udata
protected int _npdu
protected byte[] _pdu
protected String _aggSig
protected int _aggIdx
protected int _aggCnt
protected YSms(YMessageBox mbox)
mbox - : message boxpublic int get_slot()
public String get_smsc()
public int get_msgRef()
public int get_protocolId()
public String get_recipient()
public boolean isNew()
public boolean isReceived()
public int get_alphabet()
public int get_msgClass()
public int get_dcs()
public byte[] get_userDataHeader()
public byte[] get_userData()
public boolean isFlashMessage()
public String get_timestamp()
public String get_sender()
public String get_textData()
public ArrayList<Integer> get_unicodeData()
public int get_partCount()
public byte[] get_pdu()
public String get_concatSignature()
public int get_concatIndex()
public int get_concatCount()
public int set_slot(int val)
public int set_received(boolean val)
public int set_new(boolean val)
public int set_smsc(String val)
public int set_msgRef(int val)
public int set_sender(String val)
public int set_recipient(String val)
public int set_protocolId(int val)
public int set_alphabet(int val)
public int set_msgClass(int val)
public int set_dcs(int val)
public int set_timestamp(String val)
public int set_userDataHeader(byte[] val)
public int set_userData(byte[] val)
public int convertToUnicode()
public int addText(String val)
val - : the text to be sent in the messagepublic int addUnicodeData(ArrayList<Integer> val)
val - : a list of unicode characters provided as integerspublic int set_pdu(byte[] pdu)
public byte[] encodeAddress(String addr)
public String decodeAddress(byte[] addr, int ofs, int siz)
public byte[] encodeTimeStamp(String exp)
public String decodeTimeStamp(byte[] exp, int ofs, int siz)
public int udataSize()
public byte[] encodeUserData()
public int generateParts()
public int generatePdu()
public int parseUserDataHeader()
public int parsePdu(byte[] pdu)
public int send()
throws YAPI_Exception
YAPI_Exception - on errorpublic int deleteFromSIM()
throws YAPI_Exception
YAPI_Exception - on errorCopyright © 2026. All rights reserved.