package com.bonus.canteen.core.customer.constants;

public enum MegviiResponseCodeEnum {
   NORMAL(10000, "正常"),
   FACE_ROLL(40001, "不满足roll"),
   FACE_YAW(40002, "不满足yaw"),
   FACE_PITCH(40003, "不满足pitch"),
   FACE_NOTCLEAR(40004, "人脸太模糊"),
   FACE_SMALL(40005, "人脸太小"),
   FACE_NOTLIGHT(40006, "人脸亮度不够"),
   FACE_EDGE(40007, "人脸不应该在图像边缘"),
   FACE_MORE(40009, "人脸数量超过1个"),
   FACE_INVALID_IMAGE(40010, "图片与JPEG格式不符");

   private final Integer key;
   private final String desc;

   private MegviiResponseCodeEnum(Integer key, String desc) {
      this.key = key;
      this.desc = desc;
   }

   public static String getDesc(Integer key) {
      MegviiResponseCodeEnum[] var1 = values();
      int var2 = var1.length;

      for(int var3 = 0; var3 < var2; ++var3) {
         MegviiResponseCodeEnum temp = var1[var3];
         if (temp.getKey().equals(key)) {
            return temp.getDesc();
         }
      }

      return "";
   }

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

   public String getDesc() {
      return this.desc;
   }

   // $FF: synthetic method
   private static MegviiResponseCodeEnum[] $values() {
      return new MegviiResponseCodeEnum[]{NORMAL, FACE_ROLL, FACE_YAW, FACE_PITCH, FACE_NOTCLEAR, FACE_SMALL, FACE_NOTLIGHT, FACE_EDGE, FACE_MORE, FACE_INVALID_IMAGE};
   }
}
