blueme.messenger.common
Interface iMSG

All Known Implementing Classes:
MSG

public interface iMSG

Interface for the MSG class


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?
 java.lang.String serialize()
          Serialize data.
 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.
 void unserialize(java.lang.String data)
          Unserialize data
 

Method Detail

isOutgoing

boolean isOutgoing()
Is this message outgoing?


isIncoming

boolean isIncoming()
Is this message incoming?


isSystem

boolean isSystem()
Is this a system message?


isText

boolean isText()
Is this a text message?


getP2P

boolean getP2P()
If true, this message may only be sent directly from one phone to the next. In other words, this will only allow us to use Bluetooth.


setP2P

void setP2P(boolean flag)
If true, this message may only be sent directly from one phone to the next. In other words, this will only allow us to use Bluetooth.


setOutgoing

void setOutgoing(boolean outgoing)
Define if this message is outgoing.


setIncoming

void setIncoming(boolean incoming)
Define if this message is incoming.


setSystem

void setSystem(boolean system)
Define if this message is a system message.


setText

void setText(boolean text)
Define if this message is a text message.


getUnreadFlag

boolean getUnreadFlag()
Is this message unread?


setUnreadFlag

void setUnreadFlag(boolean flag)
Define if this message is unread or not.


setNick

void setNick(java.lang.String nick)
Set senders nick.


setUidSender

void setUidSender(java.lang.String uid)
                  throws java.lang.StringIndexOutOfBoundsException
Set senders UID.

Throws:
java.lang.StringIndexOutOfBoundsException

setUidReceiver

void setUidReceiver(java.lang.String uid)
                    throws java.lang.StringIndexOutOfBoundsException
Set receivers UID.

Throws:
java.lang.StringIndexOutOfBoundsException

getNick

java.lang.String getNick()
                         throws java.lang.NullPointerException
Get senders nick.

Throws:
java.lang.NullPointerException

getUidSender

java.lang.String getUidSender()
                              throws java.lang.NullPointerException
Get senders UID.

Throws:
java.lang.NullPointerException

getUidReceiver

java.lang.String getUidReceiver()
                                throws java.lang.NullPointerException
Get receivers UID.

Throws:
java.lang.NullPointerException

getMessage

java.lang.String getMessage()
                            throws java.lang.NullPointerException
Get message content.

Throws:
java.lang.NullPointerException

setMessage

void setMessage(java.lang.String message)
                throws java.lang.StringIndexOutOfBoundsException
Set message content.

Throws:
java.lang.StringIndexOutOfBoundsException

getTime

long getTime()
             throws java.lang.NullPointerException
Get message creation time.

Throws:
java.lang.NullPointerException

setTime

void setTime(long time)
Set message creation time.


getLocalSaveTime

long getLocalSaveTime()
                      throws java.lang.NullPointerException
Get message local creation time.

Throws:
java.lang.NullPointerException

setLocalSaveTime

void setLocalSaveTime(long time)
Set message local creation time.


setCom

void setCom(int index)
            throws java.lang.IndexOutOfBoundsException
Set index of last communication module that handled this message.

Throws:
java.lang.IndexOutOfBoundsException

getCom

int getCom()
           throws java.lang.NullPointerException
Get index of last communication module that handled this message.

Throws:
java.lang.NullPointerException

getVersion

int getVersion()
Get MSG class version.


serialize

java.lang.String serialize()
Serialize data.


unserialize

void unserialize(java.lang.String data)
                 throws java.lang.IllegalArgumentException
Unserialize data

Throws:
java.lang.IllegalArgumentException