|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.discussionboard.MessageCounts
public class MessageCounts
This object represents aggregate data for discussion board messages It contains a total count of messages and a count of read messages. There is a convenience method that will give you the count of unread messages by taking the total and subtracting the number of read messages. This object is used to store counts for: a) All messages in a forum b) All messages in a thread c) An arbitrary list of messages This is not an actual persistant object, the data is generated by queries.
| Constructor Summary | |
|---|---|
MessageCounts()
|
|
| Method Summary | |
|---|---|
boolean |
areAllMsgsRead()
Indicates whether all of the messages represented in this count are read. |
int |
getReadCount()
Gets the number of read messages. |
int |
getTotalCount()
Gets the total number of messages. |
int |
getUnreadCount()
Gets the number of unread messages. |
void |
setReadCount(int readCount)
Sets the number of read messages |
void |
setTotalCount(int totalCount)
Sets the total number of messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageCounts()
| Method Detail |
|---|
public int getReadCount()
public void setReadCount(int readCount)
readCount - public int getTotalCount()
public void setTotalCount(int totalCount)
totalCount - public int getUnreadCount()
public boolean areAllMsgsRead()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||