forked from powerfun/udpservice
tcp传输增加心率踏频等
This commit is contained in:
1 parent
c380654041
commit
f33dd4fa2e
4 files changed
+13
-5
No files matched your search
+9
-1
@@ -14,6 +14,10 @@ namespace OnlineUserPool.Model
|
||||
|
||||
public bool exit = false;
|
||||
public double Speed { get; set; }
|
||||
public double HeartRate { get; set; }
|
||||
public double Power { get; set; }
|
||||
public double Cadence { get; set; }
|
||||
public int TotalTicks { get; set; }
|
||||
///// <summary>
|
||||
///// 需要展示的属性
|
||||
///// </summary>
|
||||
@@ -42,7 +46,11 @@ namespace OnlineUserPool.Model
|
||||
|
||||
public string ToString(int v)
|
||||
{
|
||||
return $"{ RouteId },{ MemberId },{ string.Join(":", Point) },{ Convert.ToInt32(IsCompleted) },{ Speed },{ PreDistance },{ EndDistance },{ WeightKg },{ Competitionid },{ Convert.ToInt32(Saved) }";
|
||||
if (v == 2)
|
||||
{
|
||||
return $"{ RouteId },{ MemberId },{ string.Join(":", Point) },{ Convert.ToInt32(IsCompleted) },{ Speed },{ PreDistance },{ EndDistance },{ WeightKg },{ Competitionid },{ Convert.ToInt32(Saved)},{ Power} ,{ HeartRate},{ Cadence},{ TotalTicks}";
|
||||
}
|
||||
return $"{ RouteId },{ MemberId },{ string.Join(":", Point) },{ Convert.ToInt32(IsCompleted) },{ Speed },{ PreDistance },{ EndDistance },{ WeightKg },{ Competitionid },{ Convert.ToInt32(Saved)}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user