protected override void ReadImplementation(IResponseReader responseReader, ushort _) { Value = (ProductVersion?)new ProductVersion { ManufacturerId = (byte)responseReader.ReadByte(), CID = (byte)responseReader.ReadByte(), Model = (byte)responseReader.ReadByte(), HardwareVersion = (ushort)responseReader.ReadUShort(), SoftwareVersion = (ushort)responseReader.ReadUShort() }; }
protected override void ReadImplementation(IResponseReader responseReader, ushort _) { Value = new UserInfo { Weight = responseReader.ReadUShort(), Units = (UnitType)responseReader.ReadByte(), Age = responseReader.ReadByte(), Gender = (Gender)responseReader.ReadByte() }; }
protected override void ReadImplementation(IResponseReader responseReader, ushort _) { byte size = (byte)responseReader.ReadByte(); List <ushort> heartbeats = new List <ushort>(); for (int i = 0; i < size; i += 2) { heartbeats.Add((ushort)responseReader.ReadUShort()); } Value = (ushort[]?)heartbeats.ToArray(); }
protected override void ReadImplementation(IResponseReader responseReader, ushort _) { Value = (StrokeStatistics?)new StrokeStatistics() { Distance = (ushort)responseReader.ReadUShort(), DriveTime = (byte)responseReader.ReadByte(), RecoveryTime = (ushort)responseReader.ReadUShort(), Length = (byte)responseReader.ReadByte(), Count = (ushort)responseReader.ReadUShort(), Peak = (ushort)responseReader.ReadUShort(), ImpulseForce = (ushort)responseReader.ReadUShort(), AverageForce = (ushort)responseReader.ReadUShort(), WorkPerStroke = (ushort)responseReader.ReadUShort() }; }
protected override void ReadImplementation(IResponseReader responseReader, ushort _) { Value = (ushort?)responseReader.ReadUShort(); responseReader.ReadByte(); // TODO: Units }
protected override void ReadImplementation(IResponseReader responseReader, ushort _) { Value = (ushort?)responseReader.ReadUShort(); }