Class WebhookImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.WebhookImpl
- All Implemented Interfaces:
Webhook
-
Nested Class Summary
Nested classes/interfaces inherited from interface pw.chew.clickup4j.api.entities.Webhook
Webhook.Health
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondelete()
Delete this webhook.@NotNull ClickUp4j
This ClickUp4j instance.@NotNull String
The client id of the webhook.@NotNull String
The endpoint ClickUp will send webhooks to.The events this webhook is listening for.int
Returns the number of times the webhook has failed.@Nullable String
Returns the folder ID of the folder this webhook is listening for.Returns the Health of the webhook.@NotNull String
getId()
The ID of the webhook.@Nullable String
Returns theTaskList
ID of the list this webhook is listening for.@NotNull String
Returns the secret of the webhook, to be used when verifying the webhook.@Nullable String
Returns theSpace
ID of the list this webhook is listening for.@Nullable String
Returns theTask
ID of the task this webhook is listening for.int
The user ID of the user who created the webhook.int
The workspace this webhook belongs to.
-
Constructor Details
-
WebhookImpl
-
-
Method Details
-
getId
Description copied from interface:Webhook
The ID of the webhook. -
getUserId
public int getUserId()Description copied from interface:Webhook
The user ID of the user who created the webhook. -
getWorkspaceId
public int getWorkspaceId()Description copied from interface:Webhook
The workspace this webhook belongs to.- Specified by:
getWorkspaceId
in interfaceWebhook
- Returns:
- workspace ID
-
getEndpoint
Description copied from interface:Webhook
The endpoint ClickUp will send webhooks to.- Specified by:
getEndpoint
in interfaceWebhook
- Returns:
- endpoint URL
-
getClientId
Description copied from interface:Webhook
The client id of the webhook.- Specified by:
getClientId
in interfaceWebhook
- Returns:
- client ID
-
getEvents
Description copied from interface:Webhook
The events this webhook is listening for. -
getTaskId
Description copied from interface:Webhook
Returns theTask
ID of the task this webhook is listening for.
This may be null, meaning the webhook is either listening elsewhere, or globally. -
getListId
Description copied from interface:Webhook
Returns theTaskList
ID of the list this webhook is listening for.
This may be null, meaning the webhook is either listening elsewhere, or globally. -
getFolderId
Description copied from interface:Webhook
Returns the folder ID of the folder this webhook is listening for.
This may be null, meaning the webhook is either listening elsewhere, or globally.- Specified by:
getFolderId
in interfaceWebhook
- Returns:
- folder ID, or null
-
getSpaceId
Description copied from interface:Webhook
Returns theSpace
ID of the list this webhook is listening for.
This may be null, meaning the webhook is either listening elsewhere, or globally.- Specified by:
getSpaceId
in interfaceWebhook
- Returns:
- space ID, or null
-
getHealth
Description copied from interface:Webhook
Returns the Health of the webhook.
This is one of the enum constants:active
,failing
, orsuspended
.
If the webhook isfailing
, you can see the fail count withWebhook.getFailCount()
. -
getFailCount
public int getFailCount()Description copied from interface:Webhook
- Specified by:
getFailCount
in interfaceWebhook
- Returns:
- fail count
-
getSecret
Description copied from interface:Webhook
Returns the secret of the webhook, to be used when verifying the webhook. -
delete
Description copied from interface:Webhook
Delete this webhook. -
getClickUp4j
Description copied from interface:Webhook
This ClickUp4j instance.- Specified by:
getClickUp4j
in interfaceWebhook
- Returns:
- never-null instance
-