Class WebhookRequest

java.lang.Object
com.github.twitch4j.helix.webhooks.domain.WebhookRequest

@Deprecated @ScheduledForRemoval(inVersion="2.0.0") public class WebhookRequest extends Object
Deprecated.
  • Field Details

  • 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 new WebhookRequest instance.
      Parameters:
      callback - Callback URL
      mode - 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

      @NonNull public @NonNull String getCallback()
      Deprecated.
      Callback URL
    • getMode

      @NonNull public @NonNull String getMode()
      Deprecated.
      Either "subscribe" or "unsubscribe"
    • getTopic

      @NonNull public @NonNull String getTopic()
      Deprecated.
      Topic URL Can be generated by TwitchWebhookTopic.toString()
    • getLeaseSeconds

      public Integer getLeaseSeconds()
      Deprecated.
      Lease time in seconds. Default is 0, which is only useful for testing.
    • getSecret

      public String 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

      public void setCallback(@NonNull @NonNull String callback)
      Deprecated.
      Callback URL
    • setMode

      public void setMode(@NonNull @NonNull String mode)
      Deprecated.
      Either "subscribe" or "unsubscribe"
    • setTopic

      public void setTopic(@NonNull @NonNull String topic)
      Deprecated.
      Topic URL Can be generated by TwitchWebhookTopic.toString()
    • setLeaseSeconds

      public void setLeaseSeconds(Integer leaseSeconds)
      Deprecated.
      Lease time in seconds. Default is 0, which is only useful for testing.
    • setSecret

      public void setSecret(String secret)
      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

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object