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/component/mqtt/model/RequestsMethodEnum.java |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/dji/sample/component/mqtt/model/RequestsMethodEnum.java b/src/main/java/com/dji/sample/component/mqtt/model/RequestsMethodEnum.java
index ddfa599..8d04ceb 100644
--- a/src/main/java/com/dji/sample/component/mqtt/model/RequestsMethodEnum.java
+++ b/src/main/java/com/dji/sample/component/mqtt/model/RequestsMethodEnum.java
@@ -1,5 +1,7 @@
 package com.dji.sample.component.mqtt.model;
 
+import lombok.Getter;
+
 import java.util.Arrays;
 
 /**
@@ -7,26 +9,30 @@
  * @version 1.0
  * @date 2022/5/25
  */
+@Getter
 public enum RequestsMethodEnum {
 
-    STORAGE_CONFIG_GET("storage_config_get"),
+    STORAGE_CONFIG_GET("storage_config_get", ChannelName.INBOUND_REQUESTS_STORAGE_CONFIG_GET),
 
-    AIRPORT_BIND_STATUS("airport_bind_status"),
+    AIRPORT_BIND_STATUS("airport_bind_status", ChannelName.INBOUND_REQUESTS_AIRPORT_BIND_STATUS),
 
-    AIRPORT_ORGANIZATION_BIND("airport_organization_bind"),
+    AIRPORT_ORGANIZATION_BIND("airport_organization_bind", ChannelName.INBOUND_REQUESTS_AIRPORT_ORGANIZATION_BIND),
 
-    AIRPORT_ORGANIZATION_GET("airport_organization_get"),
+    AIRPORT_ORGANIZATION_GET("airport_organization_get", ChannelName.INBOUND_REQUESTS_AIRPORT_ORGANIZATION_GET),
 
-    UNKNOWN("Unknown");
+    FLIGHT_TASK_RESOURCE_GET("flighttask_resource_get", ChannelName.INBOUND_REQUESTS_FLIGHT_TASK_RESOURCE_GET),
+
+    CONFIG("config", ChannelName.INBOUND_REQUESTS_CONFIG),
+
+    UNKNOWN("Unknown", ChannelName.DEFAULT);
 
     private String method;
 
-    RequestsMethodEnum(String method) {
-        this.method = method;
-    }
+    private String channelName;
 
-    public String getMethod() {
-        return method;
+    RequestsMethodEnum(String method, String channelName) {
+        this.method = method;
+        this.channelName = channelName;
     }
 
     public static RequestsMethodEnum find(String method) {

--
Gitblit v1.9.3