Class Webhook
java.lang.Object
ink.icoding.github4j.model.Webhook
GitHub Webhook。
Webhook 允许用户在仓库或组织发生特定事件时接收 HTTP 回调通知。 可以配置监听的事件类型、回调 URL 等参数。
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()getName()getType()getUrl()booleanisActive()voidsetActive(boolean active) voidvoidsetCreatedAt(Instant createdAt) voidsetDeliveriesUrl(String deliveriesUrl) voidvoidsetId(long id) voidvoidvoidsetPingUrl(String pingUrl) voidsetTestUrl(String testUrl) voidvoidsetUpdatedAt(Instant updatedAt) void
-
Constructor Details
-
Webhook
public Webhook()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getNodeId
-
setNodeId
-
getName
-
setName
-
isActive
public boolean isActive() -
setActive
public void setActive(boolean active) -
getEvents
-
setEvents
-
getConfig
-
setConfig
-
getUrl
-
setUrl
-
getTestUrl
-
setTestUrl
-
getPingUrl
-
setPingUrl
-
getDeliveriesUrl
-
setDeliveriesUrl
-
getType
-
setType
-
getCreatedAt
-
setCreatedAt
-
getUpdatedAt
-
setUpdatedAt
-