Class WebhookRequest
java.lang.Object
com.github.twitch4j.helix.webhooks.domain.WebhookRequest
Deprecated.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWebhookRequest(@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 newWebhookRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.booleanDeprecated.@NonNull StringDeprecated.Callback URLDeprecated.Lease time in seconds.@NonNull StringgetMode()Deprecated.Either "subscribe" or "unsubscribe"Deprecated.Secret used to sign notification payloads.@NonNull StringgetTopic()Deprecated.Topic URL Can be generated by TwitchWebhookTopic.toString()inthashCode()Deprecated.voidsetCallback(@NonNull String callback) Deprecated.Callback URLvoidsetLeaseSeconds(Integer leaseSeconds) Deprecated.Lease time in seconds.voidDeprecated.Either "subscribe" or "unsubscribe"voidDeprecated.Secret used to sign notification payloads.voidDeprecated.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 newWebhookRequestinstance.- 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.
-