using System; using System.Collections.Generic; using System.Text; using Prism.Mvvm; namespace OnlineUserPool.Model { public class ReceiveModel : BindableBase { /// /// 命令类型,0ping命令,1消息, 2设置客户端信息, 3观察者模式 /// public byte CommandType { get; set; } /// /// 能处理的消息格式的版本号 /// public int V { get; set; } /// /// 子命令类型 /// public byte SubType { get; set; } } public class SetModelCommand : ReceiveModel { public string Model { get; set; } } public class QueryGameRoomListCommand : ReceiveModel { public string Name { get; set; } public int UserId { get; set; } public int PageIndex { get; set; } public int PageSize { get; set; } } public class CreateGameRoomCommand : ReceiveModel { public int Id { get; set; } public string Name { get; set; } public int RouteId { get; set; } public int UserId { get; set; } public int CloseTime { get; set; } public int MaxMembers { get; set; } public string Password { get; set; } public DateTime CreateTime { get; set; } public string MapRouteName { get; set; } public double Distance { get; set; } public double TotalClimb { get; set; } public double AverageGrade { get; set; } public bool Enable3D { get; set; } public bool EnableAR { get; set; } public bool IsLock { get; set; } public string FileName { get; set; } public string FileUrl { get; set; } public string AltitudeGraph { get; set; } } public class JoinGameRoomCommand : ReceiveModel { public int RoomId { get; set; } public int UserId { get; set; } public DateTime JoinAt { get; set; } } public class GameRoomReadyCommand : ReceiveModel { public int RoomId { get; set; } public int UserId { get; set; } public int Status { get; set; } } public class GameRoomStartCommand : ReceiveModel { public int RoomId { get; set; } public int UserId { get; set; } public DateTime StartTime { get; set; } } public class GameRoomKickCommand : ReceiveModel { public int RoomId { get; set; } public int UserId { get; set; }//被踢的人 public int OnwerId { get; set; }//房主 } public class GameRoomProcessCommand : ReceiveModel { public int RoomId { get; set; } public int UserId { get; set; } public double Process { 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; } } }