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

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

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

import com.github.twitch4j.eventsub.domain.GoalType;
import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.Instant;

/**
 * @see Official docs
 */
@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public abstract class CreatorGoalsEvent extends EventSubChannelEvent {

    /**
     * An ID that identifies this event.
     */
    private String id;

    /**
     * The type of goal.
     */
    private GoalType type;

    /**
     * A description of the goal, if specified.
     * 

* The description may contain a maximum of 40 characters. */ private String description; /** * The current value. *

* If the goal is to increase followers, this field is set to the current number of followers. * This number increases with new followers and decreases if users unfollow the channel. *

* For subscriptions, current_amount is increased and decreased by the points value associated with the subscription tier. * For example, if a tier-two subscription is worth 2 points, current_amount is increased or decreased by 2, not 1. */ private Integer currentAmount; /** * The goal’s target value. *

* For example, if the broadcaster has 200 followers before creating the goal, and their goal is to double that number, this field is set to 400. */ private Integer targetAmount; /** * The UTC timestamp in RFC 3339 format, which indicates when the broadcaster created the goal. */ private Instant startedAt; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy