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

public enum AccUpdateWalletOperateEnum {
   AUGMENT_BAL(1, "钱包加钱"),
   DECREASE_BAL(2, "钱包减钱"),
   FROZEN_BAL(3, "钱包冻结"),
   UNFROZEN_BAL(4, "钱包解冻"),
   NO_OPERATION(999, "钱包无操作");

   private final Integer key;
   private final String desc;

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

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

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

      return "";
   }

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

      for(int var3 = 0; var3 < var2; ++var3) {
         AccUpdateWalletOperateEnum 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 AccUpdateWalletOperateEnum[] $values() {
      return new AccUpdateWalletOperateEnum[]{AUGMENT_BAL, DECREASE_BAL, FROZEN_BAL, UNFROZEN_BAL, NO_OPERATION};
   }
}
