first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JSMachine.WMS.Netty.NettyUdp.Command
|
||||
{
|
||||
public class BaseCmd : IBaseCmd
|
||||
{
|
||||
public virtual CommandType ComType { get; set; }
|
||||
}
|
||||
|
||||
public enum CommandType
|
||||
{
|
||||
/// <summary>
|
||||
/// 心跳包
|
||||
/// </summary>
|
||||
g_eKeepAlive = 1,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace JSMachine.WMS.Netty.NettyUdp.Command
|
||||
{
|
||||
/// <summary>
|
||||
/// 心跳
|
||||
/// </summary>
|
||||
public class HeartBeartCmd : BaseCmd
|
||||
{
|
||||
public override CommandType ComType { get; set; } = CommandType.g_eKeepAlive;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JSMachine.WMS.Netty.NettyUdp.Command
|
||||
{
|
||||
public interface IBaseCmd
|
||||
{
|
||||
CommandType ComType { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user