示例#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);
 }
        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
 }
 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
 }
 override protected void ReadInternal(ResponseReader reader)
 {
     HeartRate = reader.ReadByte();
 }
 override protected void ReadInternal(ResponseReader reader)
 {
     _distance.TotalTenths = reader.ReadUInt() + reader.ReadByte();
 }
 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
 }
        override protected void ReadInternal(ResponseReader reader)
        {
            var val = (StrokeState)reader.ReadByte();

            StrokeState = Enum.IsDefined(typeof(StrokeState), val) ? val : StrokeState.Unknown;
        }
 override protected void ReadInternal(ResponseReader reader)
 {
     DragFactor = reader.ReadByte();
 }
 override protected void ReadInternal(ResponseReader reader)
 {
     var val = (WorkoutType)reader.ReadByte();
     WorkoutType = Enum.IsDefined(typeof(WorkoutType), val) ? val : WorkoutType.Unknown;
 }