59 lines
1.5 KiB
C#
Raw Normal View History

2024-12-19 16:07:07 +08:00
using System;
using Volo.Abp.Domain.Entities;
2024-10-30 17:49:05 +08:00
2025-03-14 14:28:04 +08:00
namespace JiShe.CollectBus.IotSystems.MessageReceiveds
2024-10-25 19:11:43 +08:00
{
2024-12-19 16:07:07 +08:00
public class MessageReceived: AggregateRoot<Guid>,IReceived
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>
2024-11-13 17:50:52 +08:00
public string ReceivedTime { get; set; } = string.Empty;
2024-10-25 19:11:43 +08:00
}
2024-10-29 16:28:14 +08:00
2024-12-19 16:07:07 +08:00
public class MessageReceivedLogin: MessageReceived
2024-10-29 16:28:14 +08:00
{
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-12-19 16:07:07 +08:00
public class MessageReceivedHeartbeat : MessageReceived
2024-10-29 16:28:14 +08:00
{
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
}
2025-04-25 09:28:56 +08:00
public class MessageProtocolAnalysis<T> : MessageReceived
{
public T Data { get; set; } = default!;
}
2024-10-25 19:11:43 +08:00
}