Class WebhookRequest
java.lang.Object
com.github.twitch4j.helix.webhooks.domain.WebhookRequest
Deprecated.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWebhookRequest
(@NonNull String callback, @NonNull String mode, @NonNull TwitchWebhookTopic topic, Integer leaseSeconds, String secret) Deprecated.WebhookRequest
(@NonNull String callback, @NonNull String mode, @NonNull String topic, Integer leaseSeconds, String secret) Deprecated.Creates a newWebhookRequest
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Deprecated.boolean
Deprecated.@NonNull String
Deprecated.Callback URLDeprecated.Lease time in seconds.@NonNull String
getMode()
Deprecated.Either "subscribe" or "unsubscribe"Deprecated.Secret used to sign notification payloads.@NonNull String
getTopic()
Deprecated.Topic URL Can be generated by TwitchWebhookTopic.toString()int
hashCode()
Deprecated.void
setCallback
(@NonNull String callback) Deprecated.Callback URLvoid
setLeaseSeconds
(Integer leaseSeconds) Deprecated.Lease time in seconds.void
Deprecated.Either "subscribe" or "unsubscribe"void
Deprecated.Secret used to sign notification payloads.void
Deprecated.Topic URL Can be generated by TwitchWebhookTopic.toString()toString()
Deprecated.
-
Field Details
-
MODE_SUBSCRIBE
Deprecated.- See Also:
-
MODE_UNSUBSCRIBE
Deprecated.- See Also:
-
-
Constructor Details
-
WebhookRequest
public WebhookRequest(@NonNull @NonNull String callback, @NonNull @NonNull String mode, @NonNull @NonNull TwitchWebhookTopic topic, Integer leaseSeconds, String secret) Deprecated. -
WebhookRequest
public WebhookRequest(@NonNull @NonNull String callback, @NonNull @NonNull String mode, @NonNull @NonNull String topic, Integer leaseSeconds, String secret) Deprecated.Creates a newWebhookRequest
instance.- Parameters:
callback
- Callback URLmode
- Either "subscribe" or "unsubscribe"topic
- Topic URL Can be generated by TwitchWebhookTopic.toString()leaseSeconds
- Lease time in seconds. Default is 0, which is only useful for testing.secret
- Secret used to sign notification payloads. The X-Hub-Signature header is generated by sha256(secret, notification_bytes). We strongly encourage you to use this, so your application can verify that notifications are genuine.
-
-
Method Details
-
getCallback
Deprecated.Callback URL -
getMode
Deprecated.Either "subscribe" or "unsubscribe" -
getTopic
Deprecated.Topic URL Can be generated by TwitchWebhookTopic.toString() -
getLeaseSeconds
Deprecated.Lease time in seconds. Default is 0, which is only useful for testing. -
getSecret
Deprecated.Secret used to sign notification payloads. The X-Hub-Signature header is generated by sha256(secret, notification_bytes). We strongly encourage you to use this, so your application can verify that notifications are genuine. -
setCallback
Deprecated.Callback URL -
setMode
Deprecated.Either "subscribe" or "unsubscribe" -
setTopic
Deprecated.Topic URL Can be generated by TwitchWebhookTopic.toString() -
setLeaseSeconds
Deprecated.Lease time in seconds. Default is 0, which is only useful for testing. -
setSecret
Deprecated.Secret used to sign notification payloads. The X-Hub-Signature header is generated by sha256(secret, notification_bytes). We strongly encourage you to use this, so your application can verify that notifications are genuine. -
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-