From a7aaeabc7873a0eafb4a7ecad7f65b018b7a9bc9 Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Fri, 24 Feb 2023 19:31:23 +0800
Subject: [PATCH] What's new? 1. Add license for dock. 2. Modify the logic corresponding to the firmware file and device type. 3. Add multiple mqtt clients options. 4. Modify the structure of the interface for obtaining the device list. 5. Fixed some issues.
---
src/main/java/com/dji/sample/manage/model/enums/HmsEnum.java | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/dji/sample/manage/model/enums/HmsEnum.java b/src/main/java/com/dji/sample/manage/model/enums/HmsEnum.java
index 331a985..04b083a 100644
--- a/src/main/java/com/dji/sample/manage/model/enums/HmsEnum.java
+++ b/src/main/java/com/dji/sample/manage/model/enums/HmsEnum.java
@@ -54,6 +54,8 @@
@Getter
public enum HmsFaqIdEnum {
+ DOCK_TIP("dock_tip_"),
+
FPV_TIP("fpv_tip_");
private String text;
@@ -152,4 +154,38 @@
.orElse(UNKNOWN);
}
}
+
+ @Getter
+ public enum FormatKeyEnum {
+
+ ALARM_ID("alarmid", 0),
+
+ COMPONENT_INDEX("component_index", 1),
+
+ INDEX("index", 2),
+
+ BATTERY_INDEX("battery_index", 3),
+
+ DOCK_COVER_INDEX("dock_cover_index", 4),
+
+ CHARGING_ROD_INDEX("charging_rod_index", 5),
+
+ UNKNOWN("unknown", -1);
+
+ public static final char KEY_START = '%';
+
+ String key;
+ int index;
+
+ FormatKeyEnum(String key, int index) {
+ this.key = key;
+ this.index = index;
+ }
+
+ public static FormatKeyEnum find(String key) {
+ return Arrays.stream(FormatKeyEnum.values())
+ .filter(format -> format.getKey().equals(key))
+ .findAny().orElse(UNKNOWN);
+ }
+ }
}
--
Gitblit v1.9.3