powerfun-new-net/Model/ReceiveModel.cs
2024-01-24 15:23:28 +08:00

128 lines
3.1 KiB
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;
using Prism.Mvvm;
namespace OnlineUserPool.Model
{
public class ReceiveModel : BindableBase
{
/// <summary>
/// 命令类型,0ping命令1消息, 2设置客户端信息, 3观察者模式
/// </summary>
public byte CommandType { get; set; }
/// <summary>
/// 能处理的消息格式的版本号
/// </summary>
public int V { get; set; }
/// <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; }
}
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; }
}
}