Module twitchpy.dataclasses.prediction_outcome
Classes
class PredictionOutcome (outcome_id: str,
title: str,
users: int,
channel_points: int,
top_predictors: list[Predictor],
color: str)-
Expand source code
@dataclass class PredictionOutcome: """ Represents an outcome for a prediction Attributes: outcome_id (str): An ID that identifies this outcome title (str): The outcome’s text users (int): The number of unique viewers that chose this outcome channel_points (int): The number of Channel Points spent by viewers on this outcome top_predictors (list[Predictor]): A list of viewers who were the top predictors color (str): The color that visually identifies this outcome in the UX Possible values: BLUE, PINK """ outcome_id: str title: str users: int channel_points: int top_predictors: list[Predictor] color: strRepresents an outcome for a prediction
Attributes
outcome_id:str- An ID that identifies this outcome
title:str- The outcome’s text
users:int- The number of unique viewers that chose this outcome
channel_points:int- The number of Channel Points spent by viewers on this outcome
top_predictors:list[Predictor]- A list of viewers who were the top predictors
color:str- The color that visually identifies this outcome in the UX Possible values: BLUE, PINK
Class variables
var channel_points : int-
The type of the None singleton.
var color : str-
The type of the None singleton.
var outcome_id : str-
The type of the None singleton.
var title : str-
The type of the None singleton.
var top_predictors : list[Predictor]-
The type of the None singleton.
var users : int-
The type of the None singleton.