package com.bonus.canteen.core.device.door.enums;

public enum EditUserToDeviceEnum {
   PUSH("push", "推送人员"),
   ADD("add", "新增人员"),
   DELETE("delete", "人员注销");

   private final String key;
   private final String value;

   private EditUserToDeviceEnum(String key, String value) {
      this.key = key;
      this.value = value;
   }

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

   public String getValue() {
      return this.value;
   }

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

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

      return null;
   }

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

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

      return null;
   }

   // $FF: synthetic method
   private static EditUserToDeviceEnum[] $values() {
      return new EditUserToDeviceEnum[]{PUSH, ADD, DELETE};
   }
}
