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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete()Delete this webhook.@NotNull ClickUp4jThis ClickUp4j instance.@NotNull StringThe client id of the webhook.@NotNull StringThe endpoint ClickUp will send webhooks to.The events this webhook is listening for.intReturns the number of times the webhook has failed.@Nullable StringReturns the folder ID of the folder this webhook is listening for.Returns the Health of the webhook.@NotNull StringgetId()The ID of the webhook.@Nullable StringReturns theTaskListID of the list this webhook is listening for.@NotNull StringReturns the secret of the webhook, to be used when verifying the webhook.@Nullable StringReturns theSpaceID of the list this webhook is listening for.@Nullable StringReturns theTaskID of the task this webhook is listening for.intThe user ID of the user who created the webhook.intThe workspace this webhook belongs to.
-
Constructor Details
-
WebhookImpl
-
-
Method Details
-
getId
Description copied from interface:WebhookThe ID of the webhook. -
getUserId
public int getUserId()Description copied from interface:WebhookThe user ID of the user who created the webhook. -
getWorkspaceId
public int getWorkspaceId()Description copied from interface:WebhookThe workspace this webhook belongs to.- Specified by:
getWorkspaceIdin interfaceWebhook- Returns:
- workspace ID
-
getEndpoint
Description copied from interface:WebhookThe endpoint ClickUp will send webhooks to.- Specified by:
getEndpointin interfaceWebhook- Returns:
- endpoint URL
-
getClientId
Description copied from interface:WebhookThe client id of the webhook.- Specified by:
getClientIdin interfaceWebhook- Returns:
- client ID
-
getEvents
Description copied from interface:WebhookThe events this webhook is listening for. -
getTaskId
Description copied from interface:WebhookReturns theTaskID 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:WebhookReturns theTaskListID 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:WebhookReturns 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:
getFolderIdin interfaceWebhook- Returns:
- folder ID, or null
-
getSpaceId
Description copied from interface:WebhookReturns theSpaceID of the list this webhook is listening for.
This may be null, meaning the webhook is either listening elsewhere, or globally.- Specified by:
getSpaceIdin interfaceWebhook- Returns:
- space ID, or null
-
getHealth
Description copied from interface:WebhookReturns 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:
getFailCountin interfaceWebhook- Returns:
- fail count
-
getSecret
Description copied from interface:WebhookReturns the secret of the webhook, to be used when verifying the webhook. -
delete
Description copied from interface:WebhookDelete this webhook. -
getClickUp4j
Description copied from interface:WebhookThis ClickUp4j instance.- Specified by:
getClickUp4jin interfaceWebhook- Returns:
- never-null instance
-