powerfun-new-net/Model/RoomModel.cs
2023-02-10 09:43:04 +08:00

73 lines
2.4 KiB
C#
Raw Permalink 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 RoomModel
{
public int Id { get; set; }
public int RoomId { get; set; }
public string Name { get; set; }
public int UserId { get; set; }//房主
/// <summary>
/// 房间状态 0 :准备状态 1开始loading 2结束
/// </summary>
public int Status { get; set; }
public DateTime StatusChangedTime { get; set; }
public DateTime CreateTime { get; set; }//创建时间
public DateTime? StartTime { get; set; }//开始时间
public int CloseTime { get; set; }
public int MaxMembers { get; set; }
public int MapRouteId { 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 Password { get; set; }
public string FileName { get; set; }
public string FileUrl { get; set; }
public string AltitudeGraph { get; set; }
public bool Saved { get; set; }
public List<RoomDetailModel> List { get; set; }
public override string ToString()
{
return $"{RoomId},{UserId},{Name},{CloseTime},{MaxMembers},{MapRouteId},{MapRouteName},{Distance},{TotalClimb},{AverageGrade},{Enable3D},{EnableAR},{IsLock},{Password},{FileName},{FileUrl},{AltitudeGraph},{Status},{StartTime}";
}
}
public class RoomDetailModel
{
public int RoomId { get; set; }
public int UserId { get; set; }
public DateTime JoinAt { get; set; }
public int Status { get; set; }
public double Process { get; set; }
public bool IsOwner { get; set; }
public bool Saved { get; set; }
public DateTime LastActiveTime { get; set; }
public override string ToString()
{
return $"{RoomId},{UserId},{JoinAt},{Status},{Process},{IsOwner}";
}
}
//附件信息
public class ExtendPropertiesModel
{
//AR骑行的视频帧数
public int FrameRate { get; set; }
public override string ToString()
{
return $"{FrameRate}";
}
}
}