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 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) |
protected YMessageBox _mbox
protected int _slot
protected boolean _deliv
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 String get_sender()
public String get_recipient()
public int get_protocolId()
public boolean isReceived()
public int get_alphabet()
public int get_msgClass()
public int get_dcs()
public String get_timestamp()
public byte[] get_userDataHeader()
public byte[] get_userData()
public String get_textData()
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_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
- : an array of special unicode characterspublic 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
Copyright © 2022. All rights reserved.