forked from powerfun/udpservice
39 lines
851 B
C#
39 lines
851 B
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Text;
|
||
|
||
namespace OnlineUserPool.Model
|
||
{
|
||
public class ReceiveModel
|
||
{
|
||
/// <summary>
|
||
/// 命令类型,0ping命令,1消息, 2设置客户端信息, 3观察者模式
|
||
/// </summary>
|
||
public byte CommandType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 能处理的消息格式的版本号
|
||
/// </summary>
|
||
public int V { get; set; }
|
||
}
|
||
|
||
public class SetClientCommand : ReceiveModel
|
||
{
|
||
|
||
public string Encoding { get; set; }
|
||
|
||
public string Client { get; set; }
|
||
|
||
public int Competitionid { get; set; }
|
||
|
||
public bool IsWatch { get; set; }
|
||
|
||
public int MemberId { get; set; }
|
||
}
|
||
|
||
public class SetWatchCommand :ReceiveModel
|
||
{
|
||
public int Competitionid { get; set; }
|
||
}
|
||
}
|