2021-07-07 09:49:36 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
2024-01-24 15:23:28 +08:00
|
|
|
|
using Prism.Mvvm;
|
2021-07-07 09:49:36 +08:00
|
|
|
|
|
|
|
|
|
|
namespace OnlineUserPool.Model
|
|
|
|
|
|
{
|
2024-01-24 15:23:28 +08:00
|
|
|
|
public class ReceiveModel : BindableBase
|
2021-07-07 09:49:36 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 命令类型,0ping命令,1消息, 2设置客户端信息, 3观察者模式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public byte CommandType { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 能处理的消息格式的版本号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int V { get; set; }
|
2022-05-10 19:23:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 子命令类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
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; }
|
2021-07-07 09:49:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|