ShortMessagepublic class ShortMessage extends Object Represents a short message, text and binary. |
Fields Summary |
---|
protected String | id | protected String | from | protected String | text | protected byte[] | data |
Constructors Summary |
---|
public ShortMessage(String from, String text, byte[] data)Constructor. Creates an Email Message.
this.from = from;
this.text = text;
this.data = data;
// Calculate unique ID
Calendar cal = Calendar.getInstance();
Date date = cal.getTime();
id = from+date.getTime();
|
Methods Summary |
---|
public byte[] | getMessageData()Returns the binary part of this message, if one.
return data;
| public java.lang.String | getMessageText()Returns the text part of this message, if one.
return text;
|
|