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

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

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

import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.jetbrains.annotations.ApiStatus;

import java.time.Instant;

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

    /**
     * The UTC timestamp of when the moderator deactivated Shield Mode.
     */
    private Instant endedAt;

    @Deprecated
    @ApiStatus.ScheduledForRemoval(inVersion = "2.0.0")
    public String getUserId() {
        return getModeratorUserId();
    }

    @Deprecated
    @ApiStatus.ScheduledForRemoval(inVersion = "2.0.0")
    public String getUserName() {
        return getModeratorUserName();
    }

    @Deprecated
    @ApiStatus.ScheduledForRemoval(inVersion = "2.0.0")
    public String getUserLogin() {
        return getModeratorUserLogin();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy