|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gbanga.api.Message
public class Message
A message is a textual information sent from a sender to a recipient.
For the JSON object serialization, the field names are used. Eg.
{
id: 82340,
sentTime: 1142982000000,
read: false,
sender: { name: "some name" }
}
Fields annotated with PrimaryKey are used, if not the whole object is sent. HideIfNull indicates that the field is not sent at all, if the value is not set.
| Field Summary | |
|---|---|
java.lang.String |
content
The verbose content. |
long |
id
A unique id for this message. |
boolean |
incoming
Indicates if the message is incoming ( true) or outgoing (false). |
boolean |
read
A flag to indicate if the message was read by the recipient, assumably. |
Entity |
receiver
The receiving Player or Gbangoo. |
Entity |
sender
The sending Player or Gbangoo. |
long |
sentTime
The timestamp when the message was sent. |
Cell |
target
The receiving cell (if it is a cell shout). |
| Constructor Summary | |
|---|---|
Message()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String content
@PrimaryKey public long id
public boolean incoming
true) or outgoing (false).
public boolean read
@HideIfNull public Entity receiver
Player or Gbangoo.
@HideIfNull public Entity sender
Player or Gbangoo.
public long sentTime
@HideIfNull public Cell target
| Constructor Detail |
|---|
public Message()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||