#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 { /// /// Implements the SegmentLap profile message. /// public class SegmentLapMesg : Mesg { #region Fields static class TotalCyclesSubfield { public static ushort TotalStrokes = 0; public static ushort Subfields = 1; public static ushort Active = Fit.SubfieldIndexActiveSubfield; public static ushort MainField = Fit.SubfieldIndexMainField; } #endregion #region Constructors public SegmentLapMesg() : base(Profile.GetMesg(MesgNum.SegmentLap)) { } public SegmentLapMesg(Mesg mesg) : base(mesg) { } #endregion // Constructors #region Methods /// /// Retrieves the MessageIndex field /// Returns nullable ushort representing the MessageIndex field public ushort? GetMessageIndex() { return (ushort?)GetFieldValue(254, 0, Fit.SubfieldIndexMainField); } /// /// Set MessageIndex field /// Nullable field value to be set public void SetMessageIndex(ushort? messageIndex_) { SetFieldValue(254, 0, messageIndex_, Fit.SubfieldIndexMainField); } /// /// Retrieves the Timestamp field /// Units: s /// Comment: Lap end time. /// Returns DateTime representing the Timestamp field public DateTime GetTimestamp() { return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField)); } /// /// Set Timestamp field /// Units: s /// Comment: Lap end time. /// Nullable field value to be set public void SetTimestamp(DateTime timestamp_) { SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField); } /// /// Retrieves the Event field /// Returns nullable Event enum representing the Event field public Event? GetEvent() { object obj = GetFieldValue(0, 0, Fit.SubfieldIndexMainField); Event? value = obj == null ? (Event?)null : (Event)obj; return value; } /// /// Set Event field /// Nullable field value to be set public void SetEvent(Event? event_) { SetFieldValue(0, 0, event_, Fit.SubfieldIndexMainField); } /// /// Retrieves the EventType field /// Returns nullable EventType enum representing the EventType field public EventType? GetEventType() { object obj = GetFieldValue(1, 0, Fit.SubfieldIndexMainField); EventType? value = obj == null ? (EventType?)null : (EventType)obj; return value; } /// /// Set EventType field /// Nullable field value to be set public void SetEventType(EventType? eventType_) { SetFieldValue(1, 0, eventType_, Fit.SubfieldIndexMainField); } /// /// Retrieves the StartTime field /// Returns DateTime representing the StartTime field public DateTime GetStartTime() { return TimestampToDateTime((uint?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField)); } /// /// Set StartTime field /// Nullable field value to be set public void SetStartTime(DateTime startTime_) { SetFieldValue(2, 0, startTime_.GetTimeStamp(), Fit.SubfieldIndexMainField); } /// /// Retrieves the StartPositionLat field /// Units: semicircles /// Returns nullable int representing the StartPositionLat field public int? GetStartPositionLat() { return (int?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField); } /// /// Set StartPositionLat field /// Units: semicircles /// Nullable field value to be set public void SetStartPositionLat(int? startPositionLat_) { SetFieldValue(3, 0, startPositionLat_, Fit.SubfieldIndexMainField); } /// /// Retrieves the StartPositionLong field /// Units: semicircles /// Returns nullable int representing the StartPositionLong field public int? GetStartPositionLong() { return (int?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField); } /// /// Set StartPositionLong field /// Units: semicircles /// Nullable field value to be set public void SetStartPositionLong(int? startPositionLong_) { SetFieldValue(4, 0, startPositionLong_, Fit.SubfieldIndexMainField); } /// /// Retrieves the EndPositionLat field /// Units: semicircles /// Returns nullable int representing the EndPositionLat field public int? GetEndPositionLat() { return (int?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField); } /// /// Set EndPositionLat field /// Units: semicircles /// Nullable field value to be set public void SetEndPositionLat(int? endPositionLat_) { SetFieldValue(5, 0, endPositionLat_, Fit.SubfieldIndexMainField); } /// /// Retrieves the EndPositionLong field /// Units: semicircles /// Returns nullable int representing the EndPositionLong field public int? GetEndPositionLong() { return (int?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField); } /// /// Set EndPositionLong field /// Units: semicircles /// Nullable field value to be set public void SetEndPositionLong(int? endPositionLong_) { SetFieldValue(6, 0, endPositionLong_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalElapsedTime field /// Units: s /// Comment: Time (includes pauses) /// Returns nullable float representing the TotalElapsedTime field public float? GetTotalElapsedTime() { return (float?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalElapsedTime field /// Units: s /// Comment: Time (includes pauses) /// Nullable field value to be set public void SetTotalElapsedTime(float? totalElapsedTime_) { SetFieldValue(7, 0, totalElapsedTime_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalTimerTime field /// Units: s /// Comment: Timer Time (excludes pauses) /// Returns nullable float representing the TotalTimerTime field public float? GetTotalTimerTime() { return (float?)GetFieldValue(8, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalTimerTime field /// Units: s /// Comment: Timer Time (excludes pauses) /// Nullable field value to be set public void SetTotalTimerTime(float? totalTimerTime_) { SetFieldValue(8, 0, totalTimerTime_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalDistance field /// Units: m /// Returns nullable float representing the TotalDistance field public float? GetTotalDistance() { return (float?)GetFieldValue(9, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalDistance field /// Units: m /// Nullable field value to be set public void SetTotalDistance(float? totalDistance_) { SetFieldValue(9, 0, totalDistance_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalCycles field /// Units: cycles /// Returns nullable uint representing the TotalCycles field public uint? GetTotalCycles() { return (uint?)GetFieldValue(10, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalCycles field /// Units: cycles /// Nullable field value to be set public void SetTotalCycles(uint? totalCycles_) { SetFieldValue(10, 0, totalCycles_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalStrokes subfield /// Units: strokes /// Nullable uint representing the TotalStrokes subfield public uint? GetTotalStrokes() { return (uint?)GetFieldValue(10, 0, TotalCyclesSubfield.TotalStrokes); } /// /// /// Set TotalStrokes subfield /// Units: strokes /// Subfield value to be set public void SetTotalStrokes(uint? totalStrokes) { SetFieldValue(10, 0, totalStrokes, TotalCyclesSubfield.TotalStrokes); } /// /// Retrieves the TotalCalories field /// Units: kcal /// Returns nullable ushort representing the TotalCalories field public ushort? GetTotalCalories() { return (ushort?)GetFieldValue(11, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalCalories field /// Units: kcal /// Nullable field value to be set public void SetTotalCalories(ushort? totalCalories_) { SetFieldValue(11, 0, totalCalories_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalFatCalories field /// Units: kcal /// Comment: If New Leaf /// Returns nullable ushort representing the TotalFatCalories field public ushort? GetTotalFatCalories() { return (ushort?)GetFieldValue(12, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalFatCalories field /// Units: kcal /// Comment: If New Leaf /// Nullable field value to be set public void SetTotalFatCalories(ushort? totalFatCalories_) { SetFieldValue(12, 0, totalFatCalories_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgSpeed field /// Units: m/s /// Returns nullable float representing the AvgSpeed field public float? GetAvgSpeed() { return (float?)GetFieldValue(13, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgSpeed field /// Units: m/s /// Nullable field value to be set public void SetAvgSpeed(float? avgSpeed_) { SetFieldValue(13, 0, avgSpeed_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxSpeed field /// Units: m/s /// Returns nullable float representing the MaxSpeed field public float? GetMaxSpeed() { return (float?)GetFieldValue(14, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxSpeed field /// Units: m/s /// Nullable field value to be set public void SetMaxSpeed(float? maxSpeed_) { SetFieldValue(14, 0, maxSpeed_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgHeartRate field /// Units: bpm /// Returns nullable byte representing the AvgHeartRate field public byte? GetAvgHeartRate() { return (byte?)GetFieldValue(15, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgHeartRate field /// Units: bpm /// Nullable field value to be set public void SetAvgHeartRate(byte? avgHeartRate_) { SetFieldValue(15, 0, avgHeartRate_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxHeartRate field /// Units: bpm /// Returns nullable byte representing the MaxHeartRate field public byte? GetMaxHeartRate() { return (byte?)GetFieldValue(16, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxHeartRate field /// Units: bpm /// Nullable field value to be set public void SetMaxHeartRate(byte? maxHeartRate_) { SetFieldValue(16, 0, maxHeartRate_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgCadence field /// Units: rpm /// Comment: total_cycles / total_timer_time if non_zero_avg_cadence otherwise total_cycles / total_elapsed_time /// Returns nullable byte representing the AvgCadence field public byte? GetAvgCadence() { return (byte?)GetFieldValue(17, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgCadence field /// Units: rpm /// Comment: total_cycles / total_timer_time if non_zero_avg_cadence otherwise total_cycles / total_elapsed_time /// Nullable field value to be set public void SetAvgCadence(byte? avgCadence_) { SetFieldValue(17, 0, avgCadence_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxCadence field /// Units: rpm /// Returns nullable byte representing the MaxCadence field public byte? GetMaxCadence() { return (byte?)GetFieldValue(18, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxCadence field /// Units: rpm /// Nullable field value to be set public void SetMaxCadence(byte? maxCadence_) { SetFieldValue(18, 0, maxCadence_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgPower field /// Units: watts /// Comment: total_power / total_timer_time if non_zero_avg_power otherwise total_power / total_elapsed_time /// Returns nullable ushort representing the AvgPower field public ushort? GetAvgPower() { return (ushort?)GetFieldValue(19, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgPower field /// Units: watts /// Comment: total_power / total_timer_time if non_zero_avg_power otherwise total_power / total_elapsed_time /// Nullable field value to be set public void SetAvgPower(ushort? avgPower_) { SetFieldValue(19, 0, avgPower_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxPower field /// Units: watts /// Returns nullable ushort representing the MaxPower field public ushort? GetMaxPower() { return (ushort?)GetFieldValue(20, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxPower field /// Units: watts /// Nullable field value to be set public void SetMaxPower(ushort? maxPower_) { SetFieldValue(20, 0, maxPower_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalAscent field /// Units: m /// Returns nullable ushort representing the TotalAscent field public ushort? GetTotalAscent() { return (ushort?)GetFieldValue(21, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalAscent field /// Units: m /// Nullable field value to be set public void SetTotalAscent(ushort? totalAscent_) { SetFieldValue(21, 0, totalAscent_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalDescent field /// Units: m /// Returns nullable ushort representing the TotalDescent field public ushort? GetTotalDescent() { return (ushort?)GetFieldValue(22, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalDescent field /// Units: m /// Nullable field value to be set public void SetTotalDescent(ushort? totalDescent_) { SetFieldValue(22, 0, totalDescent_, Fit.SubfieldIndexMainField); } /// /// Retrieves the Sport field /// Returns nullable Sport enum representing the Sport field public Sport? GetSport() { object obj = GetFieldValue(23, 0, Fit.SubfieldIndexMainField); Sport? value = obj == null ? (Sport?)null : (Sport)obj; return value; } /// /// Set Sport field /// Nullable field value to be set public void SetSport(Sport? sport_) { SetFieldValue(23, 0, sport_, Fit.SubfieldIndexMainField); } /// /// Retrieves the EventGroup field /// Returns nullable byte representing the EventGroup field public byte? GetEventGroup() { return (byte?)GetFieldValue(24, 0, Fit.SubfieldIndexMainField); } /// /// Set EventGroup field /// Nullable field value to be set public void SetEventGroup(byte? eventGroup_) { SetFieldValue(24, 0, eventGroup_, Fit.SubfieldIndexMainField); } /// /// Retrieves the NecLat field /// Units: semicircles /// Comment: North east corner latitude. /// Returns nullable int representing the NecLat field public int? GetNecLat() { return (int?)GetFieldValue(25, 0, Fit.SubfieldIndexMainField); } /// /// Set NecLat field /// Units: semicircles /// Comment: North east corner latitude. /// Nullable field value to be set public void SetNecLat(int? necLat_) { SetFieldValue(25, 0, necLat_, Fit.SubfieldIndexMainField); } /// /// Retrieves the NecLong field /// Units: semicircles /// Comment: North east corner longitude. /// Returns nullable int representing the NecLong field public int? GetNecLong() { return (int?)GetFieldValue(26, 0, Fit.SubfieldIndexMainField); } /// /// Set NecLong field /// Units: semicircles /// Comment: North east corner longitude. /// Nullable field value to be set public void SetNecLong(int? necLong_) { SetFieldValue(26, 0, necLong_, Fit.SubfieldIndexMainField); } /// /// Retrieves the SwcLat field /// Units: semicircles /// Comment: South west corner latitude. /// Returns nullable int representing the SwcLat field public int? GetSwcLat() { return (int?)GetFieldValue(27, 0, Fit.SubfieldIndexMainField); } /// /// Set SwcLat field /// Units: semicircles /// Comment: South west corner latitude. /// Nullable field value to be set public void SetSwcLat(int? swcLat_) { SetFieldValue(27, 0, swcLat_, Fit.SubfieldIndexMainField); } /// /// Retrieves the SwcLong field /// Units: semicircles /// Comment: South west corner latitude. /// Returns nullable int representing the SwcLong field public int? GetSwcLong() { return (int?)GetFieldValue(28, 0, Fit.SubfieldIndexMainField); } /// /// Set SwcLong field /// Units: semicircles /// Comment: South west corner latitude. /// Nullable field value to be set public void SetSwcLong(int? swcLong_) { SetFieldValue(28, 0, swcLong_, Fit.SubfieldIndexMainField); } /// /// Retrieves the Name field /// Returns byte[] representing the Name field public byte[] GetName() { return (byte[])GetFieldValue(29, 0, Fit.SubfieldIndexMainField); } /// /// Retrieves the Name field /// Returns String representing the Name field public String GetNameAsString() { return Encoding.UTF8.GetString((byte[])GetFieldValue(29, 0, Fit.SubfieldIndexMainField)); } /// /// Set Name field /// field value to be set public void SetName(String name_) { SetFieldValue(29, 0, System.Text.Encoding.UTF8.GetBytes(name_), Fit.SubfieldIndexMainField); } /// /// Set Name field /// field value to be set public void SetName(byte[] name_) { SetFieldValue(29, 0, name_, Fit.SubfieldIndexMainField); } /// /// Retrieves the NormalizedPower field /// Units: watts /// Returns nullable ushort representing the NormalizedPower field public ushort? GetNormalizedPower() { return (ushort?)GetFieldValue(30, 0, Fit.SubfieldIndexMainField); } /// /// Set NormalizedPower field /// Units: watts /// Nullable field value to be set public void SetNormalizedPower(ushort? normalizedPower_) { SetFieldValue(30, 0, normalizedPower_, Fit.SubfieldIndexMainField); } /// /// Retrieves the LeftRightBalance field /// Returns nullable ushort representing the LeftRightBalance field public ushort? GetLeftRightBalance() { return (ushort?)GetFieldValue(31, 0, Fit.SubfieldIndexMainField); } /// /// Set LeftRightBalance field /// Nullable field value to be set public void SetLeftRightBalance(ushort? leftRightBalance_) { SetFieldValue(31, 0, leftRightBalance_, Fit.SubfieldIndexMainField); } /// /// Retrieves the SubSport field /// Returns nullable SubSport enum representing the SubSport field public SubSport? GetSubSport() { object obj = GetFieldValue(32, 0, Fit.SubfieldIndexMainField); SubSport? value = obj == null ? (SubSport?)null : (SubSport)obj; return value; } /// /// Set SubSport field /// Nullable field value to be set public void SetSubSport(SubSport? subSport_) { SetFieldValue(32, 0, subSport_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalWork field /// Units: J /// Returns nullable uint representing the TotalWork field public uint? GetTotalWork() { return (uint?)GetFieldValue(33, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalWork field /// Units: J /// Nullable field value to be set public void SetTotalWork(uint? totalWork_) { SetFieldValue(33, 0, totalWork_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgAltitude field /// Units: m /// Returns nullable float representing the AvgAltitude field public float? GetAvgAltitude() { return (float?)GetFieldValue(34, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgAltitude field /// Units: m /// Nullable field value to be set public void SetAvgAltitude(float? avgAltitude_) { SetFieldValue(34, 0, avgAltitude_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxAltitude field /// Units: m /// Returns nullable float representing the MaxAltitude field public float? GetMaxAltitude() { return (float?)GetFieldValue(35, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxAltitude field /// Units: m /// Nullable field value to be set public void SetMaxAltitude(float? maxAltitude_) { SetFieldValue(35, 0, maxAltitude_, Fit.SubfieldIndexMainField); } /// /// Retrieves the GpsAccuracy field /// Units: m /// Returns nullable byte representing the GpsAccuracy field public byte? GetGpsAccuracy() { return (byte?)GetFieldValue(36, 0, Fit.SubfieldIndexMainField); } /// /// Set GpsAccuracy field /// Units: m /// Nullable field value to be set public void SetGpsAccuracy(byte? gpsAccuracy_) { SetFieldValue(36, 0, gpsAccuracy_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgGrade field /// Units: % /// Returns nullable float representing the AvgGrade field public float? GetAvgGrade() { return (float?)GetFieldValue(37, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgGrade field /// Units: % /// Nullable field value to be set public void SetAvgGrade(float? avgGrade_) { SetFieldValue(37, 0, avgGrade_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgPosGrade field /// Units: % /// Returns nullable float representing the AvgPosGrade field public float? GetAvgPosGrade() { return (float?)GetFieldValue(38, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgPosGrade field /// Units: % /// Nullable field value to be set public void SetAvgPosGrade(float? avgPosGrade_) { SetFieldValue(38, 0, avgPosGrade_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgNegGrade field /// Units: % /// Returns nullable float representing the AvgNegGrade field public float? GetAvgNegGrade() { return (float?)GetFieldValue(39, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgNegGrade field /// Units: % /// Nullable field value to be set public void SetAvgNegGrade(float? avgNegGrade_) { SetFieldValue(39, 0, avgNegGrade_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxPosGrade field /// Units: % /// Returns nullable float representing the MaxPosGrade field public float? GetMaxPosGrade() { return (float?)GetFieldValue(40, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxPosGrade field /// Units: % /// Nullable field value to be set public void SetMaxPosGrade(float? maxPosGrade_) { SetFieldValue(40, 0, maxPosGrade_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxNegGrade field /// Units: % /// Returns nullable float representing the MaxNegGrade field public float? GetMaxNegGrade() { return (float?)GetFieldValue(41, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxNegGrade field /// Units: % /// Nullable field value to be set public void SetMaxNegGrade(float? maxNegGrade_) { SetFieldValue(41, 0, maxNegGrade_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgTemperature field /// Units: C /// Returns nullable sbyte representing the AvgTemperature field public sbyte? GetAvgTemperature() { return (sbyte?)GetFieldValue(42, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgTemperature field /// Units: C /// Nullable field value to be set public void SetAvgTemperature(sbyte? avgTemperature_) { SetFieldValue(42, 0, avgTemperature_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxTemperature field /// Units: C /// Returns nullable sbyte representing the MaxTemperature field public sbyte? GetMaxTemperature() { return (sbyte?)GetFieldValue(43, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxTemperature field /// Units: C /// Nullable field value to be set public void SetMaxTemperature(sbyte? maxTemperature_) { SetFieldValue(43, 0, maxTemperature_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalMovingTime field /// Units: s /// Returns nullable float representing the TotalMovingTime field public float? GetTotalMovingTime() { return (float?)GetFieldValue(44, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalMovingTime field /// Units: s /// Nullable field value to be set public void SetTotalMovingTime(float? totalMovingTime_) { SetFieldValue(44, 0, totalMovingTime_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgPosVerticalSpeed field /// Units: m/s /// Returns nullable float representing the AvgPosVerticalSpeed field public float? GetAvgPosVerticalSpeed() { return (float?)GetFieldValue(45, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgPosVerticalSpeed field /// Units: m/s /// Nullable field value to be set public void SetAvgPosVerticalSpeed(float? avgPosVerticalSpeed_) { SetFieldValue(45, 0, avgPosVerticalSpeed_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgNegVerticalSpeed field /// Units: m/s /// Returns nullable float representing the AvgNegVerticalSpeed field public float? GetAvgNegVerticalSpeed() { return (float?)GetFieldValue(46, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgNegVerticalSpeed field /// Units: m/s /// Nullable field value to be set public void SetAvgNegVerticalSpeed(float? avgNegVerticalSpeed_) { SetFieldValue(46, 0, avgNegVerticalSpeed_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxPosVerticalSpeed field /// Units: m/s /// Returns nullable float representing the MaxPosVerticalSpeed field public float? GetMaxPosVerticalSpeed() { return (float?)GetFieldValue(47, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxPosVerticalSpeed field /// Units: m/s /// Nullable field value to be set public void SetMaxPosVerticalSpeed(float? maxPosVerticalSpeed_) { SetFieldValue(47, 0, maxPosVerticalSpeed_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxNegVerticalSpeed field /// Units: m/s /// Returns nullable float representing the MaxNegVerticalSpeed field public float? GetMaxNegVerticalSpeed() { return (float?)GetFieldValue(48, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxNegVerticalSpeed field /// Units: m/s /// Nullable field value to be set public void SetMaxNegVerticalSpeed(float? maxNegVerticalSpeed_) { SetFieldValue(48, 0, maxNegVerticalSpeed_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field TimeInHrZone public int GetNumTimeInHrZone() { return GetNumFieldValues(49, Fit.SubfieldIndexMainField); } /// /// Retrieves the TimeInHrZone field /// Units: s /// 0 based index of TimeInHrZone element to retrieve /// Returns nullable float representing the TimeInHrZone field public float? GetTimeInHrZone(int index) { return (float?)GetFieldValue(49, index, Fit.SubfieldIndexMainField); } /// /// Set TimeInHrZone field /// Units: s /// 0 based index of time_in_hr_zone /// Nullable field value to be set public void SetTimeInHrZone(int index, float? timeInHrZone_) { SetFieldValue(49, index, timeInHrZone_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field TimeInSpeedZone public int GetNumTimeInSpeedZone() { return GetNumFieldValues(50, Fit.SubfieldIndexMainField); } /// /// Retrieves the TimeInSpeedZone field /// Units: s /// 0 based index of TimeInSpeedZone element to retrieve /// Returns nullable float representing the TimeInSpeedZone field public float? GetTimeInSpeedZone(int index) { return (float?)GetFieldValue(50, index, Fit.SubfieldIndexMainField); } /// /// Set TimeInSpeedZone field /// Units: s /// 0 based index of time_in_speed_zone /// Nullable field value to be set public void SetTimeInSpeedZone(int index, float? timeInSpeedZone_) { SetFieldValue(50, index, timeInSpeedZone_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field TimeInCadenceZone public int GetNumTimeInCadenceZone() { return GetNumFieldValues(51, Fit.SubfieldIndexMainField); } /// /// Retrieves the TimeInCadenceZone field /// Units: s /// 0 based index of TimeInCadenceZone element to retrieve /// Returns nullable float representing the TimeInCadenceZone field public float? GetTimeInCadenceZone(int index) { return (float?)GetFieldValue(51, index, Fit.SubfieldIndexMainField); } /// /// Set TimeInCadenceZone field /// Units: s /// 0 based index of time_in_cadence_zone /// Nullable field value to be set public void SetTimeInCadenceZone(int index, float? timeInCadenceZone_) { SetFieldValue(51, index, timeInCadenceZone_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field TimeInPowerZone public int GetNumTimeInPowerZone() { return GetNumFieldValues(52, Fit.SubfieldIndexMainField); } /// /// Retrieves the TimeInPowerZone field /// Units: s /// 0 based index of TimeInPowerZone element to retrieve /// Returns nullable float representing the TimeInPowerZone field public float? GetTimeInPowerZone(int index) { return (float?)GetFieldValue(52, index, Fit.SubfieldIndexMainField); } /// /// Set TimeInPowerZone field /// Units: s /// 0 based index of time_in_power_zone /// Nullable field value to be set public void SetTimeInPowerZone(int index, float? timeInPowerZone_) { SetFieldValue(52, index, timeInPowerZone_, Fit.SubfieldIndexMainField); } /// /// Retrieves the RepetitionNum field /// Returns nullable ushort representing the RepetitionNum field public ushort? GetRepetitionNum() { return (ushort?)GetFieldValue(53, 0, Fit.SubfieldIndexMainField); } /// /// Set RepetitionNum field /// Nullable field value to be set public void SetRepetitionNum(ushort? repetitionNum_) { SetFieldValue(53, 0, repetitionNum_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MinAltitude field /// Units: m /// Returns nullable float representing the MinAltitude field public float? GetMinAltitude() { return (float?)GetFieldValue(54, 0, Fit.SubfieldIndexMainField); } /// /// Set MinAltitude field /// Units: m /// Nullable field value to be set public void SetMinAltitude(float? minAltitude_) { SetFieldValue(54, 0, minAltitude_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MinHeartRate field /// Units: bpm /// Returns nullable byte representing the MinHeartRate field public byte? GetMinHeartRate() { return (byte?)GetFieldValue(55, 0, Fit.SubfieldIndexMainField); } /// /// Set MinHeartRate field /// Units: bpm /// Nullable field value to be set public void SetMinHeartRate(byte? minHeartRate_) { SetFieldValue(55, 0, minHeartRate_, Fit.SubfieldIndexMainField); } /// /// Retrieves the ActiveTime field /// Units: s /// Returns nullable float representing the ActiveTime field public float? GetActiveTime() { return (float?)GetFieldValue(56, 0, Fit.SubfieldIndexMainField); } /// /// Set ActiveTime field /// Units: s /// Nullable field value to be set public void SetActiveTime(float? activeTime_) { SetFieldValue(56, 0, activeTime_, Fit.SubfieldIndexMainField); } /// /// Retrieves the WktStepIndex field /// Returns nullable ushort representing the WktStepIndex field public ushort? GetWktStepIndex() { return (ushort?)GetFieldValue(57, 0, Fit.SubfieldIndexMainField); } /// /// Set WktStepIndex field /// Nullable field value to be set public void SetWktStepIndex(ushort? wktStepIndex_) { SetFieldValue(57, 0, wktStepIndex_, Fit.SubfieldIndexMainField); } /// /// Retrieves the SportEvent field /// Returns nullable SportEvent enum representing the SportEvent field public SportEvent? GetSportEvent() { object obj = GetFieldValue(58, 0, Fit.SubfieldIndexMainField); SportEvent? value = obj == null ? (SportEvent?)null : (SportEvent)obj; return value; } /// /// Set SportEvent field /// Nullable field value to be set public void SetSportEvent(SportEvent? sportEvent_) { SetFieldValue(58, 0, sportEvent_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgLeftTorqueEffectiveness field /// Units: percent /// Returns nullable float representing the AvgLeftTorqueEffectiveness field public float? GetAvgLeftTorqueEffectiveness() { return (float?)GetFieldValue(59, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgLeftTorqueEffectiveness field /// Units: percent /// Nullable field value to be set public void SetAvgLeftTorqueEffectiveness(float? avgLeftTorqueEffectiveness_) { SetFieldValue(59, 0, avgLeftTorqueEffectiveness_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgRightTorqueEffectiveness field /// Units: percent /// Returns nullable float representing the AvgRightTorqueEffectiveness field public float? GetAvgRightTorqueEffectiveness() { return (float?)GetFieldValue(60, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgRightTorqueEffectiveness field /// Units: percent /// Nullable field value to be set public void SetAvgRightTorqueEffectiveness(float? avgRightTorqueEffectiveness_) { SetFieldValue(60, 0, avgRightTorqueEffectiveness_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgLeftPedalSmoothness field /// Units: percent /// Returns nullable float representing the AvgLeftPedalSmoothness field public float? GetAvgLeftPedalSmoothness() { return (float?)GetFieldValue(61, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgLeftPedalSmoothness field /// Units: percent /// Nullable field value to be set public void SetAvgLeftPedalSmoothness(float? avgLeftPedalSmoothness_) { SetFieldValue(61, 0, avgLeftPedalSmoothness_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgRightPedalSmoothness field /// Units: percent /// Returns nullable float representing the AvgRightPedalSmoothness field public float? GetAvgRightPedalSmoothness() { return (float?)GetFieldValue(62, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgRightPedalSmoothness field /// Units: percent /// Nullable field value to be set public void SetAvgRightPedalSmoothness(float? avgRightPedalSmoothness_) { SetFieldValue(62, 0, avgRightPedalSmoothness_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgCombinedPedalSmoothness field /// Units: percent /// Returns nullable float representing the AvgCombinedPedalSmoothness field public float? GetAvgCombinedPedalSmoothness() { return (float?)GetFieldValue(63, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgCombinedPedalSmoothness field /// Units: percent /// Nullable field value to be set public void SetAvgCombinedPedalSmoothness(float? avgCombinedPedalSmoothness_) { SetFieldValue(63, 0, avgCombinedPedalSmoothness_, Fit.SubfieldIndexMainField); } /// /// Retrieves the Status field /// Returns nullable SegmentLapStatus enum representing the Status field public SegmentLapStatus? GetStatus() { object obj = GetFieldValue(64, 0, Fit.SubfieldIndexMainField); SegmentLapStatus? value = obj == null ? (SegmentLapStatus?)null : (SegmentLapStatus)obj; return value; } /// /// Set Status field /// Nullable field value to be set public void SetStatus(SegmentLapStatus? status_) { SetFieldValue(64, 0, status_, Fit.SubfieldIndexMainField); } /// /// Retrieves the Uuid field /// Returns byte[] representing the Uuid field public byte[] GetUuid() { return (byte[])GetFieldValue(65, 0, Fit.SubfieldIndexMainField); } /// /// Retrieves the Uuid field /// Returns String representing the Uuid field public String GetUuidAsString() { return Encoding.UTF8.GetString((byte[])GetFieldValue(65, 0, Fit.SubfieldIndexMainField)); } /// /// Set Uuid field /// field value to be set public void SetUuid(String uuid_) { SetFieldValue(65, 0, System.Text.Encoding.UTF8.GetBytes(uuid_), Fit.SubfieldIndexMainField); } /// /// Set Uuid field /// field value to be set public void SetUuid(byte[] uuid_) { SetFieldValue(65, 0, uuid_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgFractionalCadence field /// Units: rpm /// Comment: fractional part of the avg_cadence /// Returns nullable float representing the AvgFractionalCadence field public float? GetAvgFractionalCadence() { return (float?)GetFieldValue(66, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgFractionalCadence field /// Units: rpm /// Comment: fractional part of the avg_cadence /// Nullable field value to be set public void SetAvgFractionalCadence(float? avgFractionalCadence_) { SetFieldValue(66, 0, avgFractionalCadence_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxFractionalCadence field /// Units: rpm /// Comment: fractional part of the max_cadence /// Returns nullable float representing the MaxFractionalCadence field public float? GetMaxFractionalCadence() { return (float?)GetFieldValue(67, 0, Fit.SubfieldIndexMainField); } /// /// Set MaxFractionalCadence field /// Units: rpm /// Comment: fractional part of the max_cadence /// Nullable field value to be set public void SetMaxFractionalCadence(float? maxFractionalCadence_) { SetFieldValue(67, 0, maxFractionalCadence_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TotalFractionalCycles field /// Units: cycles /// Comment: fractional part of the total_cycles /// Returns nullable float representing the TotalFractionalCycles field public float? GetTotalFractionalCycles() { return (float?)GetFieldValue(68, 0, Fit.SubfieldIndexMainField); } /// /// Set TotalFractionalCycles field /// Units: cycles /// Comment: fractional part of the total_cycles /// Nullable field value to be set public void SetTotalFractionalCycles(float? totalFractionalCycles_) { SetFieldValue(68, 0, totalFractionalCycles_, Fit.SubfieldIndexMainField); } /// /// Retrieves the FrontGearShiftCount field /// Returns nullable ushort representing the FrontGearShiftCount field public ushort? GetFrontGearShiftCount() { return (ushort?)GetFieldValue(69, 0, Fit.SubfieldIndexMainField); } /// /// Set FrontGearShiftCount field /// Nullable field value to be set public void SetFrontGearShiftCount(ushort? frontGearShiftCount_) { SetFieldValue(69, 0, frontGearShiftCount_, Fit.SubfieldIndexMainField); } /// /// Retrieves the RearGearShiftCount field /// Returns nullable ushort representing the RearGearShiftCount field public ushort? GetRearGearShiftCount() { return (ushort?)GetFieldValue(70, 0, Fit.SubfieldIndexMainField); } /// /// Set RearGearShiftCount field /// Nullable field value to be set public void SetRearGearShiftCount(ushort? rearGearShiftCount_) { SetFieldValue(70, 0, rearGearShiftCount_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TimeStanding field /// Units: s /// Comment: Total time spent in the standing position /// Returns nullable float representing the TimeStanding field public float? GetTimeStanding() { return (float?)GetFieldValue(71, 0, Fit.SubfieldIndexMainField); } /// /// Set TimeStanding field /// Units: s /// Comment: Total time spent in the standing position /// Nullable field value to be set public void SetTimeStanding(float? timeStanding_) { SetFieldValue(71, 0, timeStanding_, Fit.SubfieldIndexMainField); } /// /// Retrieves the StandCount field /// Comment: Number of transitions to the standing state /// Returns nullable ushort representing the StandCount field public ushort? GetStandCount() { return (ushort?)GetFieldValue(72, 0, Fit.SubfieldIndexMainField); } /// /// Set StandCount field /// Comment: Number of transitions to the standing state /// Nullable field value to be set public void SetStandCount(ushort? standCount_) { SetFieldValue(72, 0, standCount_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgLeftPco field /// Units: mm /// Comment: Average left platform center offset /// Returns nullable sbyte representing the AvgLeftPco field public sbyte? GetAvgLeftPco() { return (sbyte?)GetFieldValue(73, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgLeftPco field /// Units: mm /// Comment: Average left platform center offset /// Nullable field value to be set public void SetAvgLeftPco(sbyte? avgLeftPco_) { SetFieldValue(73, 0, avgLeftPco_, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgRightPco field /// Units: mm /// Comment: Average right platform center offset /// Returns nullable sbyte representing the AvgRightPco field public sbyte? GetAvgRightPco() { return (sbyte?)GetFieldValue(74, 0, Fit.SubfieldIndexMainField); } /// /// Set AvgRightPco field /// Units: mm /// Comment: Average right platform center offset /// Nullable field value to be set public void SetAvgRightPco(sbyte? avgRightPco_) { SetFieldValue(74, 0, avgRightPco_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field AvgLeftPowerPhase public int GetNumAvgLeftPowerPhase() { return GetNumFieldValues(75, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgLeftPowerPhase field /// Units: degrees /// Comment: Average left power phase angles. Data value indexes defined by power_phase_type. /// 0 based index of AvgLeftPowerPhase element to retrieve /// Returns nullable byte representing the AvgLeftPowerPhase field public byte? GetAvgLeftPowerPhase(int index) { return (byte?)GetFieldValue(75, index, Fit.SubfieldIndexMainField); } /// /// Set AvgLeftPowerPhase field /// Units: degrees /// Comment: Average left power phase angles. Data value indexes defined by power_phase_type. /// 0 based index of avg_left_power_phase /// Nullable field value to be set public void SetAvgLeftPowerPhase(int index, byte? avgLeftPowerPhase_) { SetFieldValue(75, index, avgLeftPowerPhase_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field AvgLeftPowerPhasePeak public int GetNumAvgLeftPowerPhasePeak() { return GetNumFieldValues(76, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgLeftPowerPhasePeak field /// Units: degrees /// Comment: Average left power phase peak angles. Data value indexes defined by power_phase_type. /// 0 based index of AvgLeftPowerPhasePeak element to retrieve /// Returns nullable byte representing the AvgLeftPowerPhasePeak field public byte? GetAvgLeftPowerPhasePeak(int index) { return (byte?)GetFieldValue(76, index, Fit.SubfieldIndexMainField); } /// /// Set AvgLeftPowerPhasePeak field /// Units: degrees /// Comment: Average left power phase peak angles. Data value indexes defined by power_phase_type. /// 0 based index of avg_left_power_phase_peak /// Nullable field value to be set public void SetAvgLeftPowerPhasePeak(int index, byte? avgLeftPowerPhasePeak_) { SetFieldValue(76, index, avgLeftPowerPhasePeak_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field AvgRightPowerPhase public int GetNumAvgRightPowerPhase() { return GetNumFieldValues(77, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgRightPowerPhase field /// Units: degrees /// Comment: Average right power phase angles. Data value indexes defined by power_phase_type. /// 0 based index of AvgRightPowerPhase element to retrieve /// Returns nullable byte representing the AvgRightPowerPhase field public byte? GetAvgRightPowerPhase(int index) { return (byte?)GetFieldValue(77, index, Fit.SubfieldIndexMainField); } /// /// Set AvgRightPowerPhase field /// Units: degrees /// Comment: Average right power phase angles. Data value indexes defined by power_phase_type. /// 0 based index of avg_right_power_phase /// Nullable field value to be set public void SetAvgRightPowerPhase(int index, byte? avgRightPowerPhase_) { SetFieldValue(77, index, avgRightPowerPhase_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field AvgRightPowerPhasePeak public int GetNumAvgRightPowerPhasePeak() { return GetNumFieldValues(78, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgRightPowerPhasePeak field /// Units: degrees /// Comment: Average right power phase peak angles. Data value indexes defined by power_phase_type. /// 0 based index of AvgRightPowerPhasePeak element to retrieve /// Returns nullable byte representing the AvgRightPowerPhasePeak field public byte? GetAvgRightPowerPhasePeak(int index) { return (byte?)GetFieldValue(78, index, Fit.SubfieldIndexMainField); } /// /// Set AvgRightPowerPhasePeak field /// Units: degrees /// Comment: Average right power phase peak angles. Data value indexes defined by power_phase_type. /// 0 based index of avg_right_power_phase_peak /// Nullable field value to be set public void SetAvgRightPowerPhasePeak(int index, byte? avgRightPowerPhasePeak_) { SetFieldValue(78, index, avgRightPowerPhasePeak_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field AvgPowerPosition public int GetNumAvgPowerPosition() { return GetNumFieldValues(79, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgPowerPosition field /// Units: watts /// Comment: Average power by position. Data value indexes defined by rider_position_type. /// 0 based index of AvgPowerPosition element to retrieve /// Returns nullable ushort representing the AvgPowerPosition field public ushort? GetAvgPowerPosition(int index) { return (ushort?)GetFieldValue(79, index, Fit.SubfieldIndexMainField); } /// /// Set AvgPowerPosition field /// Units: watts /// Comment: Average power by position. Data value indexes defined by rider_position_type. /// 0 based index of avg_power_position /// Nullable field value to be set public void SetAvgPowerPosition(int index, ushort? avgPowerPosition_) { SetFieldValue(79, index, avgPowerPosition_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field MaxPowerPosition public int GetNumMaxPowerPosition() { return GetNumFieldValues(80, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxPowerPosition field /// Units: watts /// Comment: Maximum power by position. Data value indexes defined by rider_position_type. /// 0 based index of MaxPowerPosition element to retrieve /// Returns nullable ushort representing the MaxPowerPosition field public ushort? GetMaxPowerPosition(int index) { return (ushort?)GetFieldValue(80, index, Fit.SubfieldIndexMainField); } /// /// Set MaxPowerPosition field /// Units: watts /// Comment: Maximum power by position. Data value indexes defined by rider_position_type. /// 0 based index of max_power_position /// Nullable field value to be set public void SetMaxPowerPosition(int index, ushort? maxPowerPosition_) { SetFieldValue(80, index, maxPowerPosition_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field AvgCadencePosition public int GetNumAvgCadencePosition() { return GetNumFieldValues(81, Fit.SubfieldIndexMainField); } /// /// Retrieves the AvgCadencePosition field /// Units: rpm /// Comment: Average cadence by position. Data value indexes defined by rider_position_type. /// 0 based index of AvgCadencePosition element to retrieve /// Returns nullable byte representing the AvgCadencePosition field public byte? GetAvgCadencePosition(int index) { return (byte?)GetFieldValue(81, index, Fit.SubfieldIndexMainField); } /// /// Set AvgCadencePosition field /// Units: rpm /// Comment: Average cadence by position. Data value indexes defined by rider_position_type. /// 0 based index of avg_cadence_position /// Nullable field value to be set public void SetAvgCadencePosition(int index, byte? avgCadencePosition_) { SetFieldValue(81, index, avgCadencePosition_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field MaxCadencePosition public int GetNumMaxCadencePosition() { return GetNumFieldValues(82, Fit.SubfieldIndexMainField); } /// /// Retrieves the MaxCadencePosition field /// Units: rpm /// Comment: Maximum cadence by position. Data value indexes defined by rider_position_type. /// 0 based index of MaxCadencePosition element to retrieve /// Returns nullable byte representing the MaxCadencePosition field public byte? GetMaxCadencePosition(int index) { return (byte?)GetFieldValue(82, index, Fit.SubfieldIndexMainField); } /// /// Set MaxCadencePosition field /// Units: rpm /// Comment: Maximum cadence by position. Data value indexes defined by rider_position_type. /// 0 based index of max_cadence_position /// Nullable field value to be set public void SetMaxCadencePosition(int index, byte? maxCadencePosition_) { SetFieldValue(82, index, maxCadencePosition_, Fit.SubfieldIndexMainField); } #endregion // Methods } // Class } // namespace