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

com.github.twitch4j.eventsub.events.AutomaticRewardRedemptionAddEvent Maven / Gradle / Ivy

The newest version!
package com.github.twitch4j.eventsub.events;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.twitch4j.eventsub.domain.AutomaticReward;
import com.github.twitch4j.eventsub.domain.Message;
import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.jetbrains.annotations.Nullable;

import java.time.Instant;

@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class AutomaticRewardRedemptionAddEvent extends EventSubUserChannelEvent {

    /**
     * The ID of the Redemption.
     */
    @JsonProperty("id")
    private String redemptionId;

    /**
     * An object that contains the reward information.
     */
    private AutomaticReward reward;

    /**
     * An object that contains the user message and emote information needed to recreate the message.
     */
    private Message message;

    /**
     * A string that the user entered if the reward requires input.
     */
    @Nullable
    private String userInput;

    /**
     * The UTC date and time (in RFC3339 format) of when the reward was redeemed.
     */
    private Instant redeemedAt;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy