-
Notifications
You must be signed in to change notification settings - Fork 0
/
D1001_Lap_Type.cs
79 lines (77 loc) · 2.13 KB
/
D1001_Lap_Type.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System;
namespace QuickRoute.GPSDeviceReaders.GarminUSBReader
{
public class D1001_Lap_Type
{
private UInt32 _index;
private UInt32 _start_time;
private UInt32 _total_time;
private float _total_dist;
private float _max_speed;
private D_Position_Type _begin;
private D_Position_Type _end;
private UInt16 _calories;
private byte _avg_heart_rate;
private byte _max_heart_rate;
private byte _intensity;
public UInt32 Index
{
set { _index = value; }
get { return _index; }
}
public UInt32 StartTime
{
set { _start_time = value; }
get { return _start_time; }
}
public DateTime StartTimeAsDateTime
{
get { return GarminDevice.GetDateTimeFromElapsedSeconds(_start_time); }
}
public UInt32 TotalTime
{
set { _total_time = value; }
get { return _total_time; }
}
public float TotalDist
{
set { _total_dist = value; }
get { return _total_dist; }
}
public float MaxSpeed
{
set { _max_speed = value; }
get { return _max_speed; }
}
public D_Position_Type Begin
{
set { _begin = value; }
get { return _begin; }
}
public D_Position_Type End
{
set { _end = value; }
get { return _end; }
}
public UInt16 Calories
{
set { _calories = value; }
get { return _calories; }
}
public byte AvgHeartRate
{
set { _avg_heart_rate = value; }
get { return _avg_heart_rate; }
}
public byte MaxHeartRate
{
set { _max_heart_rate = value; }
get { return _max_heart_rate; }
}
public byte Intensity
{
set { _intensity = value; }
get { return _intensity; }
}
}
}