#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 Session profile message.
///
public class SessionMesg : Mesg
{
#region Fields
static class TotalCyclesSubfield
{
public static ushort TotalStrides = 0;
public static ushort Subfields = 1;
public static ushort Active = Fit.SubfieldIndexActiveSubfield;
public static ushort MainField = Fit.SubfieldIndexMainField;
}
static class AvgCadenceSubfield
{
public static ushort AvgRunningCadence = 0;
public static ushort Subfields = 1;
public static ushort Active = Fit.SubfieldIndexActiveSubfield;
public static ushort MainField = Fit.SubfieldIndexMainField;
}
static class MaxCadenceSubfield
{
public static ushort MaxRunningCadence = 0;
public static ushort Subfields = 1;
public static ushort Active = Fit.SubfieldIndexActiveSubfield;
public static ushort MainField = Fit.SubfieldIndexMainField;
}
#endregion
#region Constructors
public SessionMesg() : base(Profile.GetMesg(MesgNum.Session))
{
}
public SessionMesg(Mesg mesg) : base(mesg)
{
}
#endregion // Constructors
#region Methods
///
/// Retrieves the MessageIndex field
/// Comment: Selected bit is set for the current session.
/// Returns nullable ushort representing the MessageIndex field
public ushort? GetMessageIndex()
{
return (ushort?)GetFieldValue(254, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MessageIndex field
/// Comment: Selected bit is set for the current session.
/// Nullable field value to be set
public void SetMessageIndex(ushort? messageIndex_)
{
SetFieldValue(254, 0, messageIndex_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Timestamp field
/// Units: s
/// Comment: Sesson 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: Sesson end time.
/// Nullable field value to be set
public void SetTimestamp(DateTime timestamp_)
{
SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Event field
/// Comment: session
/// 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
/// Comment: session
/// Nullable field value to be set
public void SetEvent(Event? event_)
{
SetFieldValue(0, 0, event_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EventType field
/// Comment: stop
/// 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
/// Comment: stop
/// 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 Sport field
/// Returns nullable Sport enum representing the Sport field
public Sport? GetSport()
{
object obj = GetFieldValue(5, 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(5, 0, sport_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SubSport field
/// Returns nullable SubSport enum representing the SubSport field
public SubSport? GetSubSport()
{
object obj = GetFieldValue(6, 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(6, 0, subSport_, 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 TotalStrides subfield
/// Units: strides
/// Nullable uint representing the TotalStrides subfield
public uint? GetTotalStrides()
{
return (uint?)GetFieldValue(10, 0, TotalCyclesSubfield.TotalStrides);
}
///
///
/// Set TotalStrides subfield
/// Units: strides
/// Subfield value to be set
public void SetTotalStrides(uint? totalStrides)
{
SetFieldValue(10, 0, totalStrides, TotalCyclesSubfield.TotalStrides);
}
///
/// 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
/// Returns nullable ushort representing the TotalFatCalories field
public ushort? GetTotalFatCalories()
{
return (ushort?)GetFieldValue(13, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalFatCalories field
/// Units: kcal
/// Nullable field value to be set
public void SetTotalFatCalories(ushort? totalFatCalories_)
{
SetFieldValue(13, 0, totalFatCalories_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgSpeed field
/// Units: m/s
/// Comment: total_distance / total_timer_time
/// Returns nullable float representing the AvgSpeed field
public float? GetAvgSpeed()
{
return (float?)GetFieldValue(14, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgSpeed field
/// Units: m/s
/// Comment: total_distance / total_timer_time
/// Nullable field value to be set
public void SetAvgSpeed(float? avgSpeed_)
{
SetFieldValue(14, 0, avgSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxSpeed field
/// Units: m/s
/// Returns nullable float representing the MaxSpeed field
public float? GetMaxSpeed()
{
return (float?)GetFieldValue(15, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetMaxSpeed(float? maxSpeed_)
{
SetFieldValue(15, 0, maxSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgHeartRate field
/// Units: bpm
/// Comment: average heart rate (excludes pause time)
/// Returns nullable byte representing the AvgHeartRate field
public byte? GetAvgHeartRate()
{
return (byte?)GetFieldValue(16, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgHeartRate field
/// Units: bpm
/// Comment: average heart rate (excludes pause time)
/// Nullable field value to be set
public void SetAvgHeartRate(byte? avgHeartRate_)
{
SetFieldValue(16, 0, avgHeartRate_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxHeartRate field
/// Units: bpm
/// Returns nullable byte representing the MaxHeartRate field
public byte? GetMaxHeartRate()
{
return (byte?)GetFieldValue(17, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxHeartRate field
/// Units: bpm
/// Nullable field value to be set
public void SetMaxHeartRate(byte? maxHeartRate_)
{
SetFieldValue(17, 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(18, 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(18, 0, avgCadence_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRunningCadence subfield
/// Units: strides/min
/// Nullable byte representing the AvgRunningCadence subfield
public byte? GetAvgRunningCadence()
{
return (byte?)GetFieldValue(18, 0, AvgCadenceSubfield.AvgRunningCadence);
}
///
///
/// Set AvgRunningCadence subfield
/// Units: strides/min
/// Subfield value to be set
public void SetAvgRunningCadence(byte? avgRunningCadence)
{
SetFieldValue(18, 0, avgRunningCadence, AvgCadenceSubfield.AvgRunningCadence);
}
///
/// Retrieves the MaxCadence field
/// Units: rpm
/// Returns nullable byte representing the MaxCadence field
public byte? GetMaxCadence()
{
return (byte?)GetFieldValue(19, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxCadence field
/// Units: rpm
/// Nullable field value to be set
public void SetMaxCadence(byte? maxCadence_)
{
SetFieldValue(19, 0, maxCadence_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxRunningCadence subfield
/// Units: strides/min
/// Nullable byte representing the MaxRunningCadence subfield
public byte? GetMaxRunningCadence()
{
return (byte?)GetFieldValue(19, 0, MaxCadenceSubfield.MaxRunningCadence);
}
///
///
/// Set MaxRunningCadence subfield
/// Units: strides/min
/// Subfield value to be set
public void SetMaxRunningCadence(byte? maxRunningCadence)
{
SetFieldValue(19, 0, maxRunningCadence, MaxCadenceSubfield.MaxRunningCadence);
}
///
/// 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(20, 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(20, 0, avgPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxPower field
/// Units: watts
/// Returns nullable ushort representing the MaxPower field
public ushort? GetMaxPower()
{
return (ushort?)GetFieldValue(21, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxPower field
/// Units: watts
/// Nullable field value to be set
public void SetMaxPower(ushort? maxPower_)
{
SetFieldValue(21, 0, maxPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalAscent field
/// Units: m
/// Returns nullable ushort representing the TotalAscent field
public ushort? GetTotalAscent()
{
return (ushort?)GetFieldValue(22, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalAscent field
/// Units: m
/// Nullable field value to be set
public void SetTotalAscent(ushort? totalAscent_)
{
SetFieldValue(22, 0, totalAscent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalDescent field
/// Units: m
/// Returns nullable ushort representing the TotalDescent field
public ushort? GetTotalDescent()
{
return (ushort?)GetFieldValue(23, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalDescent field
/// Units: m
/// Nullable field value to be set
public void SetTotalDescent(ushort? totalDescent_)
{
SetFieldValue(23, 0, totalDescent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalTrainingEffect field
/// Returns nullable float representing the TotalTrainingEffect field
public float? GetTotalTrainingEffect()
{
return (float?)GetFieldValue(24, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalTrainingEffect field
/// Nullable field value to be set
public void SetTotalTrainingEffect(float? totalTrainingEffect_)
{
SetFieldValue(24, 0, totalTrainingEffect_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the FirstLapIndex field
/// Returns nullable ushort representing the FirstLapIndex field
public ushort? GetFirstLapIndex()
{
return (ushort?)GetFieldValue(25, 0, Fit.SubfieldIndexMainField);
}
///
/// Set FirstLapIndex field
/// Nullable field value to be set
public void SetFirstLapIndex(ushort? firstLapIndex_)
{
SetFieldValue(25, 0, firstLapIndex_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the NumLaps field
/// Returns nullable ushort representing the NumLaps field
public ushort? GetNumLaps()
{
return (ushort?)GetFieldValue(26, 0, Fit.SubfieldIndexMainField);
}
///
/// Set NumLaps field
/// Nullable field value to be set
public void SetNumLaps(ushort? numLaps_)
{
SetFieldValue(26, 0, numLaps_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EventGroup field
/// Returns nullable byte representing the EventGroup field
public byte? GetEventGroup()
{
return (byte?)GetFieldValue(27, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EventGroup field
/// Nullable field value to be set
public void SetEventGroup(byte? eventGroup_)
{
SetFieldValue(27, 0, eventGroup_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Trigger field
/// Returns nullable SessionTrigger enum representing the Trigger field
public SessionTrigger? GetTrigger()
{
object obj = GetFieldValue(28, 0, Fit.SubfieldIndexMainField);
SessionTrigger? value = obj == null ? (SessionTrigger?)null : (SessionTrigger)obj;
return value;
}
///
/// Set Trigger field
/// Nullable field value to be set
public void SetTrigger(SessionTrigger? trigger_)
{
SetFieldValue(28, 0, trigger_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the NecLat field
/// Units: semicircles
/// Returns nullable int representing the NecLat field
public int? GetNecLat()
{
return (int?)GetFieldValue(29, 0, Fit.SubfieldIndexMainField);
}
///
/// Set NecLat field
/// Units: semicircles
/// Nullable field value to be set
public void SetNecLat(int? necLat_)
{
SetFieldValue(29, 0, necLat_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the NecLong field
/// Units: semicircles
/// Returns nullable int representing the NecLong field
public int? GetNecLong()
{
return (int?)GetFieldValue(30, 0, Fit.SubfieldIndexMainField);
}
///
/// Set NecLong field
/// Units: semicircles
/// Nullable field value to be set
public void SetNecLong(int? necLong_)
{
SetFieldValue(30, 0, necLong_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SwcLat field
/// Units: semicircles
/// Returns nullable int representing the SwcLat field
public int? GetSwcLat()
{
return (int?)GetFieldValue(31, 0, Fit.SubfieldIndexMainField);
}
///
/// Set SwcLat field
/// Units: semicircles
/// Nullable field value to be set
public void SetSwcLat(int? swcLat_)
{
SetFieldValue(31, 0, swcLat_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SwcLong field
/// Units: semicircles
/// Returns nullable int representing the SwcLong field
public int? GetSwcLong()
{
return (int?)GetFieldValue(32, 0, Fit.SubfieldIndexMainField);
}
///
/// Set SwcLong field
/// Units: semicircles
/// Nullable field value to be set
public void SetSwcLong(int? swcLong_)
{
SetFieldValue(32, 0, swcLong_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the NormalizedPower field
/// Units: watts
/// Returns nullable ushort representing the NormalizedPower field
public ushort? GetNormalizedPower()
{
return (ushort?)GetFieldValue(34, 0, Fit.SubfieldIndexMainField);
}
///
/// Set NormalizedPower field
/// Units: watts
/// Nullable field value to be set
public void SetNormalizedPower(ushort? normalizedPower_)
{
SetFieldValue(34, 0, normalizedPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TrainingStressScore field
/// Units: tss
/// Returns nullable float representing the TrainingStressScore field
public float? GetTrainingStressScore()
{
return (float?)GetFieldValue(35, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TrainingStressScore field
/// Units: tss
/// Nullable field value to be set
public void SetTrainingStressScore(float? trainingStressScore_)
{
SetFieldValue(35, 0, trainingStressScore_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the IntensityFactor field
/// Units: if
/// Returns nullable float representing the IntensityFactor field
public float? GetIntensityFactor()
{
return (float?)GetFieldValue(36, 0, Fit.SubfieldIndexMainField);
}
///
/// Set IntensityFactor field
/// Units: if
/// Nullable field value to be set
public void SetIntensityFactor(float? intensityFactor_)
{
SetFieldValue(36, 0, intensityFactor_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LeftRightBalance field
/// Returns nullable ushort representing the LeftRightBalance field
public ushort? GetLeftRightBalance()
{
return (ushort?)GetFieldValue(37, 0, Fit.SubfieldIndexMainField);
}
///
/// Set LeftRightBalance field
/// Nullable field value to be set
public void SetLeftRightBalance(ushort? leftRightBalance_)
{
SetFieldValue(37, 0, leftRightBalance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgStrokeCount field
/// Units: strokes/lap
/// Returns nullable float representing the AvgStrokeCount field
public float? GetAvgStrokeCount()
{
return (float?)GetFieldValue(41, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgStrokeCount field
/// Units: strokes/lap
/// Nullable field value to be set
public void SetAvgStrokeCount(float? avgStrokeCount_)
{
SetFieldValue(41, 0, avgStrokeCount_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgStrokeDistance field
/// Units: m
/// Returns nullable float representing the AvgStrokeDistance field
public float? GetAvgStrokeDistance()
{
return (float?)GetFieldValue(42, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgStrokeDistance field
/// Units: m
/// Nullable field value to be set
public void SetAvgStrokeDistance(float? avgStrokeDistance_)
{
SetFieldValue(42, 0, avgStrokeDistance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SwimStroke field
/// Units: swim_stroke
/// Returns nullable SwimStroke enum representing the SwimStroke field
public SwimStroke? GetSwimStroke()
{
object obj = GetFieldValue(43, 0, Fit.SubfieldIndexMainField);
SwimStroke? value = obj == null ? (SwimStroke?)null : (SwimStroke)obj;
return value;
}
///
/// Set SwimStroke field
/// Units: swim_stroke
/// Nullable field value to be set
public void SetSwimStroke(SwimStroke? swimStroke_)
{
SetFieldValue(43, 0, swimStroke_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the PoolLength field
/// Units: m
/// Returns nullable float representing the PoolLength field
public float? GetPoolLength()
{
return (float?)GetFieldValue(44, 0, Fit.SubfieldIndexMainField);
}
///
/// Set PoolLength field
/// Units: m
/// Nullable field value to be set
public void SetPoolLength(float? poolLength_)
{
SetFieldValue(44, 0, poolLength_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the ThresholdPower field
/// Units: watts
/// Returns nullable ushort representing the ThresholdPower field
public ushort? GetThresholdPower()
{
return (ushort?)GetFieldValue(45, 0, Fit.SubfieldIndexMainField);
}
///
/// Set ThresholdPower field
/// Units: watts
/// Nullable field value to be set
public void SetThresholdPower(ushort? thresholdPower_)
{
SetFieldValue(45, 0, thresholdPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the PoolLengthUnit field
/// Returns nullable DisplayMeasure enum representing the PoolLengthUnit field
public DisplayMeasure? GetPoolLengthUnit()
{
object obj = GetFieldValue(46, 0, Fit.SubfieldIndexMainField);
DisplayMeasure? value = obj == null ? (DisplayMeasure?)null : (DisplayMeasure)obj;
return value;
}
///
/// Set PoolLengthUnit field
/// Nullable field value to be set
public void SetPoolLengthUnit(DisplayMeasure? poolLengthUnit_)
{
SetFieldValue(46, 0, poolLengthUnit_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the NumActiveLengths field
/// Units: lengths
/// Comment: # of active lengths of swim pool
/// Returns nullable ushort representing the NumActiveLengths field
public ushort? GetNumActiveLengths()
{
return (ushort?)GetFieldValue(47, 0, Fit.SubfieldIndexMainField);
}
///
/// Set NumActiveLengths field
/// Units: lengths
/// Comment: # of active lengths of swim pool
/// Nullable field value to be set
public void SetNumActiveLengths(ushort? numActiveLengths_)
{
SetFieldValue(47, 0, numActiveLengths_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalWork field
/// Units: J
/// Returns nullable uint representing the TotalWork field
public uint? GetTotalWork()
{
return (uint?)GetFieldValue(48, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalWork field
/// Units: J
/// Nullable field value to be set
public void SetTotalWork(uint? totalWork_)
{
SetFieldValue(48, 0, totalWork_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgAltitude field
/// Units: m
/// Returns nullable float representing the AvgAltitude field
public float? GetAvgAltitude()
{
return (float?)GetFieldValue(49, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgAltitude field
/// Units: m
/// Nullable field value to be set
public void SetAvgAltitude(float? avgAltitude_)
{
SetFieldValue(49, 0, avgAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxAltitude field
/// Units: m
/// Returns nullable float representing the MaxAltitude field
public float? GetMaxAltitude()
{
return (float?)GetFieldValue(50, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxAltitude field
/// Units: m
/// Nullable field value to be set
public void SetMaxAltitude(float? maxAltitude_)
{
SetFieldValue(50, 0, maxAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the GpsAccuracy field
/// Units: m
/// Returns nullable byte representing the GpsAccuracy field
public byte? GetGpsAccuracy()
{
return (byte?)GetFieldValue(51, 0, Fit.SubfieldIndexMainField);
}
///
/// Set GpsAccuracy field
/// Units: m
/// Nullable field value to be set
public void SetGpsAccuracy(byte? gpsAccuracy_)
{
SetFieldValue(51, 0, gpsAccuracy_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgGrade field
/// Units: %
/// Returns nullable float representing the AvgGrade field
public float? GetAvgGrade()
{
return (float?)GetFieldValue(52, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgGrade field
/// Units: %
/// Nullable field value to be set
public void SetAvgGrade(float? avgGrade_)
{
SetFieldValue(52, 0, avgGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgPosGrade field
/// Units: %
/// Returns nullable float representing the AvgPosGrade field
public float? GetAvgPosGrade()
{
return (float?)GetFieldValue(53, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgPosGrade field
/// Units: %
/// Nullable field value to be set
public void SetAvgPosGrade(float? avgPosGrade_)
{
SetFieldValue(53, 0, avgPosGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgNegGrade field
/// Units: %
/// Returns nullable float representing the AvgNegGrade field
public float? GetAvgNegGrade()
{
return (float?)GetFieldValue(54, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgNegGrade field
/// Units: %
/// Nullable field value to be set
public void SetAvgNegGrade(float? avgNegGrade_)
{
SetFieldValue(54, 0, avgNegGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxPosGrade field
/// Units: %
/// Returns nullable float representing the MaxPosGrade field
public float? GetMaxPosGrade()
{
return (float?)GetFieldValue(55, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxPosGrade field
/// Units: %
/// Nullable field value to be set
public void SetMaxPosGrade(float? maxPosGrade_)
{
SetFieldValue(55, 0, maxPosGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxNegGrade field
/// Units: %
/// Returns nullable float representing the MaxNegGrade field
public float? GetMaxNegGrade()
{
return (float?)GetFieldValue(56, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxNegGrade field
/// Units: %
/// Nullable field value to be set
public void SetMaxNegGrade(float? maxNegGrade_)
{
SetFieldValue(56, 0, maxNegGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgTemperature field
/// Units: C
/// Returns nullable sbyte representing the AvgTemperature field
public sbyte? GetAvgTemperature()
{
return (sbyte?)GetFieldValue(57, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgTemperature field
/// Units: C
/// Nullable field value to be set
public void SetAvgTemperature(sbyte? avgTemperature_)
{
SetFieldValue(57, 0, avgTemperature_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxTemperature field
/// Units: C
/// Returns nullable sbyte representing the MaxTemperature field
public sbyte? GetMaxTemperature()
{
return (sbyte?)GetFieldValue(58, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxTemperature field
/// Units: C
/// Nullable field value to be set
public void SetMaxTemperature(sbyte? maxTemperature_)
{
SetFieldValue(58, 0, maxTemperature_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalMovingTime field
/// Units: s
/// Returns nullable float representing the TotalMovingTime field
public float? GetTotalMovingTime()
{
return (float?)GetFieldValue(59, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalMovingTime field
/// Units: s
/// Nullable field value to be set
public void SetTotalMovingTime(float? totalMovingTime_)
{
SetFieldValue(59, 0, totalMovingTime_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgPosVerticalSpeed field
/// Units: m/s
/// Returns nullable float representing the AvgPosVerticalSpeed field
public float? GetAvgPosVerticalSpeed()
{
return (float?)GetFieldValue(60, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgPosVerticalSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetAvgPosVerticalSpeed(float? avgPosVerticalSpeed_)
{
SetFieldValue(60, 0, avgPosVerticalSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgNegVerticalSpeed field
/// Units: m/s
/// Returns nullable float representing the AvgNegVerticalSpeed field
public float? GetAvgNegVerticalSpeed()
{
return (float?)GetFieldValue(61, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgNegVerticalSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetAvgNegVerticalSpeed(float? avgNegVerticalSpeed_)
{
SetFieldValue(61, 0, avgNegVerticalSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxPosVerticalSpeed field
/// Units: m/s
/// Returns nullable float representing the MaxPosVerticalSpeed field
public float? GetMaxPosVerticalSpeed()
{
return (float?)GetFieldValue(62, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxPosVerticalSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetMaxPosVerticalSpeed(float? maxPosVerticalSpeed_)
{
SetFieldValue(62, 0, maxPosVerticalSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxNegVerticalSpeed field
/// Units: m/s
/// Returns nullable float representing the MaxNegVerticalSpeed field
public float? GetMaxNegVerticalSpeed()
{
return (float?)GetFieldValue(63, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxNegVerticalSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetMaxNegVerticalSpeed(float? maxNegVerticalSpeed_)
{
SetFieldValue(63, 0, maxNegVerticalSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MinHeartRate field
/// Units: bpm
/// Returns nullable byte representing the MinHeartRate field
public byte? GetMinHeartRate()
{
return (byte?)GetFieldValue(64, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MinHeartRate field
/// Units: bpm
/// Nullable field value to be set
public void SetMinHeartRate(byte? minHeartRate_)
{
SetFieldValue(64, 0, minHeartRate_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field TimeInHrZone
public int GetNumTimeInHrZone()
{
return GetNumFieldValues(65, 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(65, 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(65, index, timeInHrZone_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field TimeInSpeedZone
public int GetNumTimeInSpeedZone()
{
return GetNumFieldValues(66, 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(66, 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(66, index, timeInSpeedZone_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field TimeInCadenceZone
public int GetNumTimeInCadenceZone()
{
return GetNumFieldValues(67, 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(67, 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(67, index, timeInCadenceZone_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field TimeInPowerZone
public int GetNumTimeInPowerZone()
{
return GetNumFieldValues(68, 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(68, 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(68, index, timeInPowerZone_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLapTime field
/// Units: s
/// Returns nullable float representing the AvgLapTime field
public float? GetAvgLapTime()
{
return (float?)GetFieldValue(69, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLapTime field
/// Units: s
/// Nullable field value to be set
public void SetAvgLapTime(float? avgLapTime_)
{
SetFieldValue(69, 0, avgLapTime_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the BestLapIndex field
/// Returns nullable ushort representing the BestLapIndex field
public ushort? GetBestLapIndex()
{
return (ushort?)GetFieldValue(70, 0, Fit.SubfieldIndexMainField);
}
///
/// Set BestLapIndex field
/// Nullable field value to be set
public void SetBestLapIndex(ushort? bestLapIndex_)
{
SetFieldValue(70, 0, bestLapIndex_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MinAltitude field
/// Units: m
/// Returns nullable float representing the MinAltitude field
public float? GetMinAltitude()
{
return (float?)GetFieldValue(71, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MinAltitude field
/// Units: m
/// Nullable field value to be set
public void SetMinAltitude(float? minAltitude_)
{
SetFieldValue(71, 0, minAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the PlayerScore field
/// Returns nullable ushort representing the PlayerScore field
public ushort? GetPlayerScore()
{
return (ushort?)GetFieldValue(82, 0, Fit.SubfieldIndexMainField);
}
///
/// Set PlayerScore field
/// Nullable field value to be set
public void SetPlayerScore(ushort? playerScore_)
{
SetFieldValue(82, 0, playerScore_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the OpponentScore field
/// Returns nullable ushort representing the OpponentScore field
public ushort? GetOpponentScore()
{
return (ushort?)GetFieldValue(83, 0, Fit.SubfieldIndexMainField);
}
///
/// Set OpponentScore field
/// Nullable field value to be set
public void SetOpponentScore(ushort? opponentScore_)
{
SetFieldValue(83, 0, opponentScore_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the OpponentName field
/// Returns byte[] representing the OpponentName field
public byte[] GetOpponentName()
{
return (byte[])GetFieldValue(84, 0, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the OpponentName field
/// Returns String representing the OpponentName field
public String GetOpponentNameAsString()
{
return Encoding.UTF8.GetString((byte[])GetFieldValue(84, 0, Fit.SubfieldIndexMainField));
}
///
/// Set OpponentName field
/// field value to be set
public void SetOpponentName(String opponentName_)
{
SetFieldValue(84, 0, System.Text.Encoding.UTF8.GetBytes(opponentName_), Fit.SubfieldIndexMainField);
}
///
/// Set OpponentName field
/// field value to be set
public void SetOpponentName(byte[] opponentName_)
{
SetFieldValue(84, 0, opponentName_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field StrokeCount
public int GetNumStrokeCount()
{
return GetNumFieldValues(85, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StrokeCount field
/// Units: counts
/// Comment: stroke_type enum used as the index
/// 0 based index of StrokeCount element to retrieve
/// Returns nullable ushort representing the StrokeCount field
public ushort? GetStrokeCount(int index)
{
return (ushort?)GetFieldValue(85, index, Fit.SubfieldIndexMainField);
}
///
/// Set StrokeCount field
/// Units: counts
/// Comment: stroke_type enum used as the index
/// 0 based index of stroke_count
/// Nullable field value to be set
public void SetStrokeCount(int index, ushort? strokeCount_)
{
SetFieldValue(85, index, strokeCount_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field ZoneCount
public int GetNumZoneCount()
{
return GetNumFieldValues(86, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the ZoneCount field
/// Units: counts
/// Comment: zone number used as the index
/// 0 based index of ZoneCount element to retrieve
/// Returns nullable ushort representing the ZoneCount field
public ushort? GetZoneCount(int index)
{
return (ushort?)GetFieldValue(86, index, Fit.SubfieldIndexMainField);
}
///
/// Set ZoneCount field
/// Units: counts
/// Comment: zone number used as the index
/// 0 based index of zone_count
/// Nullable field value to be set
public void SetZoneCount(int index, ushort? zoneCount_)
{
SetFieldValue(86, index, zoneCount_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxBallSpeed field
/// Units: m/s
/// Returns nullable float representing the MaxBallSpeed field
public float? GetMaxBallSpeed()
{
return (float?)GetFieldValue(87, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxBallSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetMaxBallSpeed(float? maxBallSpeed_)
{
SetFieldValue(87, 0, maxBallSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgBallSpeed field
/// Units: m/s
/// Returns nullable float representing the AvgBallSpeed field
public float? GetAvgBallSpeed()
{
return (float?)GetFieldValue(88, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgBallSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetAvgBallSpeed(float? avgBallSpeed_)
{
SetFieldValue(88, 0, avgBallSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgVerticalOscillation field
/// Units: mm
/// Returns nullable float representing the AvgVerticalOscillation field
public float? GetAvgVerticalOscillation()
{
return (float?)GetFieldValue(89, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgVerticalOscillation field
/// Units: mm
/// Nullable field value to be set
public void SetAvgVerticalOscillation(float? avgVerticalOscillation_)
{
SetFieldValue(89, 0, avgVerticalOscillation_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgStanceTimePercent field
/// Units: percent
/// Returns nullable float representing the AvgStanceTimePercent field
public float? GetAvgStanceTimePercent()
{
return (float?)GetFieldValue(90, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgStanceTimePercent field
/// Units: percent
/// Nullable field value to be set
public void SetAvgStanceTimePercent(float? avgStanceTimePercent_)
{
SetFieldValue(90, 0, avgStanceTimePercent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgStanceTime field
/// Units: ms
/// Returns nullable float representing the AvgStanceTime field
public float? GetAvgStanceTime()
{
return (float?)GetFieldValue(91, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgStanceTime field
/// Units: ms
/// Nullable field value to be set
public void SetAvgStanceTime(float? avgStanceTime_)
{
SetFieldValue(91, 0, avgStanceTime_, 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(92, 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(92, 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(93, 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(93, 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(94, 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(94, 0, totalFractionalCycles_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgTotalHemoglobinConc
public int GetNumAvgTotalHemoglobinConc()
{
return GetNumFieldValues(95, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Avg saturated and unsaturated hemoglobin
/// 0 based index of AvgTotalHemoglobinConc element to retrieve
/// Returns nullable float representing the AvgTotalHemoglobinConc field
public float? GetAvgTotalHemoglobinConc(int index)
{
return (float?)GetFieldValue(95, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Avg saturated and unsaturated hemoglobin
/// 0 based index of avg_total_hemoglobin_conc
/// Nullable field value to be set
public void SetAvgTotalHemoglobinConc(int index, float? avgTotalHemoglobinConc_)
{
SetFieldValue(95, index, avgTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MinTotalHemoglobinConc
public int GetNumMinTotalHemoglobinConc()
{
return GetNumFieldValues(96, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MinTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Min saturated and unsaturated hemoglobin
/// 0 based index of MinTotalHemoglobinConc element to retrieve
/// Returns nullable float representing the MinTotalHemoglobinConc field
public float? GetMinTotalHemoglobinConc(int index)
{
return (float?)GetFieldValue(96, index, Fit.SubfieldIndexMainField);
}
///
/// Set MinTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Min saturated and unsaturated hemoglobin
/// 0 based index of min_total_hemoglobin_conc
/// Nullable field value to be set
public void SetMinTotalHemoglobinConc(int index, float? minTotalHemoglobinConc_)
{
SetFieldValue(96, index, minTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MaxTotalHemoglobinConc
public int GetNumMaxTotalHemoglobinConc()
{
return GetNumFieldValues(97, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Max saturated and unsaturated hemoglobin
/// 0 based index of MaxTotalHemoglobinConc element to retrieve
/// Returns nullable float representing the MaxTotalHemoglobinConc field
public float? GetMaxTotalHemoglobinConc(int index)
{
return (float?)GetFieldValue(97, index, Fit.SubfieldIndexMainField);
}
///
/// Set MaxTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Max saturated and unsaturated hemoglobin
/// 0 based index of max_total_hemoglobin_conc
/// Nullable field value to be set
public void SetMaxTotalHemoglobinConc(int index, float? maxTotalHemoglobinConc_)
{
SetFieldValue(97, index, maxTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgSaturatedHemoglobinPercent
public int GetNumAvgSaturatedHemoglobinPercent()
{
return GetNumFieldValues(98, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Avg percentage of hemoglobin saturated with oxygen
/// 0 based index of AvgSaturatedHemoglobinPercent element to retrieve
/// Returns nullable float representing the AvgSaturatedHemoglobinPercent field
public float? GetAvgSaturatedHemoglobinPercent(int index)
{
return (float?)GetFieldValue(98, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Avg percentage of hemoglobin saturated with oxygen
/// 0 based index of avg_saturated_hemoglobin_percent
/// Nullable field value to be set
public void SetAvgSaturatedHemoglobinPercent(int index, float? avgSaturatedHemoglobinPercent_)
{
SetFieldValue(98, index, avgSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MinSaturatedHemoglobinPercent
public int GetNumMinSaturatedHemoglobinPercent()
{
return GetNumFieldValues(99, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MinSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Min percentage of hemoglobin saturated with oxygen
/// 0 based index of MinSaturatedHemoglobinPercent element to retrieve
/// Returns nullable float representing the MinSaturatedHemoglobinPercent field
public float? GetMinSaturatedHemoglobinPercent(int index)
{
return (float?)GetFieldValue(99, index, Fit.SubfieldIndexMainField);
}
///
/// Set MinSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Min percentage of hemoglobin saturated with oxygen
/// 0 based index of min_saturated_hemoglobin_percent
/// Nullable field value to be set
public void SetMinSaturatedHemoglobinPercent(int index, float? minSaturatedHemoglobinPercent_)
{
SetFieldValue(99, index, minSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MaxSaturatedHemoglobinPercent
public int GetNumMaxSaturatedHemoglobinPercent()
{
return GetNumFieldValues(100, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Max percentage of hemoglobin saturated with oxygen
/// 0 based index of MaxSaturatedHemoglobinPercent element to retrieve
/// Returns nullable float representing the MaxSaturatedHemoglobinPercent field
public float? GetMaxSaturatedHemoglobinPercent(int index)
{
return (float?)GetFieldValue(100, index, Fit.SubfieldIndexMainField);
}
///
/// Set MaxSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Max percentage of hemoglobin saturated with oxygen
/// 0 based index of max_saturated_hemoglobin_percent
/// Nullable field value to be set
public void SetMaxSaturatedHemoglobinPercent(int index, float? maxSaturatedHemoglobinPercent_)
{
SetFieldValue(100, index, maxSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLeftTorqueEffectiveness field
/// Units: percent
/// Returns nullable float representing the AvgLeftTorqueEffectiveness field
public float? GetAvgLeftTorqueEffectiveness()
{
return (float?)GetFieldValue(101, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLeftTorqueEffectiveness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgLeftTorqueEffectiveness(float? avgLeftTorqueEffectiveness_)
{
SetFieldValue(101, 0, avgLeftTorqueEffectiveness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRightTorqueEffectiveness field
/// Units: percent
/// Returns nullable float representing the AvgRightTorqueEffectiveness field
public float? GetAvgRightTorqueEffectiveness()
{
return (float?)GetFieldValue(102, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgRightTorqueEffectiveness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgRightTorqueEffectiveness(float? avgRightTorqueEffectiveness_)
{
SetFieldValue(102, 0, avgRightTorqueEffectiveness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLeftPedalSmoothness field
/// Units: percent
/// Returns nullable float representing the AvgLeftPedalSmoothness field
public float? GetAvgLeftPedalSmoothness()
{
return (float?)GetFieldValue(103, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLeftPedalSmoothness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgLeftPedalSmoothness(float? avgLeftPedalSmoothness_)
{
SetFieldValue(103, 0, avgLeftPedalSmoothness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRightPedalSmoothness field
/// Units: percent
/// Returns nullable float representing the AvgRightPedalSmoothness field
public float? GetAvgRightPedalSmoothness()
{
return (float?)GetFieldValue(104, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgRightPedalSmoothness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgRightPedalSmoothness(float? avgRightPedalSmoothness_)
{
SetFieldValue(104, 0, avgRightPedalSmoothness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgCombinedPedalSmoothness field
/// Units: percent
/// Returns nullable float representing the AvgCombinedPedalSmoothness field
public float? GetAvgCombinedPedalSmoothness()
{
return (float?)GetFieldValue(105, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgCombinedPedalSmoothness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgCombinedPedalSmoothness(float? avgCombinedPedalSmoothness_)
{
SetFieldValue(105, 0, avgCombinedPedalSmoothness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SportIndex field
/// Returns nullable byte representing the SportIndex field
public byte? GetSportIndex()
{
return (byte?)GetFieldValue(111, 0, Fit.SubfieldIndexMainField);
}
///
/// Set SportIndex field
/// Nullable field value to be set
public void SetSportIndex(byte? sportIndex_)
{
SetFieldValue(111, 0, sportIndex_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TimeStanding field
/// Units: s
/// Comment: Total time spend in the standing position
/// Returns nullable float representing the TimeStanding field
public float? GetTimeStanding()
{
return (float?)GetFieldValue(112, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TimeStanding field
/// Units: s
/// Comment: Total time spend in the standing position
/// Nullable field value to be set
public void SetTimeStanding(float? timeStanding_)
{
SetFieldValue(112, 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(113, 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(113, 0, standCount_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLeftPco field
/// Units: mm
/// Comment: Average platform center offset Left
/// Returns nullable sbyte representing the AvgLeftPco field
public sbyte? GetAvgLeftPco()
{
return (sbyte?)GetFieldValue(114, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLeftPco field
/// Units: mm
/// Comment: Average platform center offset Left
/// Nullable field value to be set
public void SetAvgLeftPco(sbyte? avgLeftPco_)
{
SetFieldValue(114, 0, avgLeftPco_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRightPco field
/// Units: mm
/// Comment: Average platform center offset Right
/// Returns nullable sbyte representing the AvgRightPco field
public sbyte? GetAvgRightPco()
{
return (sbyte?)GetFieldValue(115, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgRightPco field
/// Units: mm
/// Comment: Average platform center offset Right
/// Nullable field value to be set
public void SetAvgRightPco(sbyte? avgRightPco_)
{
SetFieldValue(115, 0, avgRightPco_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgLeftPowerPhase
public int GetNumAvgLeftPowerPhase()
{
return GetNumFieldValues(116, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLeftPowerPhase field
/// Units: degrees
/// Comment: Average left power phase angles. 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(116, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLeftPowerPhase field
/// Units: degrees
/// Comment: Average left power phase angles. 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(116, index, avgLeftPowerPhase_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgLeftPowerPhasePeak
public int GetNumAvgLeftPowerPhasePeak()
{
return GetNumFieldValues(117, 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(117, 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(117, index, avgLeftPowerPhasePeak_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgRightPowerPhase
public int GetNumAvgRightPowerPhase()
{
return GetNumFieldValues(118, 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(118, 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(118, index, avgRightPowerPhase_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgRightPowerPhasePeak
public int GetNumAvgRightPowerPhasePeak()
{
return GetNumFieldValues(119, 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(119, 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(119, index, avgRightPowerPhasePeak_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgPowerPosition
public int GetNumAvgPowerPosition()
{
return GetNumFieldValues(120, 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(120, 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(120, index, avgPowerPosition_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MaxPowerPosition
public int GetNumMaxPowerPosition()
{
return GetNumFieldValues(121, 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(121, 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(121, index, maxPowerPosition_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgCadencePosition
public int GetNumAvgCadencePosition()
{
return GetNumFieldValues(122, 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(122, 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(122, index, avgCadencePosition_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MaxCadencePosition
public int GetNumMaxCadencePosition()
{
return GetNumFieldValues(123, 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(123, 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(123, index, maxCadencePosition_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedAvgSpeed field
/// Units: m/s
/// Comment: total_distance / total_timer_time
/// Returns nullable float representing the EnhancedAvgSpeed field
public float? GetEnhancedAvgSpeed()
{
return (float?)GetFieldValue(124, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedAvgSpeed field
/// Units: m/s
/// Comment: total_distance / total_timer_time
/// Nullable field value to be set
public void SetEnhancedAvgSpeed(float? enhancedAvgSpeed_)
{
SetFieldValue(124, 0, enhancedAvgSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedMaxSpeed field
/// Units: m/s
/// Returns nullable float representing the EnhancedMaxSpeed field
public float? GetEnhancedMaxSpeed()
{
return (float?)GetFieldValue(125, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedMaxSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetEnhancedMaxSpeed(float? enhancedMaxSpeed_)
{
SetFieldValue(125, 0, enhancedMaxSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedAvgAltitude field
/// Units: m
/// Returns nullable float representing the EnhancedAvgAltitude field
public float? GetEnhancedAvgAltitude()
{
return (float?)GetFieldValue(126, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedAvgAltitude field
/// Units: m
/// Nullable field value to be set
public void SetEnhancedAvgAltitude(float? enhancedAvgAltitude_)
{
SetFieldValue(126, 0, enhancedAvgAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedMinAltitude field
/// Units: m
/// Returns nullable float representing the EnhancedMinAltitude field
public float? GetEnhancedMinAltitude()
{
return (float?)GetFieldValue(127, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedMinAltitude field
/// Units: m
/// Nullable field value to be set
public void SetEnhancedMinAltitude(float? enhancedMinAltitude_)
{
SetFieldValue(127, 0, enhancedMinAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedMaxAltitude field
/// Units: m
/// Returns nullable float representing the EnhancedMaxAltitude field
public float? GetEnhancedMaxAltitude()
{
return (float?)GetFieldValue(128, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedMaxAltitude field
/// Units: m
/// Nullable field value to be set
public void SetEnhancedMaxAltitude(float? enhancedMaxAltitude_)
{
SetFieldValue(128, 0, enhancedMaxAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLevMotorPower field
/// Units: watts
/// Comment: lev average motor power during session
/// Returns nullable ushort representing the AvgLevMotorPower field
public ushort? GetAvgLevMotorPower()
{
return (ushort?)GetFieldValue(129, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLevMotorPower field
/// Units: watts
/// Comment: lev average motor power during session
/// Nullable field value to be set
public void SetAvgLevMotorPower(ushort? avgLevMotorPower_)
{
SetFieldValue(129, 0, avgLevMotorPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxLevMotorPower field
/// Units: watts
/// Comment: lev maximum motor power during session
/// Returns nullable ushort representing the MaxLevMotorPower field
public ushort? GetMaxLevMotorPower()
{
return (ushort?)GetFieldValue(130, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxLevMotorPower field
/// Units: watts
/// Comment: lev maximum motor power during session
/// Nullable field value to be set
public void SetMaxLevMotorPower(ushort? maxLevMotorPower_)
{
SetFieldValue(130, 0, maxLevMotorPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LevBatteryConsumption field
/// Units: percent
/// Comment: lev battery consumption during session
/// Returns nullable float representing the LevBatteryConsumption field
public float? GetLevBatteryConsumption()
{
return (float?)GetFieldValue(131, 0, Fit.SubfieldIndexMainField);
}
///
/// Set LevBatteryConsumption field
/// Units: percent
/// Comment: lev battery consumption during session
/// Nullable field value to be set
public void SetLevBatteryConsumption(float? levBatteryConsumption_)
{
SetFieldValue(131, 0, levBatteryConsumption_, Fit.SubfieldIndexMainField);
}
#endregion // Methods
} // Class
} // namespace