powerfun-new-net/Model/ReceiveModel.cs

39 lines
851 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; }
}
}