PredictionOutcome

@Serializable
data class PredictionOutcome(val id: String, val title: String, val users: Int = 0, val channelPoints: Int = 0, val topPredictors: List<TopPredictor>? = null, val color: String)

An outcome within a prediction.

Constructors

Link copied to clipboard
constructor(id: String, title: String, users: Int = 0, channelPoints: Int = 0, topPredictors: List<TopPredictor>? = null, color: String)

Properties

Link copied to clipboard
@SerialName(value = "channel_points")
val channelPoints: Int

the total channel points used for this outcome.

Link copied to clipboard

the outcome color (e.g. BLUE, PINK).

Link copied to clipboard
val id: String

the outcome ID.

Link copied to clipboard

the outcome title.

Link copied to clipboard
@SerialName(value = "top_predictors")
val topPredictors: List<TopPredictor>?

the users who predicted the most channel points for this outcome.

Link copied to clipboard
val users: Int

the number of unique users who predicted this outcome.