package com.bonus.core.nutrition.common.enums;

import com.bonus.core.common.converter.LeExcelFieldConvertor;
import com.bonus.core.common.converter.LeExcelFieldEnum;

public enum ActivityLevelEnum implements LeExcelFieldEnum<ActivityLevelEnum> {
   LIGHT_ACTIVITY_LEVEL(1, "轻度活动水平"),
   MODERATE_ACTIVITY_LEVEL(2, "中度活动水平"),
   SEVERE_ACTIVITY_LEVEL(3, "重度活动水平");

   private final Integer key;
   private final String value;

   private ActivityLevelEnum(Integer key, String value) {
      this.key = key;
      this.value = value;
   }

   public Integer key() {
      return this.key;
   }

   public String value() {
      return this.value;
   }

   @Override
   public Integer getKey() {
      return this.key;
   }

   @Override
   public String getDesc() {
      return this.value;
   }

   // $FF: synthetic method
   private static ActivityLevelEnum[] $values() {
      return new ActivityLevelEnum[]{LIGHT_ACTIVITY_LEVEL, MODERATE_ACTIVITY_LEVEL, SEVERE_ACTIVITY_LEVEL};
   }

   public static class ExcelConvertor extends LeExcelFieldConvertor<ActivityLevelEnum> {
      public ExcelConvertor() {
         super(ActivityLevelEnum.class);
      }
   }
}
