Package com.github.twitch4j.eventsub
Class EventSubTransport.EventSubTransportBuilder
java.lang.Object
com.github.twitch4j.eventsub.EventSubTransport.EventSubTransportBuilder
- Enclosing class:
- EventSubTransport
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The callback URL where the notification should be sent.An ID that identifies the conduit to send notifications to.connectedAt
(@Nullable Instant connectedAt) The UTC date and time that the WebSocket connection was established.disconnectedAt
(@Nullable Instant disconnectedAt) The UTC date and time that the WebSocket connection was lost.method
(@NotNull EventSubTransportMethod method) The transport method.The secret used for verifying a webhook signature.An ID that identifies the WebSocket that notifications are sent to.toString()
-
Method Details
-
method
public EventSubTransport.EventSubTransportBuilder method(@NotNull @NotNull EventSubTransportMethod method) The transport method.- Returns:
this
.
-
callback
The callback URL where the notification should be sent.Specify this field only if method is set to webhook.
- Returns:
this
.
-
secret
The secret used for verifying a webhook signature.The secret must be an ASCII string that’s a minimum of 10 characters long and a maximum of 100 characters long.
Specify this field only if method is set to webhook.
- Returns:
this
.
-
conduitId
An ID that identifies the conduit to send notifications to.When you create a conduit, the server returns the conduit ID.
Specify this field only if method is set to conduit.
- Returns:
this
.
-
sessionId
An ID that identifies the WebSocket that notifications are sent to.Specify this field only if method is set to websocket.
- Returns:
this
.
-
connectedAt
public EventSubTransport.EventSubTransportBuilder connectedAt(@Nullable @Nullable Instant connectedAt) The UTC date and time that the WebSocket connection was established.Included only if method is set to websocket.
- Returns:
this
.
-
disconnectedAt
public EventSubTransport.EventSubTransportBuilder disconnectedAt(@Nullable @Nullable Instant disconnectedAt) The UTC date and time that the WebSocket connection was lost.Included only if method is set to websocket.
- Returns:
this
.
-
build
-
toString
-