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

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

The newest version!
package com.github.twitch4j.pubsub.domain;

import com.github.twitch4j.common.annotation.Unofficial;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Setter;
import org.jetbrains.annotations.Nullable;

import java.time.Instant;

@Data
@Setter(AccessLevel.PRIVATE)
@Unofficial
public class AutomaticRewardRedemption {

    /**
     * Unique ID for this redemption event.
     */
    private String id;

    /**
     * User that redeemed this reward.
     */
    private ChannelPointsUser user;

    /**
     * ID of the channel in which the reward was redeemed.
     */
    private String channelId;

    /**
     * Timestamp at which a reward was redeemed.
     */
    private Instant redeemedAt;

    /**
     * The reward that was redeemed.
     */
    private AutomaticReward reward;

    /**
     * Additional metadata about the redemption.
     */
    @Nullable
    @Unofficial
    private RedemptionMetadata redemptionMetadata;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy