Package com.onfido.webhooks
Class WebhookEvent
- java.lang.Object
-
- com.onfido.webhooks.WebhookEvent
-
public class WebhookEvent extends Object
The response from Webhook events.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWebhookEvent(String resourceType, String action, WebhookEventObject object)Instantiates a new WebhookEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAction()Gets the action.WebhookEventObjectgetObject()Gets the event object.StringgetResourceType()Gets resource type.inthashCode()
-
-
-
Constructor Detail
-
WebhookEvent
protected WebhookEvent(String resourceType, String action, WebhookEventObject object)
Instantiates a new WebhookEvent.- Parameters:
resourceType- the resource typeaction- the actionobject- the object
-
-
Method Detail
-
getResourceType
public String getResourceType()
Gets resource type.- Returns:
- the resource type
-
getAction
public String getAction()
Gets the action.- Returns:
- the action
-
getObject
public WebhookEventObject getObject()
Gets the event object.- Returns:
- the WebHookEventObject
-
-