You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
624 B
23 lines
624 B
using HybirdFrameworkCore.Autofac.Attribute;
|
|
using HybirdFrameworkCore.Utils;
|
|
using HybirdFrameworkDriver.Common;
|
|
|
|
namespace Service.TBox.Msg;
|
|
|
|
public class BaseMsg : IToBytes
|
|
{
|
|
[Property(0, 32)] public UInt32 Id { get; set; }
|
|
|
|
[Property(32, 8)] public byte P { get; set; }
|
|
[Property(40, 8)] public byte R { get; set; }
|
|
[Property(48, 8)] public byte Dp { get; set; }
|
|
[Property(56, 8)] public byte Pf { get; set; }
|
|
[Property(64, 8)] public byte Ps { get; set; }
|
|
[Property(72, 8)] public byte Sa { get; set; }
|
|
|
|
public byte[] ToBytes()
|
|
{
|
|
return ModelConvert.Encode(this);
|
|
}
|
|
}
|