Files
Web_IoTBase_Sever_Prod/CommonEntity/RCUEntity/RCU_UDPData.cs
2025-12-11 14:04:39 +08:00

39 lines
836 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MessagePack;
namespace CommonEntity.RCUEntity
{
public class RCU_UDPData
{
public byte[]? hostnum { get; set; }
public byte[]? endpoint { get; set; }
public byte[]? data { get; set; }
public long? currenttimestamp { get; set; }
}
[MessagePackObject]
[GenerateSerializer, Immutable]
public class RCU_UDPData_With_String
{
[Key(0)]
[Id(0)]
public string? hostnum { get; set; }
[Key(1)]
[Id(1)]
public string? endpoint { get; set; }
[Key(2)]
[Id(2)]
public byte[]? data { get; set; }
[Key(3)]
[Id(3)]
public long? currenttimestamp { get; set; }
}
}