Class EventNotification
- java.lang.Object
-
- com.sinch.sdk.domains.numbers.models.webhooks.EventNotification
-
public class EventNotification extends Object
A notification of an event sent to your configured callback URL.
-
-
Constructor Summary
Constructors Constructor Description EventNotification(String eventId, Instant timestamp, String projectId, String resourceId, ResourceType resourceType, EventType eventType, EventStatus status, SmsErrorCode failureCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEventId()EventTypegetEventType()SmsErrorCodegetFailureCode()StringgetProjectId()StringgetResourceId()ResourceTypegetResourceType()EventStatusgetStatus()InstantgetTimestamp()StringtoString()
-
-
-
Constructor Detail
-
EventNotification
public EventNotification(String eventId, Instant timestamp, String projectId, String resourceId, ResourceType resourceType, EventType eventType, EventStatus status, SmsErrorCode failureCode)
- Parameters:
eventId- The ID of the eventtimestamp- The date and time when the callback was created and added to the callbacks queueprojectId- The ID of the project to which the event belongsresourceId- The unique identifier of the resource, depending on the resource type. For example, a phone number, a hosting order ID, or a brand ID.resourceType- The type of the resourceeventType- The type of the eventstatus- The status of the eventfailureCode- If the status is FAILED, a failure code will be provided. For numbers provisioning to SMS platform, there won't be any extra failureCode, as the result is binary. For campaign provisioning-related failures, refer to the list for the possible values.
-
-
Method Detail
-
getEventId
public String getEventId()
-
getTimestamp
public Instant getTimestamp()
-
getProjectId
public String getProjectId()
-
getResourceId
public String getResourceId()
-
getResourceType
public ResourceType getResourceType()
-
getEventType
public EventType getEventType()
-
getStatus
public EventStatus getStatus()
-
getFailureCode
public SmsErrorCode getFailureCode()
-
-