public class ChatTranscript
extends java.lang.Object
Constructor and Description |
---|
ChatTranscript() |
Modifier and Type | Method and Description |
---|---|
void |
addHistoryMessage(HistoryMessage entry)
Add a
HistoryMessage to users chat transcript. |
HistoryMessage |
getMessage(int i)
Return the HistoryMessage by the given index
|
java.util.List<HistoryMessage> |
getMessage(java.lang.String text)
Returns messages that included search keywords.
|
java.util.List<HistoryMessage> |
getMessages()
Returns all messages.
|
java.util.Collection<HistoryMessage> |
getNumberOfEntries(int number)
Returns a specified number of messages.
|
void |
release()
Clears the Message History if its not needed anymore
|
void |
setList(java.util.List<HistoryMessage> newList)
Set the new List for the chat transcript
|
int |
size()
Return the size of the message list
|
public void addHistoryMessage(HistoryMessage entry)
HistoryMessage
to users chat transcript.entry
- the HistoryMessage to add.public java.util.List<HistoryMessage> getMessages()
public java.util.Collection<HistoryMessage> getNumberOfEntries(int number)
number
- the number of messages to return.public java.util.List<HistoryMessage> getMessage(java.lang.String text)
text
- search keywords.If the search keywords is null, return all message.public void release()
public void setList(java.util.List<HistoryMessage> newList)
newList
- The list with the history messagespublic int size()
public HistoryMessage getMessage(int i)
i
- the index of the history message