-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
ChannelPointsReward.java
50 lines (44 loc) · 1.26 KB
/
ChannelPointsReward.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
package com.github.twitch4j.pubsub.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.twitch4j.eventsub.domain.GlobalCooldown;
import com.github.twitch4j.eventsub.domain.MaxPerUserPerStream;
import lombok.Data;
import java.time.Instant;
@Data
public class ChannelPointsReward {
private String id;
private String channelId;
private String title;
private String prompt;
private long cost;
private Boolean isUserInputRequired;
private Boolean isSubOnly;
private Image image;
private Image defaultImage;
private String backgroundColor;
private Boolean isEnabled;
private Boolean isPaused;
private Boolean isInStock;
private MaxPerStream maxPerStream;
private Boolean shouldRedemptionsSkipRequestQueue;
private String updatedForIndicatorAt;
private MaxPerUserPerStream maxPerUserPerStream;
private GlobalCooldown globalCooldown;
private Integer redemptionsRedeemedCurrentStream;
private Instant cooldownExpiresAt;
private String templateId;
@Data
public static class Image {
@JsonProperty("url_1x")
private String url1x;
@JsonProperty("url_2x")
private String url2x;
@JsonProperty("url_4x")
private String url4x;
}
@Data
public static class MaxPerStream {
private Boolean isEnabled;
private long maxPerStream;
}
}