初始化
This commit is contained in:
38
CommonEntity/RCUEntity/RCU_UDPData.cs
Normal file
38
CommonEntity/RCUEntity/RCU_UDPData.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user