|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBaseDatum
org.starhope.appius.messaging.Message
public class Message
Nested Class Summary | |
---|---|
static class |
Message.Delivery
The means/method of delivery for this message. |
Field Summary | |
---|---|
private String |
body
The body (content) of the message |
private Message.Delivery |
delivery
The means by which the message was (intended to be) delivered. |
private Person |
from
The user sending/originating the message |
private Date |
read
The date and time at which the message was read; or, null if it has not yet been read. |
private Date |
sent
The date and time at which the message was sent. |
private static long |
serialVersionUID
|
private Person |
to
The user who is the intended recipient of the message. |
Constructor Summary | |
---|---|
Message()
|
Method Summary | |
---|---|
static Message |
get(InternalEventObject ieo)
|
static Message |
get(org.json.JSONObject obj)
|
String |
getBody()
|
Message.Delivery |
getDelivery()
|
Person |
getFrom()
|
Date |
getRead()
|
Date |
getSent()
|
Person |
getTo()
|
boolean |
isRead()
|
void |
set(org.json.JSONObject o)
|
void |
setBody(String body)
|
void |
setDelivery(Message.Delivery delivery)
|
void |
setFrom(Person from)
|
void |
setRead(Date read)
|
void |
setSent(Date sent)
|
void |
setTo(Person to)
|
org.json.JSONObject |
toJSON()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private String body
private Message.Delivery delivery
private Person from
private Date read
null
if it has not yet been read.
private Date sent
private Person to
Constructor Detail |
---|
public Message()
Method Detail |
---|
public static Message get(org.json.JSONObject obj) throws RuntimeException, NotFoundException, org.json.JSONException
obj
- the JSON data describing a Message
RuntimeException
- RuntimeException
NotFoundException
- NotFoundException
org.json.JSONException
- JSONExceptionpublic static Message get(InternalEventObject ieo)
ieo
- The Smart Fox Server InternalEventObject describing
a chat message
public String getBody()
public Message.Delivery getDelivery()
public Person getFrom()
public Date getRead()
public Date getSent()
public Person getTo()
public boolean isRead()
public void set(org.json.JSONObject o)
org.starhope.appius.util.BaseDatum#set(org.json.JSONObject)
public void setBody(String body)
body
- the body to setpublic void setDelivery(Message.Delivery delivery)
delivery
- the delivery to setpublic void setFrom(Person from)
from
- the from to setpublic void setRead(Date read)
read
- the read to setpublic void setSent(Date sent)
sent
- the sent to setpublic void setTo(Person to)
to
- the to to setpublic org.json.JSONObject toJSON()
org.starhope.appius.util.BaseDatum#toJSON()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |