|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.history.HistoryItem
it.dtt.ca.history.Message
public class Message
Class defining a message as an HistoryItem. The message is similar to an e-mail sent from the broadcaster to the user. The user can change the message status, dispose it, change its priority.
Field Summary | |
---|---|
static int |
PRIORITYHIGH
constant indicating a high priority message. |
static int |
PRIORITYLOW
constant indicating a low priority message. |
static int |
PRIORITYNORMAL
constant indicating a normal priority message. |
Fields inherited from class it.dtt.ca.history.HistoryItem |
---|
DISPOSED, READ, UNREAD |
Constructor Summary | |
---|---|
protected |
Message(int id,
java.lang.String message,
int initialPriority,
int status,
java.util.Date date)
Create a Message. |
|
Message(int id,
java.lang.String subject,
java.lang.String body,
int initialPriority,
int status,
java.util.Date date)
Create a Message. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getBody()
Get the body of the message. |
int |
getId()
Get the numeric identifier of the message. |
int |
getPriority()
Get the priority of the message. |
java.lang.String |
getSubject()
Get the subject of the message. |
Methods inherited from class it.dtt.ca.history.HistoryItem |
---|
getDate, getStatus, markDisposed, markRead, markUnread |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PRIORITYLOW
public static final int PRIORITYNORMAL
public static final int PRIORITYHIGH
Constructor Detail |
---|
protected Message(int id, java.lang.String message, int initialPriority, int status, java.util.Date date)
id
- the identifier of this message.message
- the complete message.initialPriority
- the initial priority of the message.status
- the status of the message (@see it.dtt.ca.history.HistoryItem).date
- the date when the message was stored.public Message(int id, java.lang.String subject, java.lang.String body, int initialPriority, int status, java.util.Date date)
id
- the identifier of this message.subject
- the subject of the message.body
- the complete message.initialPriority
- the initial priority of the message.status
- the status of the message (@see it.dtt.ca.history.HistoryItem).date
- the date when the message was stored.Method Detail |
---|
public java.lang.String getSubject()
public java.lang.String getBody()
public int getId()
public int getPriority()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |