Files
wcs/WCS.Model/WebSocketModel/WebSocketMessageModel.cs
2024-06-11 14:03:06 +08:00

73 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace WCS.Model.WebSocketModel
{
public class WebSocketMessageModel
{
public bool IsWarning { get; set; } = true;
public Guid Guid { get; set; } = Guid.NewGuid();
public WarningTypeEnum WarningType { get; set; }
public int StoreId { get; set; }
public string StoreCode { get; set; }
public int ModuleId { get; set; }
public string ModuleCode { get; set; }
public int ShelfId { get; set; }
public string ShelfCode { get; set; }
public string WarningMessage { get; set; }
/// <summary>
/// 发送到前端的地址
/// </summary>
public string ClientIp { get; set; }
public DateTime LastSendTime { get; set; }
/// <summary>
/// 消息创建时间 跟消息时效性有关
/// </summary>
public DateTime CreateTime { get; set; } = DateTime.Now;
public bool ClientIsReceived { get; set; }
//恢复正常需要消除的报警guid
public List<Guid> SolvedGuids { get; set; }
/// <summary>
/// 异常处理人
/// </summary>
public string SolvedUser { get; set; }
}
public enum WarningTypeEnum
{
= 0,
= 1,
= 2,
= 3,
= 4,
退 = 5,
= 6,
= 7,
= 8,
= 9,
= 10,
退 = 11,
= 12,
= 13,
退 = 14,
= 15,
= 16,
//通知类
= 50,
= 51,
= 52,
= 53,
= 54,
= 55,
= 56,
}
}