Package com.github.twitch4j.helix.domain
Class Prediction.PredictionBuilder
java.lang.Object
com.github.twitch4j.helix.domain.Prediction.PredictionBuilder
- Enclosing class:
- Prediction
-
Method Summary
Modifier and TypeMethodDescriptionbroadcasterId
(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.
-
Method Details
-
id
ID of the Prediction.- Returns:
this
.
-
broadcasterId
ID of the broadcaster.- Returns:
this
.
-
broadcasterName
Display name of the broadcaster.- Returns:
this
.
-
broadcasterLogin
Login name of the broadcaster.- Returns:
this
.
-
title
Title for the Prediction. Maximum: 45 characters.- Returns:
this
.
-
winningOutcomeId
ID of the winning outcome. If the status is ACTIVE, this is set to null.- Returns:
this
.
-
outcome
-
outcomes
-
clearOutcomes
-
predictionWindowSeconds
Total duration for the Prediction (in seconds). Minimum: 1. Maximum: 1800.- Returns:
this
.
-
status
Status of the Prediction.- Returns:
this
.
-
createdAt
UTC timestamp for the Prediction’s start time.- Returns:
this
.
-
endedAt
UTC timestamp for when the Prediction ended. If the status is ACTIVE, this is set to null.- Returns:
this
.
-
lockedAt
UTC timestamp for when the Prediction was locked. If the status is not LOCKED, this is set to null.- Returns:
this
.
-
build
-
toString
-