OBJECT

PredictionEvent

An Event that users can make Predictions on.

link GraphQL Schema definition

1type PredictionEvent {
2
3# The channel that the Prediction Event belongs to. Null if this is Event is not
4# tied to a channel.
5channel: Channel
6
7# The timestamp of when the Event was created.
8createdAt: Time!
9
10# The creator of the Event. Null if the Event was created by an automatic process
11# or an admin.
12createdBy: PredictionEventActor
13
14# The timestamp of when the Event was resolved or canceled. Null if the Event is
15# not resolved or canceled yet.
16endedAt: Time
17
18# The user or extension that resolved or canceled the Event. Null if this was
19# triggered by an automatic process or
20# by an admin, or if the Event is not resolved or canceled yet.
21endedBy: PredictionEventActor
22
23# Unique identifier of the Prediction Event.
24id: ID!
25
26# The timestamp of when the Event was locked. Null if the Event is still active.
27lockedAt: Time
28
29# The user or extension that locked the Event. Null if this was triggered by an
30# automatic process or by an admin,
31# or if the Event is stillactive.
32lockedBy: PredictionEventActor
33
34# The Outcomes available for predicting in this Event.
35outcomes: [PredictionOutcome!]!
36
37# The length of the prediction window (the duration that the Event accepts
38# predictions) in seconds.
39predictionWindowSeconds: Int!
40
41# The relationship between this Prediction Event and the logged in user.
42self: PredictionEventSelfEdge
43
44# The current status of the Event.
45status: PredictionEventStatus!
46
47# The title of the Event.
48title: String!
49
50# The Outcome that ended up being selected as the "correct" Outcome. Null if the
51# Event has not been resolved yet.
52# This Outcome will also be present as one of the outcomes in the "outcomes"
53# field.
54winningOutcome: PredictionOutcome
55
56}