package com.bonus.core.account.v3.constants;

public enum AccRechargeOperateEnum {
   SINGLE_RECHARGE(1, "单人操作"),
   BATCH_RECHARGE(2, "批量操作"),
   IMPORT_RECHARGE(3, "导入操作"),
   GIVING_RECHARGE(4, "赠送");

   private final Integer key;
   private final String desc;

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

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

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

      return "";
   }

   public static AccRechargeOperateEnum getEnum(Integer key) {
      AccRechargeOperateEnum[] var1 = values();
      int var2 = var1.length;

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

      return null;
   }

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

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

   // $FF: synthetic method
   private static AccRechargeOperateEnum[] $values() {
      return new AccRechargeOperateEnum[]{SINGLE_RECHARGE, BATCH_RECHARGE, IMPORT_RECHARGE, GIVING_RECHARGE};
   }
}
