# EngineeringRequestLineNotifyTitleEnum.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 EngineeringRequestLineNotifyTitleEnum {

        OPERATION_CREATED(0, "New"),

        OPERATION_UPDATED(1, "Edit"),

        OPERATION_STATUS_ACCEPT(2, "Accept"),

        OPERATION_STATUS_RESOLVE(3, "Resolved"),

        OPERATION_COMMENT(4, "New comment");

        private final int code;

        private final String i18nCode;

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

    }