powerfun-new-net/Model/RoomModel.cs

70 lines
2.3 KiB
C#
Raw Normal View History

2022-05-10 19:23:32 +08:00
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; }//房主
public int Status { get; set; }//房间状态 0 :准备状态 1开始loading 2结束
2022-05-10 19:23:32 +08:00
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}";
}
}
}