2024-10-30 17:49:05 +08:00
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
|
|
|
|
|
|
|
namespace JiShe.CollectBus.Protocol.Contracts.Models
|
2024-10-25 19:11:43 +08:00
|
|
|
|
{
|
2024-10-28 16:23:39 +08:00
|
|
|
|
public class MessageReceivedEvent
|
2024-10-25 19:11:43 +08:00
|
|
|
|
{
|
2024-10-30 17:49:05 +08:00
|
|
|
|
public string MessageId { get; set; } = string.Empty;
|
2024-10-25 19:11:43 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 客服端标识
|
|
|
|
|
|
/// </summary>
|
2024-10-30 17:49:05 +08:00
|
|
|
|
public string ClientId { get; set; } = string.Empty;
|
2024-10-25 19:11:43 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 客服端IP
|
|
|
|
|
|
/// </summary>
|
2024-10-30 17:49:05 +08:00
|
|
|
|
public string ClientIp { get; set; } = string.Empty;
|
2024-10-25 19:11:43 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 客服端端口
|
|
|
|
|
|
/// </summary>
|
2024-10-30 17:49:05 +08:00
|
|
|
|
public int ClientPort { get; set; }
|
2024-10-25 19:11:43 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 客服端报文
|
|
|
|
|
|
/// </summary>
|
2024-10-30 17:49:05 +08:00
|
|
|
|
public string MessageHexString { get; set; } = string.Empty;
|
2024-10-25 19:11:43 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 设备号
|
|
|
|
|
|
/// </summary>
|
2024-10-30 17:49:05 +08:00
|
|
|
|
public string DeviceNo { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 接收指令时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime ReceivedTime { get; set; }
|
2024-10-25 19:11:43 +08:00
|
|
|
|
}
|
2024-10-29 16:28:14 +08:00
|
|
|
|
|
|
|
|
|
|
public class MessageReceivedLoginEvent: MessageReceivedEvent
|
|
|
|
|
|
{
|
2024-10-30 17:49:05 +08:00
|
|
|
|
public bool IsAck { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
|
|
public DateTime? AckTime { get; set; }
|
2024-10-29 16:28:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class MessageReceivedHeartbeatEvent : MessageReceivedEvent
|
|
|
|
|
|
{
|
2024-10-30 17:49:05 +08:00
|
|
|
|
public bool IsAck { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
|
|
public DateTime? AckTime { get; set; }
|
2024-10-29 16:28:14 +08:00
|
|
|
|
}
|
2024-10-25 19:11:43 +08:00
|
|
|
|
}
|