# EngineeringRequestNotifyEnum.java

    package cloud.wconnect.frontoffice.cons.engineeringrequest;

    import lombok.AllArgsConstructor;
    import lombok.Getter;

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

    @Getter
    @AllArgsConstructor
    public enum EngineeringRequestNotifyEnum {

        OPERATION_CREATED(0, "engineering-request.notify.create"),

        OPERATION_UPDATED(1, "engineering-request.notify.updated"),

        OPERATION_STATUS_ACCEPT(2, "engineering-request.notify.accept"),

        OPERATION_STATUS_RESOLVE(3, "engineering-request.notify.resolve"),

        OPERATION_COMMENT(4, "engineering-request.notify.comment");

        private final int code;

        private final String i18nCode;

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

    }