|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InteractionChatEvent
An event reporting a new message in a chat session. When a party sends a new message, it will be notified to all the listeners with this event.
InteractionChatListener| Nested Class Summary | |
|---|---|
static class |
InteractionChatEvent.Type
Constants for possible types of InteractionChatEvent |
| Method Summary | |
|---|---|
java.util.Date |
getDate()
Returns the date when this event was sent. |
InteractionChatEvent.Type |
getEventType()
Returns the type of this event. |
InteractionChat |
getInteractionChat()
Returns the InteractionChat to which this event is related. |
int |
getNumber()
Returns the index of this event in the range [0..n] where 0 is the first event since the session creation and n the last event received. |
ChatParty |
getParty()
Returns the party which has generated this event. |
java.lang.String |
getText()
Returns the event's text message for event of type. |
boolean |
treatAsSystem()
Returns true if this message was generated by the system. |
| Methods inherited from interface com.genesyslab.ail.event.ObjectEvent |
|---|
getSource |
| Method Detail |
|---|
int getNumber()
int.InteractionChatEvent.Type getEventType()
InteractionChatEvent.Type.java.util.Date getDate()
Date.ChatParty getParty()
ChatParty.boolean treatAsSystem()
java.lang.String getText()
InteractionChatEvent.Type.PUSH_URL: the string of the pushed URL.InteractionChatEvent.Type.MESSAGE_RECEIVED or InteractionChatEvent.Type.ERROR_RECEIVED: the error's message body.
String.InteractionChat getInteractionChat()
InteractionChat to which this event is related.
This method returns the same as getSource().
InteractionChat.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||