com.github.twitch4j.common.enums.TwitchEnum Maven / Gradle / Ivy
package com.github.twitch4j.common.enums;
import lombok.Value;
import org.jetbrains.annotations.NotNull;
/**
* Wrapper for a Twitch-specified enum where all of the possible values may not be documented.
*
* @param the underlying enum type
*/
@Value
public class TwitchEnum> {
/**
* The parsed enum value.
*/
@NotNull
E value;
/**
* The raw string provided by Twitch to represent this enum.
*
* This field is useful when {@link #getValue()} yields {@code UNKNOWN}.
* Please report such cases to our issue tracker.
*/
@NotNull
String rawValue;
}