# ItRequestNotifyEnum.java

    package cloud.wconnect.it.cons.itrequest;

    import lombok.AllArgsConstructor;
    import lombok.Getter;

    import java.util.Arrays;
    import java.util.Optional;

    @Getter
    @AllArgsConstructor
    public enum ItRequestNotifyEnum {

        OPERATION_CREATED(1, "it-request.notify.create"),

        OPERATION_UPDATED(2, "it-request.notify.updated"),

        OPERATION_STATUS_ACCEPT(3, "it-request.notify.accept"),

        OPERATION_STATUS_DISTRIBUTION(4, "it-request.notify.distribution"),

        OPERATION_STATUS_RESOLVE(5, "it-request.notify.resolve"),

        OPERATION_STATUS_UN_RESOLVE(6, "it-request.notify.unResolve"),

        OPERATION_STATUS_CLOSED(7, "it-request.notify.closed"),

        OPERATION_COMMENT(8, "it-request.notify.comment");

        private final int code;

        private final String i18nCode;

        public static String getI18nCode(int code) {
            Optional<ItRequestNotifyEnum> optional = Arrays.stream(ItRequestNotifyEnum.values())
                    .filter(item -> item.getCode() == code).findFirst();
            return optional.isPresent() ? optional.get().getI18nCode() : "";
        }

    }