using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace OnlineUserPool.Model
{
public class MsgModel
{
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; }
/////
///// 需要展示的属性
/////
//public string Prop { get; set; }
public double PreDistance { get; set; }
public double EndDistance { get; set; }
///
/// 是否展示在线的人
///
//public bool ShowVirtual { get; set; }
///
/// 命令类型,0命令,1消息
///
public byte CommandType { get; set; }
//public bool IsVirtual { get; set; }
//public double Power { get; set; }
//public double Weight { get; set; }
///
/// 功率体重比
///
public double WeightKg { get; set; }
public int Competitionid { get; set; }
public bool Saved { get; set; }
///
/// 能处理的消息格式的版本号
///
public int V { get; set; }
public string ToString(int v)
{
return $"{ RouteId },{ MemberId },{ string.Join(":", Point) },{ Convert.ToInt32(IsCompleted) },{ Speed },{ PreDistance },{ EndDistance },{ WeightKg },{ Competitionid },{ Convert.ToInt32(Saved) }";
}
}
}