/
PollChoice.java
55 lines (47 loc) · 1.15 KB
/
PollChoice.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
package com.github.twitch4j.eventsub.domain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.With;
import lombok.extern.jackson.Jacksonized;
import org.jetbrains.annotations.Nullable;
@With
@Data
@Setter(AccessLevel.PRIVATE)
@Builder(toBuilder = true)
@Jacksonized
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PollChoice {
/**
* ID for the choice.
*/
private String id;
/**
* Text displayed for the choice. Maximum: 25 characters.
*/
private String title;
/**
* Total number of votes received for the choice across all methods of voting.
*/
@Nullable
private Integer votes;
/**
* Number of votes received via Channel Points.
*/
@Nullable
private Integer channelPointsVotes;
/**
* Number of votes received via Bits.
*
* @deprecated Twitch no longer supports bits on polls.
*/
@Nullable
@Deprecated
private Integer bitsVotes;
}