|
||||||||||
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 iMSG
java.lang.NullPointerException
public java.lang.String getUidSender() throws java.lang.NullPointerException
iMSG
getUidSender
in interface iMSG
java.lang.NullPointerException
public int getCom() throws java.lang.NullPointerException
iMSG
getCom
in interface iMSG
java.lang.NullPointerException
public boolean getUnreadFlag()
iMSG
getUnreadFlag
in interface iMSG
public java.lang.String getMessage() throws java.lang.NullPointerException
iMSG
getMessage
in interface iMSG
java.lang.NullPointerException
public java.lang.String getNick() throws java.lang.NullPointerException
iMSG
getNick
in interface iMSG
java.lang.NullPointerException
public boolean getP2P()
iMSG
getP2P
in interface iMSG
public long getTime() throws java.lang.NullPointerException
iMSG
getTime
in interface iMSG
java.lang.NullPointerException
public boolean isIncoming()
iMSG
isIncoming
in interface iMSG
public boolean isOutgoing()
iMSG
isOutgoing
in interface iMSG
public boolean isSystem()
iMSG
isSystem
in interface iMSG
public boolean isText()
iMSG
isText
in interface iMSG
public void setUidReceiver(java.lang.String uid) throws java.lang.StringIndexOutOfBoundsException
iMSG
setUidReceiver
in interface iMSG
java.lang.StringIndexOutOfBoundsException
public void setUidSender(java.lang.String uid) throws java.lang.StringIndexOutOfBoundsException
iMSG
setUidSender
in interface iMSG
java.lang.StringIndexOutOfBoundsException
public void setCom(int index) throws java.lang.IndexOutOfBoundsException
iMSG
setCom
in interface iMSG
java.lang.IndexOutOfBoundsException
public void setUnreadFlag(boolean flag)
iMSG
setUnreadFlag
in interface iMSG
public void setIncoming(boolean incoming)
iMSG
setIncoming
in interface iMSG
public void setMessage(java.lang.String message) throws java.lang.StringIndexOutOfBoundsException
iMSG
setMessage
in interface iMSG
java.lang.StringIndexOutOfBoundsException
public void setNick(java.lang.String nick)
iMSG
setNick
in interface iMSG
public void setOutgoing(boolean outgoing)
iMSG
setOutgoing
in interface iMSG
public void setP2P(boolean flag)
iMSG
setP2P
in interface iMSG
public void setSystem(boolean system)
iMSG
setSystem
in interface iMSG
public void setText(boolean text)
iMSG
setText
in interface iMSG
public void setTime(long time)
iMSG
setTime
in interface iMSG
public int getVersion()
iMSG
getVersion
in interface iMSG
public long getLocalSaveTime() throws java.lang.NullPointerException
iMSG
getLocalSaveTime
in interface iMSG
java.lang.NullPointerException
public 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 |