using System; using System.Collections.Generic; using System.Text; namespace OnlineUserPool.Model { public class ReceiveModel { /// /// 命令类型,0ping命令,1消息, 2设置客户端信息, 3观察者模式 /// public byte CommandType { get; set; } /// /// 能处理的消息格式的版本号 /// 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; } } }