/
ChannelPollEvent.java
58 lines (48 loc) · 1.29 KB
/
ChannelPollEvent.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.github.twitch4j.eventsub.events;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.twitch4j.eventsub.domain.BitsVoting;
import com.github.twitch4j.eventsub.domain.ChannelPointsVoting;
import com.github.twitch4j.eventsub.domain.PollChoice;
import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import java.time.Instant;
import java.util.List;
@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public abstract class ChannelPollEvent extends EventSubChannelEvent {
/**
* ID of the poll.
*/
@JsonProperty("id")
private String pollId;
/**
* Question displayed for the poll.
*/
private String title;
/**
* Choices for the poll.
*/
private List<PollChoice> choices;
/**
* The Bits voting settings for the poll.
*
* @deprecated Twitch no longer supports bits on polls.
*/
@Deprecated
private BitsVoting bitsVoting;
/**
* The Channel Points voting settings for the poll.
*/
private ChannelPointsVoting channelPointsVoting;
/**
* The time the poll started.
*/
private Instant startedAt;
}