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

public enum TriggerTypeEnum {
   ADD("1", "新增人员"),
   EDIT("2", "修改人员"),
   LOGOUT("3", "人员注销");

   private final String key;
   private final String value;

   private TriggerTypeEnum(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) {
      TriggerTypeEnum[] var1 = values();
      int var2 = var1.length;

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

      return null;
   }

   // $FF: synthetic method
   private static TriggerTypeEnum[] $values() {
      return new TriggerTypeEnum[]{ADD, EDIT, LOGOUT};
   }
}
