|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Hashtable
blueme.messenger.common.SerUnser
blueme.messenger.common.MSG
public class MSG
This class will carry information about a message (incoming or outgoing)
| Field Summary |
|---|
| Fields inherited from interface blueme.messenger.common.iConstants |
|---|
ADMIN_UID, APP_TITLE, BLUETOOTH_INDEX, BLUETOOTH_LENGTH, BLUETOOTH_POSTFIX, BLUETOOTH_PREFIX, COM_OBJECTS, DISCOVERY_SLEEP, GPRS_INDEX, MAX_REDIRECTS, MSG_MAX_COUNT, MSG_MAX_LENGTH, NICK_MAX_LENGTH, PID_LENGTH, SMS_PUSH_PORT, UID_LENGTH |
| Constructor Summary | |
|---|---|
MSG()
Creates a new instance of MSG |
|
| Method Summary | |
|---|---|
int |
getCom()
Get index of last communication module that handled this message. |
long |
getLocalSaveTime()
Get message local creation time. |
java.lang.String |
getMessage()
Get message content. |
java.lang.String |
getNick()
Get senders nick. |
boolean |
getP2P()
If true, this message may only be sent directly from one phone to the next. |
long |
getTime()
Get message creation time. |
java.lang.String |
getUidReceiver()
Get receivers UID. |
java.lang.String |
getUidSender()
Get senders UID. |
boolean |
getUnreadFlag()
Is this message unread? |
int |
getVersion()
Get MSG class version. |
boolean |
isIncoming()
Is this message incoming? |
boolean |
isOutgoing()
Is this message outgoing? |
boolean |
isSystem()
Is this a system message? |
boolean |
isText()
Is this a text message? |
void |
setCom(int index)
Set index of last communication module that handled this message. |
void |
setIncoming(boolean incoming)
Define if this message is incoming. |
void |
setLocalSaveTime(long time)
Set message local creation time. |
void |
setMessage(java.lang.String message)
Set message content. |
void |
setNick(java.lang.String nick)
Set senders nick. |
void |
setOutgoing(boolean outgoing)
Define if this message is outgoing. |
void |
setP2P(boolean flag)
If true, this message may only be sent directly from one phone to the next. |
void |
setSystem(boolean system)
Define if this message is a system message. |
void |
setText(boolean text)
Define if this message is a text message. |
void |
setTime(long time)
Set message creation time. |
void |
setUidReceiver(java.lang.String uid)
Set receivers UID. |
void |
setUidSender(java.lang.String uid)
Set senders UID. |
void |
setUnreadFlag(boolean flag)
Define if this message is unread or not. |
| Methods inherited from class blueme.messenger.common.SerUnser |
|---|
get, put, serialize, unserialize |
| Methods inherited from class java.util.Hashtable |
|---|
clear, contains, containsKey, elements, isEmpty, keys, rehash, remove, size, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface blueme.messenger.common.iMSG |
|---|
serialize, unserialize |
| Constructor Detail |
|---|
public MSG()
| Method Detail |
|---|
public java.lang.String getUidReceiver()
throws java.lang.NullPointerException
iMSG
getUidReceiver in interface iMSGjava.lang.NullPointerException
public java.lang.String getUidSender()
throws java.lang.NullPointerException
iMSG
getUidSender in interface iMSGjava.lang.NullPointerException
public int getCom()
throws java.lang.NullPointerException
iMSG
getCom in interface iMSGjava.lang.NullPointerExceptionpublic boolean getUnreadFlag()
iMSG
getUnreadFlag in interface iMSG
public java.lang.String getMessage()
throws java.lang.NullPointerException
iMSG
getMessage in interface iMSGjava.lang.NullPointerException
public java.lang.String getNick()
throws java.lang.NullPointerException
iMSG
getNick in interface iMSGjava.lang.NullPointerExceptionpublic boolean getP2P()
iMSG
getP2P in interface iMSG
public long getTime()
throws java.lang.NullPointerException
iMSG
getTime in interface iMSGjava.lang.NullPointerExceptionpublic boolean isIncoming()
iMSG
isIncoming in interface iMSGpublic boolean isOutgoing()
iMSG
isOutgoing in interface iMSGpublic boolean isSystem()
iMSG
isSystem in interface iMSGpublic boolean isText()
iMSG
isText in interface iMSG
public void setUidReceiver(java.lang.String uid)
throws java.lang.StringIndexOutOfBoundsException
iMSG
setUidReceiver in interface iMSGjava.lang.StringIndexOutOfBoundsException
public void setUidSender(java.lang.String uid)
throws java.lang.StringIndexOutOfBoundsException
iMSG
setUidSender in interface iMSGjava.lang.StringIndexOutOfBoundsException
public void setCom(int index)
throws java.lang.IndexOutOfBoundsException
iMSG
setCom in interface iMSGjava.lang.IndexOutOfBoundsExceptionpublic void setUnreadFlag(boolean flag)
iMSG
setUnreadFlag in interface iMSGpublic void setIncoming(boolean incoming)
iMSG
setIncoming in interface iMSG
public void setMessage(java.lang.String message)
throws java.lang.StringIndexOutOfBoundsException
iMSG
setMessage in interface iMSGjava.lang.StringIndexOutOfBoundsExceptionpublic void setNick(java.lang.String nick)
iMSG
setNick in interface iMSGpublic void setOutgoing(boolean outgoing)
iMSG
setOutgoing in interface iMSGpublic void setP2P(boolean flag)
iMSG
setP2P in interface iMSGpublic void setSystem(boolean system)
iMSG
setSystem in interface iMSGpublic void setText(boolean text)
iMSG
setText in interface iMSGpublic void setTime(long time)
iMSG
setTime in interface iMSGpublic int getVersion()
iMSG
getVersion in interface iMSG
public long getLocalSaveTime()
throws java.lang.NullPointerException
iMSG
getLocalSaveTime in interface iMSGjava.lang.NullPointerExceptionpublic void setLocalSaveTime(long time)
iMSG
setLocalSaveTime in interface iMSG
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||