骑行记录实时保存,异常中断重新连接
This commit is contained in:
1 parent
cc6730cbc4
commit
de4292d55a
11 files changed
+254
-67
No files matched your search
@@ -65,6 +65,7 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
||||
CurrentRouteStartDistance = param.EndDistance == 0 ? 0 : param.EndDistance,
|
||||
//DeviceNumber = DeviceNumber,
|
||||
//AntModelId = antModelId
|
||||
selectParam = param,
|
||||
};
|
||||
|
||||
IsRecord = true;
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
||||
CurrentRouteStartDistance = 0,
|
||||
//DeviceNumber = DeviceNumber,
|
||||
//AntModelId = antModelId
|
||||
selectParam = param
|
||||
};
|
||||
|
||||
if (param != null)
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
||||
CurrentRoute = route,
|
||||
CurrentRouteStartDistance = 0,
|
||||
StartTime = UIManager.Now.GetDateTime(),//DateTime.Now
|
||||
selectParam = param
|
||||
};
|
||||
|
||||
if (param != null)
|
||||
|
||||
@@ -117,6 +117,8 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
public double? OneMinuteMaxAP { get; set; }
|
||||
public double? FiveMinutesMaxAp { get; set; }
|
||||
|
||||
public RouteResultParam selectParam { get; set; }
|
||||
|
||||
public void SaveWithLocalRecordAysnc(CyclingModel cyclingModel, RouteResultParam selectParam, string imageName,string recordId,string path)
|
||||
{
|
||||
Saved = true;
|
||||
@@ -261,4 +263,25 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class TempRecordData
|
||||
{
|
||||
public int RouteId { get; set; }
|
||||
public RouteResultParam selectParam { get; set; }
|
||||
public double CurrentRouteStartDistance { get; set; }
|
||||
public DateTime StartTime { get; set; }
|
||||
public double EndDistance { get; set; }
|
||||
public int? ManufacturerId { get; set; }
|
||||
|
||||
public string ManufacturerName { get; set; }
|
||||
|
||||
public string Mode { get; set; }
|
||||
|
||||
public int? AntModelId { get; set; }
|
||||
/// <summary>
|
||||
/// 骑行数据
|
||||
/// </summary>
|
||||
public List<TargetData> RiderDatas = new List<TargetData>();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user