using MasstransferSecurity.Utils;
namespace MasstransferCommon.Model.Constant;
///
/// 这里保存所有的 Mqtt Topic
/// topic 的基本结构构成
/// up/{DeviceInfoUtil.GetDeviceSN()}/{cmd}/{version}
///
///
public static class Topics
{
// ReSharper disable once InconsistentNaming
private static string Version = "1.0.0";
///
/// 上报生产数据
///
public static string ReportProductRecord = $"up/{DeviceInfoUtil.GetDeviceSN()}/100/{Version}";
///
/// 图片上传
///
public static string ImageUpload = $"up/{DeviceInfoUtil.GetDeviceSN()}/102/{Version}";
///
/// 查询图片
///
public static string QueryImage = $"down/{DeviceInfoUtil.GetDeviceSN()}/103/{Version}";
///
/// 坐标文件上传
///
public static string CoordinateUpload = $"up/{DeviceInfoUtil.GetDeviceSN()}/104/{Version}";
///
/// 查询坐标文件
///
public static string QueryCoordinate = $"down/{DeviceInfoUtil.GetDeviceSN()}/105/{Version}";
///
/// 上报用户操作数据
///
public static string ReportOperationLog = $"up/{DeviceInfoUtil.GetDeviceSN()}/200/{Version}";
///
/// 上传系统日志文件
///
public static string UploadLogFile = $"up/{DeviceInfoUtil.GetDeviceSN()}/201/{Version}";
///
/// 查询系统日志文件
///
public static string QueryLogFile = $"down/{DeviceInfoUtil.GetDeviceSN()}/202/{Version}";
///
/// 上报故障信息
///
public static string ReportFaultRecord = $"up/{DeviceInfoUtil.GetDeviceSN()}/203/{Version}";
///
/// 上报配置数据
///
public static string ReportConfigData = $"up/{DeviceInfoUtil.GetDeviceSN()}/400/{Version}";
///
/// 下发配置数据
///
public static string DownloadConfigData = $"down/{DeviceInfoUtil.GetDeviceSN()}/401/{Version}";
///
/// 下发远程控制指令
///
public static string RemoteControl = $"down/{DeviceInfoUtil.GetDeviceSN()}/402/{Version}";
///
/// 上报配置字典数据
///
public static string ReportConfigDictionary = $"up/{DeviceInfoUtil.GetDeviceSN()}/403/{Version}";
///
/// 下发OTA包
///
// ReSharper disable once InconsistentNaming
public static string IssuedOTAPackage = $"down/{DeviceInfoUtil.GetDeviceSN()}/500/{Version}";
///
/// 查询OTA信息
///
// ReSharper disable once InconsistentNaming
public static string QueryOTA = $"up/{DeviceInfoUtil.GetDeviceSN()}/501/{Version}";
///
/// OTA 更新反馈
///
// ReSharper disable once InconsistentNaming
public static string OTAUpgradeFeedback = $"up/{DeviceInfoUtil.GetDeviceSN()}/502/{Version}";
///
/// 更新证书事件
///
public static string UpdateLicenseEvent = $"up/{DeviceInfoUtil.GetDeviceSN()}/503/{Version}";
///
/// 更新证书事件反馈
///
public static string UpdateLicenseEventFeedback = $"up/{DeviceInfoUtil.GetDeviceSN()}/505/{Version}";
///
/// 上行心跳信息
///
public static string HeartBeat = $"up/{DeviceInfoUtil.GetDeviceSN()}/600/{Version}";
///
/// 上行系统状态信息
///
public static string ReportSystemStat = $"up/{DeviceInfoUtil.GetDeviceSN()}/601/{Version}";
///
/// 上行系统版本信息
///
public static string ReportSystemVersion = $"up/{DeviceInfoUtil.GetDeviceSN()}/602/{Version}";
}