namespace OpenAuth.WebApi.CloudSdk;

public class GatewayManager
{
    public string GatewaySn { get; set; }
    public string DroneSn { get; set; }
    public GatewayType GatewayType { get; set; }

    /// <summary>
    /// 机场任务准备异常通知 flight_setup_exception_notify 
    /// </summary>
    public static string FlightSetupExceptionNotify =
        TopicConst.ThingModelPre + TopicConst.Product + "%s" + TopicConst.EventsSuffix;

    /// <summary>
    ///  下发任务 down(向设备端发布消息) flighttask_prepare(method) thing/product/{gateway_sn}/services(topic)
    /// </summary>
    public static string FlightTaskPrepare = TopicConst.ThingModelPre + TopicConst.Product + "{0}" + TopicConst.ServicesSuffix;

    public GatewayManager(string gatewaySn, string droneSn, GatewayType gatewayType)
    {
        GatewaySn = gatewaySn;
        DroneSn = droneSn;
        GatewayType = gatewayType;
    }
}