Exemple #1
0
 public FitDeviceInfo(DeviceInfoMesg msg)
 {
     AntDeviceNumber     = msg.GetAntDeviceNumber();
     AntDeviceType       = msg.GetAntDeviceType();
     AntNetwork          = msg.GetAntNetwork();
     AntplusDeviceType   = msg.GetAntplusDeviceType();
     AntTransmissionType = msg.GetAntTransmissionType();
     BatteryStatus       = msg.GetBatteryStatus();
     BatteryVoltage      = msg.GetBatteryVoltage();
     CumOperatingTime    = FitFile.GetTimeSpan(msg.GetCumOperatingTime());
     Descriptor          = msg.GetDescriptorAsString();
     DeviceIndex         = msg.GetDeviceIndex();
     DeviceType          = msg.GetDeviceType();
     FaveroProduct       = msg.GetFaveroProduct();
     GarminProduct       = msg.GetGarminProduct();
     HardwareVersion     = msg.GetHardwareVersion();
     Manufacturer        = msg.GetManufacturer();
     Product             = msg.GetProduct();
     ProductName         = msg.GetProductNameAsString();
     SensorPosition      = msg.GetSensorPosition();
     SerialNumber        = msg.GetSerialNumber();
     SoftwareVersion     = msg.GetSoftwareVersion();
     SourceType          = msg.GetSourceType();
     Timestamp           = FitFile.GetDateTime(msg.GetTimestamp());
 }