Package com.github.twitch4j.helix.domain
Klasse Prediction.PredictionBuilder
java.lang.Object
com.github.twitch4j.helix.domain.Prediction.PredictionBuilder
- Umschließende Klasse:
Prediction
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbroadcasterId(String broadcasterId) ID of the broadcaster.broadcasterLogin(String broadcasterLogin) Login name of the broadcaster.broadcasterName(String broadcasterName) Display name of the broadcaster.build()UTC timestamp for the Prediction’s start time.UTC timestamp for when the Prediction ended.ID of the Prediction.UTC timestamp for when the Prediction was locked.outcome(PredictionOutcome outcome) outcomes(Collection<? extends PredictionOutcome> outcomes) predictionWindowSeconds(Integer predictionWindowSeconds) Total duration for the Prediction (in seconds).status(PredictionStatus status) Status of the Prediction.Title for the Prediction.toString()winningOutcomeId(@Nullable String winningOutcomeId) ID of the winning outcome.
-
Methodendetails
-
id
ID of the Prediction.- Gibt zurück:
this.
-
broadcasterId
ID of the broadcaster.- Gibt zurück:
this.
-
broadcasterName
Display name of the broadcaster.- Gibt zurück:
this.
-
broadcasterLogin
Login name of the broadcaster.- Gibt zurück:
this.
-
title
Title for the Prediction. Maximum: 45 characters.- Gibt zurück:
this.
-
winningOutcomeId
ID of the winning outcome. If the status is ACTIVE, this is set to null.- Gibt zurück:
this.
-
outcome
-
outcomes
-
clearOutcomes
-
predictionWindowSeconds
Total duration for the Prediction (in seconds). Minimum: 1. Maximum: 1800.- Gibt zurück:
this.
-
status
Status of the Prediction.- Gibt zurück:
this.
-
createdAt
UTC timestamp for the Prediction’s start time.- Gibt zurück:
this.
-
endedAt
UTC timestamp for when the Prediction ended. If the status is ACTIVE, this is set to null.- Gibt zurück:
this.
-
lockedAt
UTC timestamp for when the Prediction was locked. If the status is not LOCKED, this is set to null.- Gibt zurück:
this.
-
build
-
toString
-