package com.starry.admin.modules.media.enums;

import lombok.Getter;

@Getter
public enum MediaStatus {
    UPLOADED("uploaded"),
    PROCESSING("processing"),
    READY("ready"),
    APPROVED("approved"),
    REJECTED("rejected");

    private final String code;

    MediaStatus(String code) {
        this.code = code;
    }

    public static boolean isTerminal(String value) {
        return APPROVED.code.equalsIgnoreCase(value) || REJECTED.code.equalsIgnoreCase(value);
    }
}
