Package com.vonage.client.voice
Class AnswerWebhook
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.AnswerWebhook
- All Implemented Interfaces:
Jsonable
Maps the fields for data sent to the
answer_url configured in your voice application.
See
the webhook reference for details.- Since:
- 8.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnswerWebhookConstructs an instance, populating this class's fields from the JSON string.Unique identifier for this conversation.A custom data map, optionally passed as parameter on thecallServermethod when a call is initiated from an application using the Client SDK.The type of endpoint that answered the call.getFrom()The number or user that made the call.Regional API endpoint which should be used to control the call with REST API; see the full list of regions.getTo()The user or number that answered the call.getUuid()Unique identifier for this call.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
-
AnswerWebhook
protected AnswerWebhook()
-
-
Method Details
-
getEndpointType
The type of endpoint that answered the call.- Returns:
- The endpoint type as an enum, or
nullif unknown. - Since:
- 8.12.0
-
getTo
The user or number that answered the call. This is the virtual number linked to in your application.- Returns:
- The answering user or number in E.164 format.
-
getFrom
The number or user that made the call. This could be a landline or mobile number or another virtual number if the call was made programmatically. It could also be a username if the call was made by a user.- Returns:
- The calling user or number in E.164 format, or
nullif absent.
-
getConversationUuid
Unique identifier for this conversation. Starts withCON-followed by a UUID.- Returns:
- The conversation ID as a string.
-
getUuid
Unique identifier for this call.- Returns:
- The call ID as a UUID.
-
getRegionUrl
Regional API endpoint which should be used to control the call with REST API; see the full list of regions.- Returns:
- The configured region URL.
-
getCustomData
A custom data map, optionally passed as parameter on thecallServermethod when a call is initiated from an application using the Client SDK.- Returns:
- The custom data object as a Map, or
nullif absent / not applicable.
-
fromJson
Constructs an instance, populating this class's fields from the JSON string.- Parameters:
json- The JSON payload as a string.- Returns:
- A new instance of this class.
-