Package com.vonage.client.conversations
Class Event
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.conversations.Event
- All Implemented Interfaces:
Jsonable
- Direct Known Subclasses:
AudioEarmuffOffEvent,AudioEarmuffOnEvent,AudioMuteOffEvent,AudioMuteOnEvent,AudioPlayDoneEvent,AudioPlayEvent,AudioPlayStopEvent,AudioRecordEvent,AudioRecordStopEvent,AudioSayDoneEvent,AudioSayEvent,AudioSayStopEvent,ConversationUpdatedEvent,EventDeleteEvent,GenericEvent,MessageDeliveredEvent,MessageEvent,MessageRejectedEvent,MessageSeenEvent,MessageSubmittedEvent,MessageUndeliverableEvent
Events are actions that occur within a conversation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEvent.Builder<E extends Event,B extends Event.Builder<? extends E, ? extends B>> Builder for constructing an event request's parameters. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
Event
protected Event()
-
-
Method Details
-
getId
Event id. This is a progressive integer.- Returns:
- The event ID as an integer, or
nullif unknown.
-
getType
Type of event.- Returns:
- The event type as an enum.
-
getFrom
Member ID this event was sent from.- Returns:
- The member ID, or
nullif unspecified.
-
getTimestamp
Time of creation.- Returns:
- The event timestamp, or
nullif unknown.
-
getFromUser
Details about the user that initiated the event.- Returns:
- The embedded
from_userobject, ornullif absent.
-
getFromMember
Member that initiated the event. Only theidfield will be present.- Returns:
- The embedded
from_memberobject, ornullif absent.
-