39 lines
836 B
C#
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; }
|
|
}
|
|
}
|