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

import java.util.Arrays;
import java.util.List;

public enum FaceVerTypeEnum {
   FACE_VER_BIT("20", "比特大陆"),
   FACE_VER_UF("30", "宇泛闸机"),
   FACE_VER_3288("3288", "旷视3288"),
   FACE_VER_3568("3568", "旷视3568"),
   FACE_VER_1109("1109", "旷视1109");

   private final String key;
   private final String desc;

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

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

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

      return "";
   }

   public static List<String> getMegviiVers() {
      return Arrays.asList(FACE_VER_3288.getKey(), FACE_VER_3568.getKey(), FACE_VER_1109.getKey());
   }

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

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

   // $FF: synthetic method
   private static FaceVerTypeEnum[] $values() {
      return new FaceVerTypeEnum[]{FACE_VER_BIT, FACE_VER_UF, FACE_VER_3288, FACE_VER_3568, FACE_VER_1109};
   }
}
