Package com.github.twitch4j.eventsub
Klasse EventSubTransport
java.lang.Object
com.github.twitch4j.eventsub.EventSubTransport
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuilder()protected booleanbooleanThe callback URL where the notification should be sent.An ID that identifies the conduit to send notifications to.The UTC date and time that the WebSocket connection was established.The UTC date and time that the WebSocket connection was lost.The transport method.The secret used for verifying a webhook signature.An ID that identifies the WebSocket that notifications are sent to.inthashCode()voidsetSessionId(@Nullable String sessionId) Veraltet.toString()withSessionId(@Nullable String sessionId) An ID that identifies the WebSocket that notifications are sent to.
-
Konstruktordetails
-
EventSubTransport
public EventSubTransport() -
EventSubTransport
public EventSubTransport(@NotNull @NotNull EventSubTransportMethod method, @Nullable @Nullable String callback, @Nullable @Nullable String secret, @Nullable @Nullable String conduitId, @Nullable @Nullable String sessionId, @Nullable @Nullable Instant connectedAt, @Nullable @Nullable Instant disconnectedAt)
-
-
Methodendetails
-
builder
-
getMethod
The transport method. -
getCallback
The callback URL where the notification should be sent.Specify this field only if method is set to webhook.
-
getSecret
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.
-
getConduitId
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.
-
getSessionId
An ID that identifies the WebSocket that notifications are sent to.Specify this field only if method is set to websocket.
-
getConnectedAt
The UTC date and time that the WebSocket connection was established.Included only if method is set to websocket.
-
getDisconnectedAt
The UTC date and time that the WebSocket connection was lost.Included only if method is set to websocket.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withSessionId
An ID that identifies the WebSocket that notifications are sent to.Specify this field only if method is set to websocket.
- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
setSessionId
Veraltet.An ID that identifies the WebSocket that notifications are sent to.Specify this field only if method is set to websocket.
-