diff --git a/OpenAuth.WebApi/CloudSdk/GatewayManager.cs b/OpenAuth.WebApi/CloudSdk/GatewayManager.cs new file mode 100644 index 0000000..c09c3aa --- /dev/null +++ b/OpenAuth.WebApi/CloudSdk/GatewayManager.cs @@ -0,0 +1,22 @@ +namespace OpenAuth.WebApi.CloudSdk; + +public class GatewayManager +{ + public string GatewaySn { get; set; } + public string DroneSn { get; set; } + public GatewayType GatewayType { get; set; } + + /// + /// 机场任务准备异常通知 + /// + public string FlightSetupExceptionNotify = + TopicConst.ThingModelPre + TopicConst.Product + "%s" + TopicConst.EventsSuffix; + + public GatewayManager(string gatewaySn, string droneSn, GatewayType gatewayType) + { + GatewaySn = gatewaySn; + DroneSn = droneSn; + GatewayType = gatewayType; + } + +} \ No newline at end of file diff --git a/OpenAuth.WebApi/CloudSdk/GatewayType.cs b/OpenAuth.WebApi/CloudSdk/GatewayType.cs index 444be8e..990b763 100644 --- a/OpenAuth.WebApi/CloudSdk/GatewayType.cs +++ b/OpenAuth.WebApi/CloudSdk/GatewayType.cs @@ -3,5 +3,5 @@ public class GatewayType { public string Dock = "1"; - public string M300 = "2"; + public string M4TD = "2"; } \ No newline at end of file diff --git a/OpenAuth.WebApi/CloudSdk/MqttClientManager.cs b/OpenAuth.WebApi/CloudSdk/mqtt/MqttClientManager.cs similarity index 100% rename from OpenAuth.WebApi/CloudSdk/MqttClientManager.cs rename to OpenAuth.WebApi/CloudSdk/mqtt/MqttClientManager.cs diff --git a/OpenAuth.WebApi/OpenAuth.WebApi.csproj b/OpenAuth.WebApi/OpenAuth.WebApi.csproj index c8f3586..9e70f12 100644 --- a/OpenAuth.WebApi/OpenAuth.WebApi.csproj +++ b/OpenAuth.WebApi/OpenAuth.WebApi.csproj @@ -80,6 +80,12 @@ + + + + + +