cmessage.html

来自「gsm modem 发送短信 闪信 WAP PUSH开发包」· HTML 代码 · 共 1,807 行 · 第 1/4 页

HTML
1,807
字号
protected java.util.Date <B>date</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="dispatchDate"><!-- --></A><H3>
dispatchDate</H3>
<PRE>
protected java.util.Date <B>dispatchDate</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="originator"><!-- --></A><H3>
originator</H3>
<PRE>
protected java.lang.String <B>originator</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="recipient"><!-- --></A><H3>
recipient</H3>
<PRE>
protected java.lang.String <B>recipient</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="text"><!-- --></A><H3>
text</H3>
<PRE>
protected java.lang.String <B>text</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="messageEncoding"><!-- --></A><H3>
messageEncoding</H3>
<PRE>
protected int <B>messageEncoding</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="dateOriginal"><!-- --></A><H3>
dateOriginal</H3>
<PRE>
protected java.util.Date <B>dateOriginal</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="dateReceived"><!-- --></A><H3>
dateReceived</H3>
<PRE>
protected java.util.Date <B>dateReceived</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="mpRefNo"><!-- --></A><H3>
mpRefNo</H3>
<PRE>
protected int <B>mpRefNo</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="mpMaxNo"><!-- --></A><H3>
mpMaxNo</H3>
<PRE>
protected int <B>mpMaxNo</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="mpSeqNo"><!-- --></A><H3>
mpSeqNo</H3>
<PRE>
protected int <B>mpSeqNo</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="mpMemIndex"><!-- --></A><H3>
mpMemIndex</H3>
<PRE>
protected java.lang.String <B>mpMemIndex</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="validityPeriod"><!-- --></A><H3>
validityPeriod</H3>
<PRE>
protected int <B>validityPeriod</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="statusReport"><!-- --></A><H3>
statusReport</H3>
<PRE>
protected boolean <B>statusReport</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="flashSms"><!-- --></A><H3>
flashSms</H3>
<PRE>
protected boolean <B>flashSms</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="srcPort"><!-- --></A><H3>
srcPort</H3>
<PRE>
protected int <B>srcPort</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="dstPort"><!-- --></A><H3>
dstPort</H3>
<PRE>
protected int <B>dstPort</B></PRE>
<DL>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="CMessage(int, java.util.Date, java.lang.String, java.lang.String, java.lang.String, int)"><!-- --></A><H3>
CMessage</H3>
<PRE>
public <B>CMessage</B>(int&nbsp;type,
                java.util.Date&nbsp;date,
                java.lang.String&nbsp;originator,
                java.lang.String&nbsp;recipient,
                java.lang.String&nbsp;text,
                int&nbsp;memIndex)</PRE>
<DL>
<DD>Default constructor of the class.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the type (incoming/outgoing) of the message.<DD><CODE>date</CODE> - the creation date of the message.<DD><CODE>originator</CODE> - the originator's number. Applicable only for incoming messages.<DD><CODE>recipient</CODE> - the recipient's number. Applicable only for outgoing messages.<DD><CODE>text</CODE> - the actual text of the message.<DD><CODE>memIndex</CODE> - the index of the memory location in the GSM device where                                                this message is stored. Applicable only for incoming messages.                <br><br>Notes:<br>                <ul>                        <li>Phone numbers are represented in their international format (e.g. +306974... for Greece).</li>                        <li>"Recipient" may be an entry from the phonebook.</li>                </ul></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="getType()"><!-- --></A><H3>
getType</H3>
<PRE>
public int <B>getType</B>()</PRE>
<DL>
<DD>Returns the type of the message. Type is either incoming or outgoing, as denoted                by the class' static values INCOMING and OUTGOING.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the type of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="getId()"><!-- --></A><H3>
getId</H3>
<PRE>
public java.lang.String <B>getId</B>()</PRE>
<DL>
<DD>Returns the id of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the id of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="getRefNo()"><!-- --></A><H3>
getRefNo</H3>
<PRE>
public int <B>getRefNo</B>()</PRE>
<DL>
<DD>Returns the Reference Number of the message.                The Reference Number is returned from the SMSC upon succesful dispatch of a message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the Reference Number of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="getMemIndex()"><!-- --></A><H3>
getMemIndex</H3>
<PRE>
public int <B>getMemIndex</B>()</PRE>
<DL>
<DD>Returns the memory index of the GSM device, where the message is stored.                Applicable only for incoming messages.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the memory index of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="getDate()"><!-- --></A><H3>
getDate</H3>
<PRE>
public java.util.Date <B>getDate</B>()</PRE>
<DL>
<DD>Returns the date of the message. For incoming messages, this is the sent date.                For outgoing messages, this is the creation date.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the date of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="getOriginator()"><!-- --></A><H3>
getOriginator</H3>
<PRE>
public java.lang.String <B>getOriginator</B>()</PRE>
<DL>
<DD>Returns the Originator of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the originator of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="getRecipient()"><!-- --></A><H3>
getRecipient</H3>
<PRE>
public java.lang.String <B>getRecipient</B>()</PRE>
<DL>
<DD>Returns the Recipient of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the recipient of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="getText()"><!-- --></A><H3>
getText</H3>
<PRE>
public java.lang.String <B>getText</B>()</PRE>
<DL>
<DD>Returns the actual text of the message (ASCII).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the text of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="getDispatchDate()"><!-- --></A><H3>
getDispatchDate</H3>
<PRE>
public java.util.Date <B>getDispatchDate</B>()</PRE>
<DL>
<DD>Returns the dispatch date of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>The dispatch date of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="getDateOriginal()"><!-- --></A><H3>
getDateOriginal</H3>
<PRE>
public java.util.Date <B>getDateOriginal</B>()</PRE>
<DL>
<DD>Returns the date of the original message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the date of the original message.</DL>
</DD>
</DL>
<HR>

<A NAME="getDateReceived()"><!-- --></A><H3>
getDateReceived</H3>
<PRE>
public java.util.Date <B>getDateReceived</B>()</PRE>
<DL>
<DD>Returns the date on which the original message was received by recipient.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the date of receipt.</DL>
</DD>
</DL>
<HR>

<A NAME="getMessageEncoding()"><!-- --></A><H3>
getMessageEncoding</H3>
<PRE>
public int <B>getMessageEncoding</B>()</PRE>
<DL>
<DD>Returns the encoding method of the message. Returns of the constants                MESSAGE_ENCODING_7BIT, MESSAGE_ENCODING_8BIT, MESSAGE_ENCODING_UNICODE.                This is meaningful only when working in PDU mode.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the message encoding.</DL>
</DD>
</DL>
<HR>

<A NAME="getMpRefNo()"><!-- --></A><H3>
getMpRefNo</H3>
<PRE>
public int <B>getMpRefNo</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getMpMaxNo()"><!-- --></A><H3>
getMpMaxNo</H3>
<PRE>
public int <B>getMpMaxNo</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getMpSeqNo()"><!-- --></A><H3>
getMpSeqNo</H3>
<PRE>
public int <B>getMpSeqNo</B>()</PRE>
<DL>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?