コード例 #1
0
 override protected void ReadInternal(ResponseReader reader)
 {
     uint hours = reader.ReadByte();
     uint minutes = reader.ReadByte();
     uint seconds = reader.ReadByte();
     _time.TotalHundreths = 100 * (3600 * hours + 60 * minutes + seconds);
 }
コード例 #2
0
        override protected void ReadInternal(ResponseReader reader)
        {
            var length = reader.ReadByte();
            m_Data[0] = length;

            for (var index = 1; index < 33; index++)
                m_Data[index] = reader.ReadByte();
        }
コード例 #3
0
        override protected void ReadInternal(ResponseReader reader)
        {
            uint pace = reader.ReadUShort();
            reader.ReadByte(); // Expecting 0x39 - Seconds per kilometer

            _pace.TotalHundreths = 50 * pace;
        }
コード例 #4
0
 override protected void ReadInternal(ResponseReader reader)
 {
     StrokeRate = reader.ReadUShort();
     reader.ReadByte(); // Expecting 0x54 - StrokesPerMinute
 }
コード例 #5
0
 override protected void ReadInternal(ResponseReader reader)
 {
     _time.TotalHundreths = reader.ReadUInt() + reader.ReadByte();
 }
コード例 #6
0
 protected override void ReadInternal(ResponseReader reader)
 {
     Power = reader.ReadUShort();
     reader.ReadByte(); // Expecting 0x58 - Watts
 }
コード例 #7
0
 override protected void ReadInternal(ResponseReader reader)
 {
     HeartRate = reader.ReadByte();
 }
コード例 #8
0
 override protected void ReadInternal(ResponseReader reader)
 {
     _distance.TotalTenths = reader.ReadUInt() + reader.ReadByte();
 }
コード例 #9
0
 protected override void ReadInternal(ResponseReader reader)
 {
     DragFactor = (uint)reader.ReadByte();
 }
コード例 #10
0
 override protected void ReadInternal(ResponseReader reader)
 {
     _distance.TotalTenths = 10 * reader.ReadUShort();
     reader.ReadByte(); // Expecting 0x24 - Metres
 }
コード例 #11
0
        override protected void ReadInternal(ResponseReader reader)
        {
            var val = (StrokeState)reader.ReadByte();

            StrokeState = Enum.IsDefined(typeof(StrokeState), val) ? val : StrokeState.Unknown;
        }
コード例 #12
0
 override protected void ReadInternal(ResponseReader reader)
 {
     DragFactor = reader.ReadByte();
 }
コード例 #13
0
 override protected void ReadInternal(ResponseReader reader)
 {
     var val = (WorkoutType)reader.ReadByte();
     WorkoutType = Enum.IsDefined(typeof(WorkoutType), val) ? val : WorkoutType.Unknown;
 }