public class SwarmMessage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
SwarmUser |
from
The SwarmUser that sent this SwarmMessage.
|
int |
id
The unique identification number for this SwarmMessage.
|
java.lang.String |
message
The String contents of this SwarmMessage.
|
long |
timestamp
The timestamp that indicates when this SwarmMessage was sent.
|
Constructor and Description |
---|
SwarmMessage() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getSentDate()
Get the date that this SwarmMessage was sent.
|
static void |
sendMessage(int to,
java.lang.String message,
SwarmMessageThread.SentMessageCB cb)
Send a message from this user to another user.
|
public int id
public SwarmUser from
public java.lang.String message
public long timestamp
public java.util.Date getSentDate()
public static void sendMessage(int to, java.lang.String message, SwarmMessageThread.SentMessageCB cb)
to
- The Swarm userId of the user that the message is being sent to.message
- The contents of the message being sent.cb
- The SentMessageCB callback for this request. On