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

com.github.twitch4j.helix.domain.CodeStatus Maven / Gradle / Ivy

There is a newer version: 1.23.0
Show newest version
package com.github.twitch4j.helix.domain;

import lombok.AccessLevel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @deprecated Twitch decommissioned entitlement code related endpoints on 2023-02-27.
 */
@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
@Deprecated
public class CodeStatus {
    /**
     * The code to check the status of or to redeem.
     */
    private String code;

    /**
     * Indicates the current status of each key when checking key status or redeeming.
     */
    private Status status;

    public enum Status {
        /**
         * Request successfully redeemed this code to the authenticated user’s account.
         */
        SUCCESSFULLY_REDEEMED,
        /**
         * Code has already been claimed by a Twitch user.
         */
        ALREADY_CLAIMED,
        /**
         * Code has expired and can no longer be claimed.
         */
        EXPIRED,
        /**
         * User is not eligible to redeem this code.
         */
        USER_NOT_ELIGIBLE,
        /**
         * Code is not valid and/or does not exist in our database.
         */
        NOT_FOUND,
        /**
         * Code is not currently active.
         */
        INACTIVE,
        /**
         * Code has not been claimed.
         */
        UNUSED,
        /**
         * Code was not properly formatted.
         */
        INCORRECT_FORMAT,
        /**
         * Indicates some internal and/or unknown failure handling this code.
         */
        INTERNAL_ERROR
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy