All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.twitch4j.pubsub.domain.ChannelPointsReward Maven / Gradle / Ivy

There is a newer version: 1.23.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy