package com.bonus.core.common.enums;

import java.util.ArrayList;
import java.util.List;

public enum FileUploadSourceEnum {
   DISHES("dishes", "菜品"),
   CUST("cust", "人员"),
   TABLE("table", "餐桌"),
   FACE("face", "人脸识别"),
   PLACE("place", "位置信息"),
   STALL("stall", "档口信息"),
   SYSTEM("system", "系统"),
   ANDROID_APK("androidapk", "安卓apk"),
   ABC_MERCHANT_CERT_FILE("abccertfile", "农行商户证书"),
   SZRCB_PFX_FILE("szrcbpfxfile", "苏州农商行证书"),
   ANDROID_MENU_SELECT("androidmenuselect", "菜品识别采集"),
   EVALUATE("evaluate", "订单评价"),
   MATERIAL("material", "出入库原料"),
   SUPPLIER("supplier", "供应商资质信息"),
   COUPON("coupon", "餐券图片"),
   QUOTATION("quotation", "报价图片"),
   BACK_STAFF("backStaff", "后场人员"),
   DEVICE_LOG("leniu_device_log", "设备文件日志6608和6609专用"),
   ORDER_PLACE("orderPlace", "下单照片"),
   DEVICE_LOGINFO("deviceLogInfo", "设备日志上传"),
   DEVICE_UPDATE_ADMIN("deviceUpdateAdmin", "设备更新"),
   DEVICE_VIDEO("deviceVideo", "设备操作录像"),
   DEVICE_PIC("devicePic", "设备操作拍照"),
   SAMPLE("sample", "留样");

   private final String key;
   private final String value;

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

   public static String getKey(String value) {
      FileUploadSourceEnum[] fileUploadSourceEnumList = values();
      FileUploadSourceEnum[] var2 = fileUploadSourceEnumList;
      int var3 = fileUploadSourceEnumList.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         FileUploadSourceEnum fileUploadSourceEnum = var2[var4];
         if (fileUploadSourceEnum.value().equals(value)) {
            return fileUploadSourceEnum.key();
         }
      }

      return null;
   }

   public static String getValue(String key) {
      FileUploadSourceEnum[] fileUploadSourceEnumList = values();
      FileUploadSourceEnum[] var2 = fileUploadSourceEnumList;
      int var3 = fileUploadSourceEnumList.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         FileUploadSourceEnum fileUploadSourceEnum = var2[var4];
         if (fileUploadSourceEnum.key().equals(key)) {
            return fileUploadSourceEnum.value();
         }
      }

      return null;
   }

   public static List<String> getAllEnumsKeyList() {
      FileUploadSourceEnum[] fileUploadSourceEnumList = values();
      List<String> uploadKeyList = new ArrayList();
      FileUploadSourceEnum[] var2 = fileUploadSourceEnumList;
      int var3 = fileUploadSourceEnumList.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         FileUploadSourceEnum fileUploadSourceEnum = var2[var4];
         uploadKeyList.add(fileUploadSourceEnum.key);
      }

      return uploadKeyList;
   }

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

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

   // $FF: synthetic method
   private static FileUploadSourceEnum[] $values() {
      return new FileUploadSourceEnum[]{DISHES, CUST, TABLE, FACE, PLACE, STALL, SYSTEM, ANDROID_APK, ABC_MERCHANT_CERT_FILE, SZRCB_PFX_FILE, ANDROID_MENU_SELECT, EVALUATE, MATERIAL, SUPPLIER, COUPON, QUOTATION, BACK_STAFF, DEVICE_LOG, ORDER_PLACE, DEVICE_LOGINFO, DEVICE_UPDATE_ADMIN, DEVICE_VIDEO, DEVICE_PIC, SAMPLE};
   }
}
