123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772 |
- #region Copyright
- ////////////////////////////////////////////////////////////////////////////////
- // The following FIT Protocol software provided may be used with FIT protocol
- // devices only and remains the copyrighted property of Dynastream Innovations Inc.
- // The software is being provided on an "as-is" basis and as an accommodation,
- // and therefore all warranties, representations, or guarantees of any kind
- // (whether express, implied or statutory) including, without limitation,
- // warranties of merchantability, non-infringement, or fitness for a particular
- // purpose, are specifically disclaimed.
- //
- // Copyright 2016 Dynastream Innovations Inc.
- ////////////////////////////////////////////////////////////////////////////////
- // ****WARNING**** This file is auto-generated! Do NOT edit this file.
- // Profile Version = 16.60Release
- // Tag = production-akw-16.60.00-0-g5d3d436
- ////////////////////////////////////////////////////////////////////////////////
- #endregion
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Text;
- using System.IO;
- namespace Dynastream.Fit
- {
- /// <summary>
- /// Implements the BikeProfile profile message.
- /// </summary>
- public class BikeProfileMesg : Mesg
- {
- #region Fields
- #endregion
- #region Constructors
- public BikeProfileMesg() : base(Profile.GetMesg(MesgNum.BikeProfile))
- {
- }
- public BikeProfileMesg(Mesg mesg) : base(mesg)
- {
- }
- #endregion // Constructors
- #region Methods
- ///<summary>
- /// Retrieves the MessageIndex field</summary>
- /// <returns>Returns nullable ushort representing the MessageIndex field</returns>
- public ushort? GetMessageIndex()
- {
- return (ushort?)GetFieldValue(254, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set MessageIndex field</summary>
- /// <param name="messageIndex_">Nullable field value to be set</param>
- public void SetMessageIndex(ushort? messageIndex_)
- {
- SetFieldValue(254, 0, messageIndex_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Name field</summary>
- /// <returns>Returns byte[] representing the Name field</returns>
- public byte[] GetName()
- {
- return (byte[])GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Name field</summary>
- /// <returns>Returns String representing the Name field</returns>
- public String GetNameAsString()
- {
- return Encoding.UTF8.GetString((byte[])GetFieldValue(0, 0, Fit.SubfieldIndexMainField));
- }
-
-
- ///<summary>
- /// Set Name field</summary>
- /// <param name="name_"> field value to be set</param>
- public void SetName(String name_)
- {
- SetFieldValue(0, 0, System.Text.Encoding.UTF8.GetBytes(name_), Fit.SubfieldIndexMainField);
- }
-
- /// <summary>
- /// Set Name field</summary>
- /// <param name="name_">field value to be set</param>
- public void SetName(byte[] name_)
- {
- SetFieldValue(0, 0, name_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Sport field</summary>
- /// <returns>Returns nullable Sport enum representing the Sport field</returns>
- public Sport? GetSport()
- {
- object obj = GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
- Sport? value = obj == null ? (Sport?)null : (Sport)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set Sport field</summary>
- /// <param name="sport_">Nullable field value to be set</param>
- public void SetSport(Sport? sport_)
- {
- SetFieldValue(1, 0, sport_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the SubSport field</summary>
- /// <returns>Returns nullable SubSport enum representing the SubSport field</returns>
- public SubSport? GetSubSport()
- {
- object obj = GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
- SubSport? value = obj == null ? (SubSport?)null : (SubSport)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set SubSport field</summary>
- /// <param name="subSport_">Nullable field value to be set</param>
- public void SetSubSport(SubSport? subSport_)
- {
- SetFieldValue(2, 0, subSport_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Odometer field
- /// Units: m</summary>
- /// <returns>Returns nullable float representing the Odometer field</returns>
- public float? GetOdometer()
- {
- return (float?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set Odometer field
- /// Units: m</summary>
- /// <param name="odometer_">Nullable field value to be set</param>
- public void SetOdometer(float? odometer_)
- {
- SetFieldValue(3, 0, odometer_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the BikeSpdAntId field</summary>
- /// <returns>Returns nullable ushort representing the BikeSpdAntId field</returns>
- public ushort? GetBikeSpdAntId()
- {
- return (ushort?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set BikeSpdAntId field</summary>
- /// <param name="bikeSpdAntId_">Nullable field value to be set</param>
- public void SetBikeSpdAntId(ushort? bikeSpdAntId_)
- {
- SetFieldValue(4, 0, bikeSpdAntId_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the BikeCadAntId field</summary>
- /// <returns>Returns nullable ushort representing the BikeCadAntId field</returns>
- public ushort? GetBikeCadAntId()
- {
- return (ushort?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set BikeCadAntId field</summary>
- /// <param name="bikeCadAntId_">Nullable field value to be set</param>
- public void SetBikeCadAntId(ushort? bikeCadAntId_)
- {
- SetFieldValue(5, 0, bikeCadAntId_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the BikeSpdcadAntId field</summary>
- /// <returns>Returns nullable ushort representing the BikeSpdcadAntId field</returns>
- public ushort? GetBikeSpdcadAntId()
- {
- return (ushort?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set BikeSpdcadAntId field</summary>
- /// <param name="bikeSpdcadAntId_">Nullable field value to be set</param>
- public void SetBikeSpdcadAntId(ushort? bikeSpdcadAntId_)
- {
- SetFieldValue(6, 0, bikeSpdcadAntId_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the BikePowerAntId field</summary>
- /// <returns>Returns nullable ushort representing the BikePowerAntId field</returns>
- public ushort? GetBikePowerAntId()
- {
- return (ushort?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set BikePowerAntId field</summary>
- /// <param name="bikePowerAntId_">Nullable field value to be set</param>
- public void SetBikePowerAntId(ushort? bikePowerAntId_)
- {
- SetFieldValue(7, 0, bikePowerAntId_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the CustomWheelsize field
- /// Units: m</summary>
- /// <returns>Returns nullable float representing the CustomWheelsize field</returns>
- public float? GetCustomWheelsize()
- {
- return (float?)GetFieldValue(8, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set CustomWheelsize field
- /// Units: m</summary>
- /// <param name="customWheelsize_">Nullable field value to be set</param>
- public void SetCustomWheelsize(float? customWheelsize_)
- {
- SetFieldValue(8, 0, customWheelsize_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the AutoWheelsize field
- /// Units: m</summary>
- /// <returns>Returns nullable float representing the AutoWheelsize field</returns>
- public float? GetAutoWheelsize()
- {
- return (float?)GetFieldValue(9, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set AutoWheelsize field
- /// Units: m</summary>
- /// <param name="autoWheelsize_">Nullable field value to be set</param>
- public void SetAutoWheelsize(float? autoWheelsize_)
- {
- SetFieldValue(9, 0, autoWheelsize_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the BikeWeight field
- /// Units: kg</summary>
- /// <returns>Returns nullable float representing the BikeWeight field</returns>
- public float? GetBikeWeight()
- {
- return (float?)GetFieldValue(10, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set BikeWeight field
- /// Units: kg</summary>
- /// <param name="bikeWeight_">Nullable field value to be set</param>
- public void SetBikeWeight(float? bikeWeight_)
- {
- SetFieldValue(10, 0, bikeWeight_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the PowerCalFactor field
- /// Units: %</summary>
- /// <returns>Returns nullable float representing the PowerCalFactor field</returns>
- public float? GetPowerCalFactor()
- {
- return (float?)GetFieldValue(11, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set PowerCalFactor field
- /// Units: %</summary>
- /// <param name="powerCalFactor_">Nullable field value to be set</param>
- public void SetPowerCalFactor(float? powerCalFactor_)
- {
- SetFieldValue(11, 0, powerCalFactor_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the AutoWheelCal field</summary>
- /// <returns>Returns nullable Bool enum representing the AutoWheelCal field</returns>
- public Bool? GetAutoWheelCal()
- {
- object obj = GetFieldValue(12, 0, Fit.SubfieldIndexMainField);
- Bool? value = obj == null ? (Bool?)null : (Bool)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set AutoWheelCal field</summary>
- /// <param name="autoWheelCal_">Nullable field value to be set</param>
- public void SetAutoWheelCal(Bool? autoWheelCal_)
- {
- SetFieldValue(12, 0, autoWheelCal_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the AutoPowerZero field</summary>
- /// <returns>Returns nullable Bool enum representing the AutoPowerZero field</returns>
- public Bool? GetAutoPowerZero()
- {
- object obj = GetFieldValue(13, 0, Fit.SubfieldIndexMainField);
- Bool? value = obj == null ? (Bool?)null : (Bool)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set AutoPowerZero field</summary>
- /// <param name="autoPowerZero_">Nullable field value to be set</param>
- public void SetAutoPowerZero(Bool? autoPowerZero_)
- {
- SetFieldValue(13, 0, autoPowerZero_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Id field</summary>
- /// <returns>Returns nullable byte representing the Id field</returns>
- public byte? GetId()
- {
- return (byte?)GetFieldValue(14, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set Id field</summary>
- /// <param name="id_">Nullable field value to be set</param>
- public void SetId(byte? id_)
- {
- SetFieldValue(14, 0, id_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the SpdEnabled field</summary>
- /// <returns>Returns nullable Bool enum representing the SpdEnabled field</returns>
- public Bool? GetSpdEnabled()
- {
- object obj = GetFieldValue(15, 0, Fit.SubfieldIndexMainField);
- Bool? value = obj == null ? (Bool?)null : (Bool)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set SpdEnabled field</summary>
- /// <param name="spdEnabled_">Nullable field value to be set</param>
- public void SetSpdEnabled(Bool? spdEnabled_)
- {
- SetFieldValue(15, 0, spdEnabled_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the CadEnabled field</summary>
- /// <returns>Returns nullable Bool enum representing the CadEnabled field</returns>
- public Bool? GetCadEnabled()
- {
- object obj = GetFieldValue(16, 0, Fit.SubfieldIndexMainField);
- Bool? value = obj == null ? (Bool?)null : (Bool)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set CadEnabled field</summary>
- /// <param name="cadEnabled_">Nullable field value to be set</param>
- public void SetCadEnabled(Bool? cadEnabled_)
- {
- SetFieldValue(16, 0, cadEnabled_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the SpdcadEnabled field</summary>
- /// <returns>Returns nullable Bool enum representing the SpdcadEnabled field</returns>
- public Bool? GetSpdcadEnabled()
- {
- object obj = GetFieldValue(17, 0, Fit.SubfieldIndexMainField);
- Bool? value = obj == null ? (Bool?)null : (Bool)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set SpdcadEnabled field</summary>
- /// <param name="spdcadEnabled_">Nullable field value to be set</param>
- public void SetSpdcadEnabled(Bool? spdcadEnabled_)
- {
- SetFieldValue(17, 0, spdcadEnabled_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the PowerEnabled field</summary>
- /// <returns>Returns nullable Bool enum representing the PowerEnabled field</returns>
- public Bool? GetPowerEnabled()
- {
- object obj = GetFieldValue(18, 0, Fit.SubfieldIndexMainField);
- Bool? value = obj == null ? (Bool?)null : (Bool)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set PowerEnabled field</summary>
- /// <param name="powerEnabled_">Nullable field value to be set</param>
- public void SetPowerEnabled(Bool? powerEnabled_)
- {
- SetFieldValue(18, 0, powerEnabled_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the CrankLength field
- /// Units: mm</summary>
- /// <returns>Returns nullable float representing the CrankLength field</returns>
- public float? GetCrankLength()
- {
- return (float?)GetFieldValue(19, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set CrankLength field
- /// Units: mm</summary>
- /// <param name="crankLength_">Nullable field value to be set</param>
- public void SetCrankLength(float? crankLength_)
- {
- SetFieldValue(19, 0, crankLength_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Enabled field</summary>
- /// <returns>Returns nullable Bool enum representing the Enabled field</returns>
- public Bool? GetEnabled()
- {
- object obj = GetFieldValue(20, 0, Fit.SubfieldIndexMainField);
- Bool? value = obj == null ? (Bool?)null : (Bool)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set Enabled field</summary>
- /// <param name="enabled_">Nullable field value to be set</param>
- public void SetEnabled(Bool? enabled_)
- {
- SetFieldValue(20, 0, enabled_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the BikeSpdAntIdTransType field</summary>
- /// <returns>Returns nullable byte representing the BikeSpdAntIdTransType field</returns>
- public byte? GetBikeSpdAntIdTransType()
- {
- return (byte?)GetFieldValue(21, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set BikeSpdAntIdTransType field</summary>
- /// <param name="bikeSpdAntIdTransType_">Nullable field value to be set</param>
- public void SetBikeSpdAntIdTransType(byte? bikeSpdAntIdTransType_)
- {
- SetFieldValue(21, 0, bikeSpdAntIdTransType_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the BikeCadAntIdTransType field</summary>
- /// <returns>Returns nullable byte representing the BikeCadAntIdTransType field</returns>
- public byte? GetBikeCadAntIdTransType()
- {
- return (byte?)GetFieldValue(22, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set BikeCadAntIdTransType field</summary>
- /// <param name="bikeCadAntIdTransType_">Nullable field value to be set</param>
- public void SetBikeCadAntIdTransType(byte? bikeCadAntIdTransType_)
- {
- SetFieldValue(22, 0, bikeCadAntIdTransType_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the BikeSpdcadAntIdTransType field</summary>
- /// <returns>Returns nullable byte representing the BikeSpdcadAntIdTransType field</returns>
- public byte? GetBikeSpdcadAntIdTransType()
- {
- return (byte?)GetFieldValue(23, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set BikeSpdcadAntIdTransType field</summary>
- /// <param name="bikeSpdcadAntIdTransType_">Nullable field value to be set</param>
- public void SetBikeSpdcadAntIdTransType(byte? bikeSpdcadAntIdTransType_)
- {
- SetFieldValue(23, 0, bikeSpdcadAntIdTransType_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the BikePowerAntIdTransType field</summary>
- /// <returns>Returns nullable byte representing the BikePowerAntIdTransType field</returns>
- public byte? GetBikePowerAntIdTransType()
- {
- return (byte?)GetFieldValue(24, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set BikePowerAntIdTransType field</summary>
- /// <param name="bikePowerAntIdTransType_">Nullable field value to be set</param>
- public void SetBikePowerAntIdTransType(byte? bikePowerAntIdTransType_)
- {
- SetFieldValue(24, 0, bikePowerAntIdTransType_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the OdometerRollover field
- /// Comment: Rollover counter that can be used to extend the odometer</summary>
- /// <returns>Returns nullable byte representing the OdometerRollover field</returns>
- public byte? GetOdometerRollover()
- {
- return (byte?)GetFieldValue(37, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set OdometerRollover field
- /// Comment: Rollover counter that can be used to extend the odometer</summary>
- /// <param name="odometerRollover_">Nullable field value to be set</param>
- public void SetOdometerRollover(byte? odometerRollover_)
- {
- SetFieldValue(37, 0, odometerRollover_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the FrontGearNum field
- /// Comment: Number of front gears</summary>
- /// <returns>Returns nullable byte representing the FrontGearNum field</returns>
- public byte? GetFrontGearNum()
- {
- return (byte?)GetFieldValue(38, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set FrontGearNum field
- /// Comment: Number of front gears</summary>
- /// <param name="frontGearNum_">Nullable field value to be set</param>
- public void SetFrontGearNum(byte? frontGearNum_)
- {
- SetFieldValue(38, 0, frontGearNum_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field FrontGear</returns>
- public int GetNumFrontGear()
- {
- return GetNumFieldValues(39, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the FrontGear field
- /// Comment: Number of teeth on each gear 0 is innermost</summary>
- /// <param name="index">0 based index of FrontGear element to retrieve</param>
- /// <returns>Returns nullable byte representing the FrontGear field</returns>
- public byte? GetFrontGear(int index)
- {
- return (byte?)GetFieldValue(39, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set FrontGear field
- /// Comment: Number of teeth on each gear 0 is innermost</summary>
- /// <param name="index">0 based index of front_gear</param>
- /// <param name="frontGear_">Nullable field value to be set</param>
- public void SetFrontGear(int index, byte? frontGear_)
- {
- SetFieldValue(39, index, frontGear_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the RearGearNum field
- /// Comment: Number of rear gears</summary>
- /// <returns>Returns nullable byte representing the RearGearNum field</returns>
- public byte? GetRearGearNum()
- {
- return (byte?)GetFieldValue(40, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set RearGearNum field
- /// Comment: Number of rear gears</summary>
- /// <param name="rearGearNum_">Nullable field value to be set</param>
- public void SetRearGearNum(byte? rearGearNum_)
- {
- SetFieldValue(40, 0, rearGearNum_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field RearGear</returns>
- public int GetNumRearGear()
- {
- return GetNumFieldValues(41, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the RearGear field
- /// Comment: Number of teeth on each gear 0 is innermost</summary>
- /// <param name="index">0 based index of RearGear element to retrieve</param>
- /// <returns>Returns nullable byte representing the RearGear field</returns>
- public byte? GetRearGear(int index)
- {
- return (byte?)GetFieldValue(41, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set RearGear field
- /// Comment: Number of teeth on each gear 0 is innermost</summary>
- /// <param name="index">0 based index of rear_gear</param>
- /// <param name="rearGear_">Nullable field value to be set</param>
- public void SetRearGear(int index, byte? rearGear_)
- {
- SetFieldValue(41, index, rearGear_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the ShimanoDi2Enabled field</summary>
- /// <returns>Returns nullable Bool enum representing the ShimanoDi2Enabled field</returns>
- public Bool? GetShimanoDi2Enabled()
- {
- object obj = GetFieldValue(44, 0, Fit.SubfieldIndexMainField);
- Bool? value = obj == null ? (Bool?)null : (Bool)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set ShimanoDi2Enabled field</summary>
- /// <param name="shimanoDi2Enabled_">Nullable field value to be set</param>
- public void SetShimanoDi2Enabled(Bool? shimanoDi2Enabled_)
- {
- SetFieldValue(44, 0, shimanoDi2Enabled_, Fit.SubfieldIndexMainField);
- }
-
- #endregion // Methods
- } // Class
- } // namespace
|