package com.bonus.core.device.constants;

public enum PrinterModelEnum {
   FEI_E("1", "飞鹅打印机"),
   JIA_BO("2", "佳博打印机"),
   FEI_E_LABEL("3", "飞鹅标签打印机"),
   JIA_BO_LABEL("4", "佳博标签打印机"),
   XIN_YE("5", "芯烨打印机"),
   XIN_YE_LABEL("6", "芯烨标签打印机"),
   XN("7", "小牛打印网关");

   private final String key;
   private final String desc;

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

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

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

      return "";
   }

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

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

      return null;
   }

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

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

   // $FF: synthetic method
   private static PrinterModelEnum[] $values() {
      return new PrinterModelEnum[]{FEI_E, JIA_BO, FEI_E_LABEL, JIA_BO_LABEL, XIN_YE, XIN_YE_LABEL, XN};
   }
}
