61 lines
1.5 KiB
C#
61 lines
1.5 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MoviconHub.App.Models
|
|
{
|
|
/// <summary>
|
|
/// WebSocket数据模型
|
|
/// </summary>
|
|
public class WebSocketData
|
|
{
|
|
/// <summary>
|
|
/// 设备编号
|
|
/// </summary>
|
|
[JsonProperty("DeviceCode")]
|
|
public string Device_Code { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 设备名称
|
|
/// </summary>
|
|
[JsonProperty("DeviceName")]
|
|
public string Device_Name { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 设备厂商
|
|
/// </summary>
|
|
[JsonProperty("DeviceManufacturer")]
|
|
public string Device_Manufacturer { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 设备状态, 代码含义自定
|
|
/// </summary>
|
|
[JsonProperty("Status")]
|
|
public string Device_Status { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 设备错误
|
|
/// </summary>
|
|
[JsonProperty("FaultDetails")]
|
|
public FaultDetails FaultDetails { get; set; } = new FaultDetails();
|
|
|
|
/// <summary>
|
|
/// 部件信息列表
|
|
/// </summary>
|
|
[JsonProperty("ComponentsInfo")]
|
|
public List<ComponentsInfo> ListComponentsInfo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 测试数据
|
|
/// </summary>
|
|
[JsonProperty("TestData")]
|
|
public TestData TestData { get; set; } = new TestData();
|
|
|
|
|
|
|
|
}
|
|
}
|