forked from powerfun/udpservice
49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace OnlineUserPool.Model
|
|
{
|
|
public class MsgModel : ReceiveModel
|
|
{
|
|
public int RouteId { get; set; }
|
|
public int MemberId { get; set; }
|
|
public double[] Point { get; set; }
|
|
public bool IsCompleted { get; set; }
|
|
|
|
public bool exit = false;
|
|
public double Speed { get; set; }
|
|
///// <summary>
|
|
///// 需要展示的属性
|
|
///// </summary>
|
|
//public string Prop { get; set; }
|
|
|
|
public double PreDistance { get; set; }
|
|
|
|
public double EndDistance { get; set; }
|
|
|
|
//public bool IsVirtual { get; set; }
|
|
|
|
//public double Power { get; set; }
|
|
//public double Weight { get; set; }
|
|
/// <summary>
|
|
/// 功率体重比
|
|
/// </summary>
|
|
public double WeightKg { get; set; }
|
|
|
|
public int Competitionid { get; set; }
|
|
|
|
public bool Saved { get; set; }
|
|
|
|
//public bool ShowVirtual { get; set; }
|
|
|
|
|
|
|
|
public string ToString(int v)
|
|
{
|
|
return $"{ RouteId },{ MemberId },{ string.Join(":", Point) },{ Convert.ToInt32(IsCompleted) },{ Speed },{ PreDistance },{ EndDistance },{ WeightKg },{ Competitionid },{ Convert.ToInt32(Saved) }";
|
|
}
|
|
}
|
|
}
|