123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722 |
- #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 Event profile message.
- /// </summary>
- public class EventMesg : Mesg
- {
- #region Fields
- static class DataSubfield
- {
- public static ushort TimerTrigger = 0;
- public static ushort CoursePointIndex = 1;
- public static ushort BatteryLevel = 2;
- public static ushort VirtualPartnerSpeed = 3;
- public static ushort HrHighAlert = 4;
- public static ushort HrLowAlert = 5;
- public static ushort SpeedHighAlert = 6;
- public static ushort SpeedLowAlert = 7;
- public static ushort CadHighAlert = 8;
- public static ushort CadLowAlert = 9;
- public static ushort PowerHighAlert = 10;
- public static ushort PowerLowAlert = 11;
- public static ushort TimeDurationAlert = 12;
- public static ushort DistanceDurationAlert = 13;
- public static ushort CalorieDurationAlert = 14;
- public static ushort FitnessEquipmentState = 15;
- public static ushort SportPoint = 16;
- public static ushort GearChangeData = 17;
- public static ushort RiderPosition = 18;
- public static ushort CommTimeout = 19;
- public static ushort Subfields = 20;
- public static ushort Active = Fit.SubfieldIndexActiveSubfield;
- public static ushort MainField = Fit.SubfieldIndexMainField;
- }
- #endregion
- #region Constructors
- public EventMesg() : base(Profile.GetMesg(MesgNum.Event))
- {
- }
- public EventMesg(Mesg mesg) : base(mesg)
- {
- }
- #endregion // Constructors
- #region Methods
- ///<summary>
- /// Retrieves the Timestamp field
- /// Units: s</summary>
- /// <returns>Returns DateTime representing the Timestamp field</returns>
- public DateTime GetTimestamp()
- {
- return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField));
- }
-
-
- /// <summary>
- /// Set Timestamp field
- /// Units: s</summary>
- /// <param name="timestamp_">Nullable field value to be set</param>
- public void SetTimestamp(DateTime timestamp_)
- {
- SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Event field</summary>
- /// <returns>Returns nullable Event enum representing the Event field</returns>
- public Event? GetEvent()
- {
- object obj = GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
- Event? value = obj == null ? (Event?)null : (Event)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set Event field</summary>
- /// <param name="event_">Nullable field value to be set</param>
- public void SetEvent(Event? event_)
- {
- SetFieldValue(0, 0, event_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the EventType field</summary>
- /// <returns>Returns nullable EventType enum representing the EventType field</returns>
- public EventType? GetEventType()
- {
- object obj = GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
- EventType? value = obj == null ? (EventType?)null : (EventType)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set EventType field</summary>
- /// <param name="eventType_">Nullable field value to be set</param>
- public void SetEventType(EventType? eventType_)
- {
- SetFieldValue(1, 0, eventType_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Data16 field</summary>
- /// <returns>Returns nullable ushort representing the Data16 field</returns>
- public ushort? GetData16()
- {
- return (ushort?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set Data16 field</summary>
- /// <param name="data16_">Nullable field value to be set</param>
- public void SetData16(ushort? data16_)
- {
- SetFieldValue(2, 0, data16_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Data field</summary>
- /// <returns>Returns nullable uint representing the Data field</returns>
- public uint? GetData()
- {
- return (uint?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set Data field</summary>
- /// <param name="data_">Nullable field value to be set</param>
- public void SetData(uint? data_)
- {
- SetFieldValue(3, 0, data_, Fit.SubfieldIndexMainField);
- }
-
- /// <summary>
- /// Retrieves the TimerTrigger subfield</summary>
- /// <returns>Nullable TimerTrigger enum representing the TimerTrigger subfield</returns>
- public TimerTrigger? GetTimerTrigger()
- {
- return (TimerTrigger?)GetFieldValue(3, 0, DataSubfield.TimerTrigger);
- }
- /// <summary>
- ///
- /// Set TimerTrigger subfield</summary>
- /// <param name="timerTrigger">Subfield value to be set</param>
- public void SetTimerTrigger(byte? timerTrigger)
- {
- SetFieldValue(3, 0, timerTrigger, DataSubfield.TimerTrigger);
- }
- /// <summary>
- /// Retrieves the CoursePointIndex subfield</summary>
- /// <returns>Nullable ushort representing the CoursePointIndex subfield</returns>
- public ushort? GetCoursePointIndex()
- {
- return (ushort?)GetFieldValue(3, 0, DataSubfield.CoursePointIndex);
- }
- /// <summary>
- ///
- /// Set CoursePointIndex subfield</summary>
- /// <param name="coursePointIndex">Subfield value to be set</param>
- public void SetCoursePointIndex(ushort? coursePointIndex)
- {
- SetFieldValue(3, 0, coursePointIndex, DataSubfield.CoursePointIndex);
- }
- /// <summary>
- /// Retrieves the BatteryLevel subfield
- /// Units: V</summary>
- /// <returns>Nullable float representing the BatteryLevel subfield</returns>
- public float? GetBatteryLevel()
- {
- return (float?)GetFieldValue(3, 0, DataSubfield.BatteryLevel);
- }
- /// <summary>
- ///
- /// Set BatteryLevel subfield
- /// Units: V</summary>
- /// <param name="batteryLevel">Subfield value to be set</param>
- public void SetBatteryLevel(float? batteryLevel)
- {
- SetFieldValue(3, 0, batteryLevel, DataSubfield.BatteryLevel);
- }
- /// <summary>
- /// Retrieves the VirtualPartnerSpeed subfield
- /// Units: m/s</summary>
- /// <returns>Nullable float representing the VirtualPartnerSpeed subfield</returns>
- public float? GetVirtualPartnerSpeed()
- {
- return (float?)GetFieldValue(3, 0, DataSubfield.VirtualPartnerSpeed);
- }
- /// <summary>
- ///
- /// Set VirtualPartnerSpeed subfield
- /// Units: m/s</summary>
- /// <param name="virtualPartnerSpeed">Subfield value to be set</param>
- public void SetVirtualPartnerSpeed(float? virtualPartnerSpeed)
- {
- SetFieldValue(3, 0, virtualPartnerSpeed, DataSubfield.VirtualPartnerSpeed);
- }
- /// <summary>
- /// Retrieves the HrHighAlert subfield
- /// Units: bpm</summary>
- /// <returns>Nullable byte representing the HrHighAlert subfield</returns>
- public byte? GetHrHighAlert()
- {
- return (byte?)GetFieldValue(3, 0, DataSubfield.HrHighAlert);
- }
- /// <summary>
- ///
- /// Set HrHighAlert subfield
- /// Units: bpm</summary>
- /// <param name="hrHighAlert">Subfield value to be set</param>
- public void SetHrHighAlert(byte? hrHighAlert)
- {
- SetFieldValue(3, 0, hrHighAlert, DataSubfield.HrHighAlert);
- }
- /// <summary>
- /// Retrieves the HrLowAlert subfield
- /// Units: bpm</summary>
- /// <returns>Nullable byte representing the HrLowAlert subfield</returns>
- public byte? GetHrLowAlert()
- {
- return (byte?)GetFieldValue(3, 0, DataSubfield.HrLowAlert);
- }
- /// <summary>
- ///
- /// Set HrLowAlert subfield
- /// Units: bpm</summary>
- /// <param name="hrLowAlert">Subfield value to be set</param>
- public void SetHrLowAlert(byte? hrLowAlert)
- {
- SetFieldValue(3, 0, hrLowAlert, DataSubfield.HrLowAlert);
- }
- /// <summary>
- /// Retrieves the SpeedHighAlert subfield
- /// Units: m/s</summary>
- /// <returns>Nullable float representing the SpeedHighAlert subfield</returns>
- public float? GetSpeedHighAlert()
- {
- return (float?)GetFieldValue(3, 0, DataSubfield.SpeedHighAlert);
- }
- /// <summary>
- ///
- /// Set SpeedHighAlert subfield
- /// Units: m/s</summary>
- /// <param name="speedHighAlert">Subfield value to be set</param>
- public void SetSpeedHighAlert(float? speedHighAlert)
- {
- SetFieldValue(3, 0, speedHighAlert, DataSubfield.SpeedHighAlert);
- }
- /// <summary>
- /// Retrieves the SpeedLowAlert subfield
- /// Units: m/s</summary>
- /// <returns>Nullable float representing the SpeedLowAlert subfield</returns>
- public float? GetSpeedLowAlert()
- {
- return (float?)GetFieldValue(3, 0, DataSubfield.SpeedLowAlert);
- }
- /// <summary>
- ///
- /// Set SpeedLowAlert subfield
- /// Units: m/s</summary>
- /// <param name="speedLowAlert">Subfield value to be set</param>
- public void SetSpeedLowAlert(float? speedLowAlert)
- {
- SetFieldValue(3, 0, speedLowAlert, DataSubfield.SpeedLowAlert);
- }
- /// <summary>
- /// Retrieves the CadHighAlert subfield
- /// Units: rpm</summary>
- /// <returns>Nullable ushort representing the CadHighAlert subfield</returns>
- public ushort? GetCadHighAlert()
- {
- return (ushort?)GetFieldValue(3, 0, DataSubfield.CadHighAlert);
- }
- /// <summary>
- ///
- /// Set CadHighAlert subfield
- /// Units: rpm</summary>
- /// <param name="cadHighAlert">Subfield value to be set</param>
- public void SetCadHighAlert(ushort? cadHighAlert)
- {
- SetFieldValue(3, 0, cadHighAlert, DataSubfield.CadHighAlert);
- }
- /// <summary>
- /// Retrieves the CadLowAlert subfield
- /// Units: rpm</summary>
- /// <returns>Nullable ushort representing the CadLowAlert subfield</returns>
- public ushort? GetCadLowAlert()
- {
- return (ushort?)GetFieldValue(3, 0, DataSubfield.CadLowAlert);
- }
- /// <summary>
- ///
- /// Set CadLowAlert subfield
- /// Units: rpm</summary>
- /// <param name="cadLowAlert">Subfield value to be set</param>
- public void SetCadLowAlert(ushort? cadLowAlert)
- {
- SetFieldValue(3, 0, cadLowAlert, DataSubfield.CadLowAlert);
- }
- /// <summary>
- /// Retrieves the PowerHighAlert subfield
- /// Units: watts</summary>
- /// <returns>Nullable ushort representing the PowerHighAlert subfield</returns>
- public ushort? GetPowerHighAlert()
- {
- return (ushort?)GetFieldValue(3, 0, DataSubfield.PowerHighAlert);
- }
- /// <summary>
- ///
- /// Set PowerHighAlert subfield
- /// Units: watts</summary>
- /// <param name="powerHighAlert">Subfield value to be set</param>
- public void SetPowerHighAlert(ushort? powerHighAlert)
- {
- SetFieldValue(3, 0, powerHighAlert, DataSubfield.PowerHighAlert);
- }
- /// <summary>
- /// Retrieves the PowerLowAlert subfield
- /// Units: watts</summary>
- /// <returns>Nullable ushort representing the PowerLowAlert subfield</returns>
- public ushort? GetPowerLowAlert()
- {
- return (ushort?)GetFieldValue(3, 0, DataSubfield.PowerLowAlert);
- }
- /// <summary>
- ///
- /// Set PowerLowAlert subfield
- /// Units: watts</summary>
- /// <param name="powerLowAlert">Subfield value to be set</param>
- public void SetPowerLowAlert(ushort? powerLowAlert)
- {
- SetFieldValue(3, 0, powerLowAlert, DataSubfield.PowerLowAlert);
- }
- /// <summary>
- /// Retrieves the TimeDurationAlert subfield
- /// Units: s</summary>
- /// <returns>Nullable float representing the TimeDurationAlert subfield</returns>
- public float? GetTimeDurationAlert()
- {
- return (float?)GetFieldValue(3, 0, DataSubfield.TimeDurationAlert);
- }
- /// <summary>
- ///
- /// Set TimeDurationAlert subfield
- /// Units: s</summary>
- /// <param name="timeDurationAlert">Subfield value to be set</param>
- public void SetTimeDurationAlert(float? timeDurationAlert)
- {
- SetFieldValue(3, 0, timeDurationAlert, DataSubfield.TimeDurationAlert);
- }
- /// <summary>
- /// Retrieves the DistanceDurationAlert subfield
- /// Units: m</summary>
- /// <returns>Nullable float representing the DistanceDurationAlert subfield</returns>
- public float? GetDistanceDurationAlert()
- {
- return (float?)GetFieldValue(3, 0, DataSubfield.DistanceDurationAlert);
- }
- /// <summary>
- ///
- /// Set DistanceDurationAlert subfield
- /// Units: m</summary>
- /// <param name="distanceDurationAlert">Subfield value to be set</param>
- public void SetDistanceDurationAlert(float? distanceDurationAlert)
- {
- SetFieldValue(3, 0, distanceDurationAlert, DataSubfield.DistanceDurationAlert);
- }
- /// <summary>
- /// Retrieves the CalorieDurationAlert subfield
- /// Units: calories</summary>
- /// <returns>Nullable uint representing the CalorieDurationAlert subfield</returns>
- public uint? GetCalorieDurationAlert()
- {
- return (uint?)GetFieldValue(3, 0, DataSubfield.CalorieDurationAlert);
- }
- /// <summary>
- ///
- /// Set CalorieDurationAlert subfield
- /// Units: calories</summary>
- /// <param name="calorieDurationAlert">Subfield value to be set</param>
- public void SetCalorieDurationAlert(uint? calorieDurationAlert)
- {
- SetFieldValue(3, 0, calorieDurationAlert, DataSubfield.CalorieDurationAlert);
- }
- /// <summary>
- /// Retrieves the FitnessEquipmentState subfield</summary>
- /// <returns>Nullable FitnessEquipmentState enum representing the FitnessEquipmentState subfield</returns>
- public FitnessEquipmentState? GetFitnessEquipmentState()
- {
- return (FitnessEquipmentState?)GetFieldValue(3, 0, DataSubfield.FitnessEquipmentState);
- }
- /// <summary>
- ///
- /// Set FitnessEquipmentState subfield</summary>
- /// <param name="fitnessEquipmentState">Subfield value to be set</param>
- public void SetFitnessEquipmentState(byte? fitnessEquipmentState)
- {
- SetFieldValue(3, 0, fitnessEquipmentState, DataSubfield.FitnessEquipmentState);
- }
- /// <summary>
- /// Retrieves the SportPoint subfield</summary>
- /// <returns>Nullable uint representing the SportPoint subfield</returns>
- public uint? GetSportPoint()
- {
- return (uint?)GetFieldValue(3, 0, DataSubfield.SportPoint);
- }
- /// <summary>
- ///
- /// Set SportPoint subfield</summary>
- /// <param name="sportPoint">Subfield value to be set</param>
- public void SetSportPoint(uint? sportPoint)
- {
- SetFieldValue(3, 0, sportPoint, DataSubfield.SportPoint);
- }
- /// <summary>
- /// Retrieves the GearChangeData subfield</summary>
- /// <returns>Nullable uint representing the GearChangeData subfield</returns>
- public uint? GetGearChangeData()
- {
- return (uint?)GetFieldValue(3, 0, DataSubfield.GearChangeData);
- }
- /// <summary>
- ///
- /// Set GearChangeData subfield</summary>
- /// <param name="gearChangeData">Subfield value to be set</param>
- public void SetGearChangeData(uint? gearChangeData)
- {
- SetFieldValue(3, 0, gearChangeData, DataSubfield.GearChangeData);
- }
- /// <summary>
- /// Retrieves the RiderPosition subfield
- /// Comment: Indicates the rider position value.</summary>
- /// <returns>Nullable RiderPositionType enum representing the RiderPosition subfield</returns>
- public RiderPositionType? GetRiderPosition()
- {
- return (RiderPositionType?)GetFieldValue(3, 0, DataSubfield.RiderPosition);
- }
- /// <summary>
- ///
- /// Set RiderPosition subfield
- /// Comment: Indicates the rider position value.</summary>
- /// <param name="riderPosition">Subfield value to be set</param>
- public void SetRiderPosition(byte? riderPosition)
- {
- SetFieldValue(3, 0, riderPosition, DataSubfield.RiderPosition);
- }
- /// <summary>
- /// Retrieves the CommTimeout subfield</summary>
- /// <returns>Nullable ushort representing the CommTimeout subfield</returns>
- public ushort? GetCommTimeout()
- {
- return (ushort?)GetFieldValue(3, 0, DataSubfield.CommTimeout);
- }
- /// <summary>
- ///
- /// Set CommTimeout subfield</summary>
- /// <param name="commTimeout">Subfield value to be set</param>
- public void SetCommTimeout(ushort? commTimeout)
- {
- SetFieldValue(3, 0, commTimeout, DataSubfield.CommTimeout);
- }
- ///<summary>
- /// Retrieves the EventGroup field</summary>
- /// <returns>Returns nullable byte representing the EventGroup field</returns>
- public byte? GetEventGroup()
- {
- return (byte?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set EventGroup field</summary>
- /// <param name="eventGroup_">Nullable field value to be set</param>
- public void SetEventGroup(byte? eventGroup_)
- {
- SetFieldValue(4, 0, eventGroup_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Score field
- /// Comment: Do not populate directly. Autogenerated by decoder for sport_point subfield components</summary>
- /// <returns>Returns nullable ushort representing the Score field</returns>
- public ushort? GetScore()
- {
- return (ushort?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set Score field
- /// Comment: Do not populate directly. Autogenerated by decoder for sport_point subfield components</summary>
- /// <param name="score_">Nullable field value to be set</param>
- public void SetScore(ushort? score_)
- {
- SetFieldValue(7, 0, score_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the OpponentScore field
- /// Comment: Do not populate directly. Autogenerated by decoder for sport_point subfield components</summary>
- /// <returns>Returns nullable ushort representing the OpponentScore field</returns>
- public ushort? GetOpponentScore()
- {
- return (ushort?)GetFieldValue(8, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set OpponentScore field
- /// Comment: Do not populate directly. Autogenerated by decoder for sport_point subfield components</summary>
- /// <param name="opponentScore_">Nullable field value to be set</param>
- public void SetOpponentScore(ushort? opponentScore_)
- {
- SetFieldValue(8, 0, opponentScore_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the FrontGearNum field
- /// Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Front gear number. 1 is innermost.</summary>
- /// <returns>Returns nullable byte representing the FrontGearNum field</returns>
- public byte? GetFrontGearNum()
- {
- return (byte?)GetFieldValue(9, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set FrontGearNum field
- /// Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Front gear number. 1 is innermost.</summary>
- /// <param name="frontGearNum_">Nullable field value to be set</param>
- public void SetFrontGearNum(byte? frontGearNum_)
- {
- SetFieldValue(9, 0, frontGearNum_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the FrontGear field
- /// Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of front teeth.</summary>
- /// <returns>Returns nullable byte representing the FrontGear field</returns>
- public byte? GetFrontGear()
- {
- return (byte?)GetFieldValue(10, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set FrontGear field
- /// Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of front teeth.</summary>
- /// <param name="frontGear_">Nullable field value to be set</param>
- public void SetFrontGear(byte? frontGear_)
- {
- SetFieldValue(10, 0, frontGear_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the RearGearNum field
- /// Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Rear gear number. 1 is innermost.</summary>
- /// <returns>Returns nullable byte representing the RearGearNum field</returns>
- public byte? GetRearGearNum()
- {
- return (byte?)GetFieldValue(11, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set RearGearNum field
- /// Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Rear gear number. 1 is innermost.</summary>
- /// <param name="rearGearNum_">Nullable field value to be set</param>
- public void SetRearGearNum(byte? rearGearNum_)
- {
- SetFieldValue(11, 0, rearGearNum_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the RearGear field
- /// Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of rear teeth.</summary>
- /// <returns>Returns nullable byte representing the RearGear field</returns>
- public byte? GetRearGear()
- {
- return (byte?)GetFieldValue(12, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set RearGear field
- /// Comment: Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of rear teeth.</summary>
- /// <param name="rearGear_">Nullable field value to be set</param>
- public void SetRearGear(byte? rearGear_)
- {
- SetFieldValue(12, 0, rearGear_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the DeviceIndex field</summary>
- /// <returns>Returns nullable byte representing the DeviceIndex field</returns>
- public byte? GetDeviceIndex()
- {
- return (byte?)GetFieldValue(13, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set DeviceIndex field</summary>
- /// <param name="deviceIndex_">Nullable field value to be set</param>
- public void SetDeviceIndex(byte? deviceIndex_)
- {
- SetFieldValue(13, 0, deviceIndex_, Fit.SubfieldIndexMainField);
- }
-
- #endregion // Methods
- } // Class
- } // namespace
|