50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using MessagePack;
|
|
using MongoDB.Bson;
|
|
|
|
namespace CommonEntity
|
|
{
|
|
[MessagePackObject()]
|
|
public class NewVersionHexData
|
|
{
|
|
[Key(0)]
|
|
public byte CmdType { get; set; }
|
|
|
|
[Key(1)]
|
|
public string? HotelCode { get; set; }
|
|
|
|
[Key(2)]
|
|
public string? HostNumber { get; set; }
|
|
|
|
[Key(3)]
|
|
public string? RoomNumber { get; set; }
|
|
|
|
[Key(4)]
|
|
public string? RemoteEndPoint { get; set; }
|
|
|
|
[Key(5)]
|
|
public string? HexData { get; set; }
|
|
|
|
[Key(6)]
|
|
public DateTime CurrentTime { get; set; }
|
|
}
|
|
|
|
|
|
public class NewVersionHexData_db
|
|
{
|
|
public ObjectId _id { get; set; }
|
|
public byte CmdType { get; set; }
|
|
public string? HotelCode { get; set; }
|
|
public string? HostNumber { get; set; }
|
|
public string? RoomNumber { get; set; }
|
|
public string? RemoteEndPoint { get; set; }
|
|
public string? HexData { get; set; }
|
|
public DateTime CurrentTime { get; set; }
|
|
public List<Dictionary<string, string>>? Data { get; set; }
|
|
}
|
|
}
|