MasstransferExporter/MasstransferCommon/Model/Constant/Topics.cs

118 lines
3.0 KiB
C#
Raw Normal View History

2024-07-03 06:24:17 +00:00
namespace MasstransferCommon.Model.Constant;
/// <summary>
/// 这里保存所有的 Mqtt Topic
2024-07-09 03:41:08 +00:00
/// topic 的基本结构构成
/// up/{sn}/{cmd}/{version}
///
2024-07-03 06:24:17 +00:00
/// </summary>
2024-07-09 03:41:08 +00:00
public static class Topics
2024-07-03 06:24:17 +00:00
{
2024-07-09 03:41:08 +00:00
// ReSharper disable once InconsistentNaming
2024-07-18 02:19:53 +00:00
private const string SN = "5506771257";
2024-07-09 03:41:08 +00:00
private const string Version = "1.0.0";
/// <summary>
/// 上报生产数据
/// </summary>
public const string ReportProductRecord = $"up/{SN}/100/{Version}";
/// <summary>
/// 图片上传
/// </summary>
public const string ImageUpload = $"up/{SN}/102/{Version}";
/// <summary>
/// 查询图片
/// </summary>
public const string QueryImage = $"down/{SN}/103/{Version}";
/// <summary>
/// 坐标文件上传
/// </summary>
public const string CoordinateUpload = $"up/{SN}/104/{Version}";
/// <summary>
/// 查询坐标文件
/// </summary>
public const string QueryCoordinate = $"down/{SN}/105/{Version}";
/// <summary>
/// 上报用户操作数据
/// </summary>
public const string ReportOperationLog = $"up/{SN}/200/{Version}";
/// <summary>
/// 上传系统日志文件
/// </summary>
public const string UploadLogFile = $"up/{SN}/201/{Version}";
/// <summary>
/// 查询系统日志文件
/// </summary>
public const string QueryLogFile = $"down/{SN}/202/{Version}";
/// <summary>
/// 上报故障信息
/// </summary>
public const string ReportFaultRecord = $"up/{SN}/203/{Version}";
/// <summary>
/// 上报配置数据
/// </summary>
public const string ReportConfigData = $"up/{SN}/400/{Version}";
/// <summary>
/// 下发配置数据
/// </summary>
public const string DownloadConfigData = $"down/{SN}/401/{Version}";
/// <summary>
/// 下发远程控制指令
/// </summary>
public const string RemoteControl = $"down/{SN}/402/{Version}";
/// <summary>
/// 下发OTA包
/// </summary>
// ReSharper disable once InconsistentNaming
public const string IssuedOTAPackage = $"down/{SN}/500/{Version}";
/// <summary>
/// 查询OTA信息
/// </summary>
// ReSharper disable once InconsistentNaming
public const string QueryOTA = $"up/{SN}/501/{Version}";
/// <summary>
/// OTA 更新反馈
/// </summary>
// ReSharper disable once InconsistentNaming
public const string OTAUpgradeFeedback = $"up/{SN}/502/{Version}";
2024-07-03 06:24:17 +00:00
/// <summary>
/// 更新证书事件
/// </summary>
2024-07-09 03:41:08 +00:00
public const string UpdateLicenseEvent = $"up/{SN}/503/{Version}";
2024-07-03 06:24:17 +00:00
/// <summary>
/// 更新证书事件反馈
/// </summary>
2024-07-09 03:41:08 +00:00
public const string UpdateLicenseEventFeedback = $"up/{SN}/505/{Version}";
/// <summary>
/// 上行心跳信息
/// </summary>
public const string HeartBeat = $"up/{SN}/600/{Version}";
/// <summary>
/// 上行系统状态信息
/// </summary>
public const string ReportSystemStat = $"up/{SN}/601/{Version}";
2024-07-03 06:24:17 +00:00
}