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