12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660 |
- #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 Lap profile message.
- /// </summary>
- public class LapMesg : 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 LapMesg() : base(Profile.GetMesg(MesgNum.Lap))
- {
- }
- public LapMesg(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 TotalStrides subfield
- /// Units: strides</summary>
- /// <returns>Nullable uint representing the TotalStrides subfield</returns>
- public uint? GetTotalStrides()
- {
- return (uint?)GetFieldValue(10, 0, TotalCyclesSubfield.TotalStrides);
- }
- /// <summary>
- ///
- /// Set TotalStrides subfield
- /// Units: strides</summary>
- /// <param name="totalStrides">Subfield value to be set</param>
- public void SetTotalStrides(uint? totalStrides)
- {
- SetFieldValue(10, 0, totalStrides, TotalCyclesSubfield.TotalStrides);
- }
- ///<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 AvgRunningCadence subfield
- /// Units: strides/min</summary>
- /// <returns>Nullable byte representing the AvgRunningCadence subfield</returns>
- public byte? GetAvgRunningCadence()
- {
- return (byte?)GetFieldValue(17, 0, AvgCadenceSubfield.AvgRunningCadence);
- }
- /// <summary>
- ///
- /// Set AvgRunningCadence subfield
- /// Units: strides/min</summary>
- /// <param name="avgRunningCadence">Subfield value to be set</param>
- public void SetAvgRunningCadence(byte? avgRunningCadence)
- {
- SetFieldValue(17, 0, avgRunningCadence, AvgCadenceSubfield.AvgRunningCadence);
- }
- ///<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 MaxRunningCadence subfield
- /// Units: strides/min</summary>
- /// <returns>Nullable byte representing the MaxRunningCadence subfield</returns>
- public byte? GetMaxRunningCadence()
- {
- return (byte?)GetFieldValue(18, 0, MaxCadenceSubfield.MaxRunningCadence);
- }
- /// <summary>
- ///
- /// Set MaxRunningCadence subfield
- /// Units: strides/min</summary>
- /// <param name="maxRunningCadence">Subfield value to be set</param>
- public void SetMaxRunningCadence(byte? maxRunningCadence)
- {
- SetFieldValue(18, 0, maxRunningCadence, MaxCadenceSubfield.MaxRunningCadence);
- }
- ///<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 Intensity field</summary>
- /// <returns>Returns nullable Intensity enum representing the Intensity field</returns>
- public Intensity? GetIntensity()
- {
- object obj = GetFieldValue(23, 0, Fit.SubfieldIndexMainField);
- Intensity? value = obj == null ? (Intensity?)null : (Intensity)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set Intensity field</summary>
- /// <param name="intensity_">Nullable field value to be set</param>
- public void SetIntensity(Intensity? intensity_)
- {
- SetFieldValue(23, 0, intensity_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the LapTrigger field</summary>
- /// <returns>Returns nullable LapTrigger enum representing the LapTrigger field</returns>
- public LapTrigger? GetLapTrigger()
- {
- object obj = GetFieldValue(24, 0, Fit.SubfieldIndexMainField);
- LapTrigger? value = obj == null ? (LapTrigger?)null : (LapTrigger)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set LapTrigger field</summary>
- /// <param name="lapTrigger_">Nullable field value to be set</param>
- public void SetLapTrigger(LapTrigger? lapTrigger_)
- {
- SetFieldValue(24, 0, lapTrigger_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the Sport field</summary>
- /// <returns>Returns nullable Sport enum representing the Sport field</returns>
- public Sport? GetSport()
- {
- object obj = GetFieldValue(25, 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(25, 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(26, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set EventGroup field</summary>
- /// <param name="eventGroup_">Nullable field value to be set</param>
- public void SetEventGroup(byte? eventGroup_)
- {
- SetFieldValue(26, 0, eventGroup_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the NumLengths field
- /// Units: lengths
- /// Comment: # of lengths of swim pool</summary>
- /// <returns>Returns nullable ushort representing the NumLengths field</returns>
- public ushort? GetNumLengths()
- {
- return (ushort?)GetFieldValue(32, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set NumLengths field
- /// Units: lengths
- /// Comment: # of lengths of swim pool</summary>
- /// <param name="numLengths_">Nullable field value to be set</param>
- public void SetNumLengths(ushort? numLengths_)
- {
- SetFieldValue(32, 0, numLengths_, 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(33, 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(33, 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(34, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set LeftRightBalance field</summary>
- /// <param name="leftRightBalance_">Nullable field value to be set</param>
- public void SetLeftRightBalance(ushort? leftRightBalance_)
- {
- SetFieldValue(34, 0, leftRightBalance_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the FirstLengthIndex field</summary>
- /// <returns>Returns nullable ushort representing the FirstLengthIndex field</returns>
- public ushort? GetFirstLengthIndex()
- {
- return (ushort?)GetFieldValue(35, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set FirstLengthIndex field</summary>
- /// <param name="firstLengthIndex_">Nullable field value to be set</param>
- public void SetFirstLengthIndex(ushort? firstLengthIndex_)
- {
- SetFieldValue(35, 0, firstLengthIndex_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the AvgStrokeDistance field
- /// Units: m</summary>
- /// <returns>Returns nullable float representing the AvgStrokeDistance field</returns>
- public float? GetAvgStrokeDistance()
- {
- return (float?)GetFieldValue(37, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set AvgStrokeDistance field
- /// Units: m</summary>
- /// <param name="avgStrokeDistance_">Nullable field value to be set</param>
- public void SetAvgStrokeDistance(float? avgStrokeDistance_)
- {
- SetFieldValue(37, 0, avgStrokeDistance_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the SwimStroke field</summary>
- /// <returns>Returns nullable SwimStroke enum representing the SwimStroke field</returns>
- public SwimStroke? GetSwimStroke()
- {
- object obj = GetFieldValue(38, 0, Fit.SubfieldIndexMainField);
- SwimStroke? value = obj == null ? (SwimStroke?)null : (SwimStroke)obj;
- return value;
- }
-
-
- /// <summary>
- /// Set SwimStroke field</summary>
- /// <param name="swimStroke_">Nullable field value to be set</param>
- public void SetSwimStroke(SwimStroke? swimStroke_)
- {
- SetFieldValue(38, 0, swimStroke_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the SubSport field</summary>
- /// <returns>Returns nullable SubSport enum representing the SubSport field</returns>
- public SubSport? GetSubSport()
- {
- object obj = GetFieldValue(39, 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(39, 0, subSport_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the NumActiveLengths field
- /// Units: lengths
- /// Comment: # of active lengths of swim pool</summary>
- /// <returns>Returns nullable ushort representing the NumActiveLengths field</returns>
- public ushort? GetNumActiveLengths()
- {
- return (ushort?)GetFieldValue(40, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set NumActiveLengths field
- /// Units: lengths
- /// Comment: # of active lengths of swim pool</summary>
- /// <param name="numActiveLengths_">Nullable field value to be set</param>
- public void SetNumActiveLengths(ushort? numActiveLengths_)
- {
- SetFieldValue(40, 0, numActiveLengths_, 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(41, 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(41, 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(42, 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(42, 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(43, 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(43, 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(44, 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(44, 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(45, 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(45, 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(46, 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(46, 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(47, 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(47, 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(48, 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(48, 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(49, 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(49, 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(50, 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(50, 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(51, 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(51, 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(52, 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(52, 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(53, 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(53, 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(54, 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(54, 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(55, 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(55, 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(56, 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(56, 0, maxNegVerticalSpeed_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field TimeInHrZone</returns>
- public int GetNumTimeInHrZone()
- {
- return GetNumFieldValues(57, 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(57, 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(57, index, timeInHrZone_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field TimeInSpeedZone</returns>
- public int GetNumTimeInSpeedZone()
- {
- return GetNumFieldValues(58, 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(58, 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(58, index, timeInSpeedZone_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field TimeInCadenceZone</returns>
- public int GetNumTimeInCadenceZone()
- {
- return GetNumFieldValues(59, 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(59, 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(59, index, timeInCadenceZone_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field TimeInPowerZone</returns>
- public int GetNumTimeInPowerZone()
- {
- return GetNumFieldValues(60, 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(60, 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(60, 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(61, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set RepetitionNum field</summary>
- /// <param name="repetitionNum_">Nullable field value to be set</param>
- public void SetRepetitionNum(ushort? repetitionNum_)
- {
- SetFieldValue(61, 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(62, 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(62, 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(63, 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(63, 0, minHeartRate_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the WktStepIndex field</summary>
- /// <returns>Returns nullable ushort representing the WktStepIndex field</returns>
- public ushort? GetWktStepIndex()
- {
- return (ushort?)GetFieldValue(71, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set WktStepIndex field</summary>
- /// <param name="wktStepIndex_">Nullable field value to be set</param>
- public void SetWktStepIndex(ushort? wktStepIndex_)
- {
- SetFieldValue(71, 0, wktStepIndex_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the OpponentScore field</summary>
- /// <returns>Returns nullable ushort representing the OpponentScore field</returns>
- public ushort? GetOpponentScore()
- {
- return (ushort?)GetFieldValue(74, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set OpponentScore field</summary>
- /// <param name="opponentScore_">Nullable field value to be set</param>
- public void SetOpponentScore(ushort? opponentScore_)
- {
- SetFieldValue(74, 0, opponentScore_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field StrokeCount</returns>
- public int GetNumStrokeCount()
- {
- return GetNumFieldValues(75, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the StrokeCount field
- /// Units: counts
- /// Comment: stroke_type enum used as the index</summary>
- /// <param name="index">0 based index of StrokeCount element to retrieve</param>
- /// <returns>Returns nullable ushort representing the StrokeCount field</returns>
- public ushort? GetStrokeCount(int index)
- {
- return (ushort?)GetFieldValue(75, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set StrokeCount field
- /// Units: counts
- /// Comment: stroke_type enum used as the index</summary>
- /// <param name="index">0 based index of stroke_count</param>
- /// <param name="strokeCount_">Nullable field value to be set</param>
- public void SetStrokeCount(int index, ushort? strokeCount_)
- {
- SetFieldValue(75, index, strokeCount_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field ZoneCount</returns>
- public int GetNumZoneCount()
- {
- return GetNumFieldValues(76, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the ZoneCount field
- /// Units: counts
- /// Comment: zone number used as the index</summary>
- /// <param name="index">0 based index of ZoneCount element to retrieve</param>
- /// <returns>Returns nullable ushort representing the ZoneCount field</returns>
- public ushort? GetZoneCount(int index)
- {
- return (ushort?)GetFieldValue(76, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set ZoneCount field
- /// Units: counts
- /// Comment: zone number used as the index</summary>
- /// <param name="index">0 based index of zone_count</param>
- /// <param name="zoneCount_">Nullable field value to be set</param>
- public void SetZoneCount(int index, ushort? zoneCount_)
- {
- SetFieldValue(76, index, zoneCount_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the AvgVerticalOscillation field
- /// Units: mm</summary>
- /// <returns>Returns nullable float representing the AvgVerticalOscillation field</returns>
- public float? GetAvgVerticalOscillation()
- {
- return (float?)GetFieldValue(77, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set AvgVerticalOscillation field
- /// Units: mm</summary>
- /// <param name="avgVerticalOscillation_">Nullable field value to be set</param>
- public void SetAvgVerticalOscillation(float? avgVerticalOscillation_)
- {
- SetFieldValue(77, 0, avgVerticalOscillation_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the AvgStanceTimePercent field
- /// Units: percent</summary>
- /// <returns>Returns nullable float representing the AvgStanceTimePercent field</returns>
- public float? GetAvgStanceTimePercent()
- {
- return (float?)GetFieldValue(78, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set AvgStanceTimePercent field
- /// Units: percent</summary>
- /// <param name="avgStanceTimePercent_">Nullable field value to be set</param>
- public void SetAvgStanceTimePercent(float? avgStanceTimePercent_)
- {
- SetFieldValue(78, 0, avgStanceTimePercent_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the AvgStanceTime field
- /// Units: ms</summary>
- /// <returns>Returns nullable float representing the AvgStanceTime field</returns>
- public float? GetAvgStanceTime()
- {
- return (float?)GetFieldValue(79, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set AvgStanceTime field
- /// Units: ms</summary>
- /// <param name="avgStanceTime_">Nullable field value to be set</param>
- public void SetAvgStanceTime(float? avgStanceTime_)
- {
- SetFieldValue(79, 0, avgStanceTime_, 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(80, 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(80, 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(81, 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(81, 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(82, 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(82, 0, totalFractionalCycles_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the PlayerScore field</summary>
- /// <returns>Returns nullable ushort representing the PlayerScore field</returns>
- public ushort? GetPlayerScore()
- {
- return (ushort?)GetFieldValue(83, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set PlayerScore field</summary>
- /// <param name="playerScore_">Nullable field value to be set</param>
- public void SetPlayerScore(ushort? playerScore_)
- {
- SetFieldValue(83, 0, playerScore_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field AvgTotalHemoglobinConc</returns>
- public int GetNumAvgTotalHemoglobinConc()
- {
- return GetNumFieldValues(84, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the AvgTotalHemoglobinConc field
- /// Units: g/dL
- /// Comment: Avg saturated and unsaturated hemoglobin</summary>
- /// <param name="index">0 based index of AvgTotalHemoglobinConc element to retrieve</param>
- /// <returns>Returns nullable float representing the AvgTotalHemoglobinConc field</returns>
- public float? GetAvgTotalHemoglobinConc(int index)
- {
- return (float?)GetFieldValue(84, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set AvgTotalHemoglobinConc field
- /// Units: g/dL
- /// Comment: Avg saturated and unsaturated hemoglobin</summary>
- /// <param name="index">0 based index of avg_total_hemoglobin_conc</param>
- /// <param name="avgTotalHemoglobinConc_">Nullable field value to be set</param>
- public void SetAvgTotalHemoglobinConc(int index, float? avgTotalHemoglobinConc_)
- {
- SetFieldValue(84, index, avgTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field MinTotalHemoglobinConc</returns>
- public int GetNumMinTotalHemoglobinConc()
- {
- return GetNumFieldValues(85, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the MinTotalHemoglobinConc field
- /// Units: g/dL
- /// Comment: Min saturated and unsaturated hemoglobin</summary>
- /// <param name="index">0 based index of MinTotalHemoglobinConc element to retrieve</param>
- /// <returns>Returns nullable float representing the MinTotalHemoglobinConc field</returns>
- public float? GetMinTotalHemoglobinConc(int index)
- {
- return (float?)GetFieldValue(85, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set MinTotalHemoglobinConc field
- /// Units: g/dL
- /// Comment: Min saturated and unsaturated hemoglobin</summary>
- /// <param name="index">0 based index of min_total_hemoglobin_conc</param>
- /// <param name="minTotalHemoglobinConc_">Nullable field value to be set</param>
- public void SetMinTotalHemoglobinConc(int index, float? minTotalHemoglobinConc_)
- {
- SetFieldValue(85, index, minTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field MaxTotalHemoglobinConc</returns>
- public int GetNumMaxTotalHemoglobinConc()
- {
- return GetNumFieldValues(86, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the MaxTotalHemoglobinConc field
- /// Units: g/dL
- /// Comment: Max saturated and unsaturated hemoglobin</summary>
- /// <param name="index">0 based index of MaxTotalHemoglobinConc element to retrieve</param>
- /// <returns>Returns nullable float representing the MaxTotalHemoglobinConc field</returns>
- public float? GetMaxTotalHemoglobinConc(int index)
- {
- return (float?)GetFieldValue(86, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set MaxTotalHemoglobinConc field
- /// Units: g/dL
- /// Comment: Max saturated and unsaturated hemoglobin</summary>
- /// <param name="index">0 based index of max_total_hemoglobin_conc</param>
- /// <param name="maxTotalHemoglobinConc_">Nullable field value to be set</param>
- public void SetMaxTotalHemoglobinConc(int index, float? maxTotalHemoglobinConc_)
- {
- SetFieldValue(86, index, maxTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field AvgSaturatedHemoglobinPercent</returns>
- public int GetNumAvgSaturatedHemoglobinPercent()
- {
- return GetNumFieldValues(87, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the AvgSaturatedHemoglobinPercent field
- /// Units: %
- /// Comment: Avg percentage of hemoglobin saturated with oxygen</summary>
- /// <param name="index">0 based index of AvgSaturatedHemoglobinPercent element to retrieve</param>
- /// <returns>Returns nullable float representing the AvgSaturatedHemoglobinPercent field</returns>
- public float? GetAvgSaturatedHemoglobinPercent(int index)
- {
- return (float?)GetFieldValue(87, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set AvgSaturatedHemoglobinPercent field
- /// Units: %
- /// Comment: Avg percentage of hemoglobin saturated with oxygen</summary>
- /// <param name="index">0 based index of avg_saturated_hemoglobin_percent</param>
- /// <param name="avgSaturatedHemoglobinPercent_">Nullable field value to be set</param>
- public void SetAvgSaturatedHemoglobinPercent(int index, float? avgSaturatedHemoglobinPercent_)
- {
- SetFieldValue(87, index, avgSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field MinSaturatedHemoglobinPercent</returns>
- public int GetNumMinSaturatedHemoglobinPercent()
- {
- return GetNumFieldValues(88, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the MinSaturatedHemoglobinPercent field
- /// Units: %
- /// Comment: Min percentage of hemoglobin saturated with oxygen</summary>
- /// <param name="index">0 based index of MinSaturatedHemoglobinPercent element to retrieve</param>
- /// <returns>Returns nullable float representing the MinSaturatedHemoglobinPercent field</returns>
- public float? GetMinSaturatedHemoglobinPercent(int index)
- {
- return (float?)GetFieldValue(88, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set MinSaturatedHemoglobinPercent field
- /// Units: %
- /// Comment: Min percentage of hemoglobin saturated with oxygen</summary>
- /// <param name="index">0 based index of min_saturated_hemoglobin_percent</param>
- /// <param name="minSaturatedHemoglobinPercent_">Nullable field value to be set</param>
- public void SetMinSaturatedHemoglobinPercent(int index, float? minSaturatedHemoglobinPercent_)
- {
- SetFieldValue(88, index, minSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field MaxSaturatedHemoglobinPercent</returns>
- public int GetNumMaxSaturatedHemoglobinPercent()
- {
- return GetNumFieldValues(89, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the MaxSaturatedHemoglobinPercent field
- /// Units: %
- /// Comment: Max percentage of hemoglobin saturated with oxygen</summary>
- /// <param name="index">0 based index of MaxSaturatedHemoglobinPercent element to retrieve</param>
- /// <returns>Returns nullable float representing the MaxSaturatedHemoglobinPercent field</returns>
- public float? GetMaxSaturatedHemoglobinPercent(int index)
- {
- return (float?)GetFieldValue(89, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set MaxSaturatedHemoglobinPercent field
- /// Units: %
- /// Comment: Max percentage of hemoglobin saturated with oxygen</summary>
- /// <param name="index">0 based index of max_saturated_hemoglobin_percent</param>
- /// <param name="maxSaturatedHemoglobinPercent_">Nullable field value to be set</param>
- public void SetMaxSaturatedHemoglobinPercent(int index, float? maxSaturatedHemoglobinPercent_)
- {
- SetFieldValue(89, index, maxSaturatedHemoglobinPercent_, 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(91, 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(91, 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(92, 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(92, 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(93, 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(93, 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(94, 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(94, 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(95, 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(95, 0, avgCombinedPedalSmoothness_, 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(98, 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(98, 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(99, 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(99, 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(100, 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(100, 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(101, 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(101, 0, avgRightPco_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field AvgLeftPowerPhase</returns>
- public int GetNumAvgLeftPowerPhase()
- {
- return GetNumFieldValues(102, 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(102, 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(102, index, avgLeftPowerPhase_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field AvgLeftPowerPhasePeak</returns>
- public int GetNumAvgLeftPowerPhasePeak()
- {
- return GetNumFieldValues(103, 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(103, 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(103, index, avgLeftPowerPhasePeak_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field AvgRightPowerPhase</returns>
- public int GetNumAvgRightPowerPhase()
- {
- return GetNumFieldValues(104, 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(104, 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(104, index, avgRightPowerPhase_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field AvgRightPowerPhasePeak</returns>
- public int GetNumAvgRightPowerPhasePeak()
- {
- return GetNumFieldValues(105, 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(105, 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(105, index, avgRightPowerPhasePeak_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field AvgPowerPosition</returns>
- public int GetNumAvgPowerPosition()
- {
- return GetNumFieldValues(106, 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(106, 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(106, index, avgPowerPosition_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field MaxPowerPosition</returns>
- public int GetNumMaxPowerPosition()
- {
- return GetNumFieldValues(107, 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(107, 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(107, index, maxPowerPosition_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field AvgCadencePosition</returns>
- public int GetNumAvgCadencePosition()
- {
- return GetNumFieldValues(108, 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(108, 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(108, index, avgCadencePosition_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field MaxCadencePosition</returns>
- public int GetNumMaxCadencePosition()
- {
- return GetNumFieldValues(109, 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(109, 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(109, index, maxCadencePosition_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the EnhancedAvgSpeed field
- /// Units: m/s</summary>
- /// <returns>Returns nullable float representing the EnhancedAvgSpeed field</returns>
- public float? GetEnhancedAvgSpeed()
- {
- return (float?)GetFieldValue(110, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set EnhancedAvgSpeed field
- /// Units: m/s</summary>
- /// <param name="enhancedAvgSpeed_">Nullable field value to be set</param>
- public void SetEnhancedAvgSpeed(float? enhancedAvgSpeed_)
- {
- SetFieldValue(110, 0, enhancedAvgSpeed_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the EnhancedMaxSpeed field
- /// Units: m/s</summary>
- /// <returns>Returns nullable float representing the EnhancedMaxSpeed field</returns>
- public float? GetEnhancedMaxSpeed()
- {
- return (float?)GetFieldValue(111, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set EnhancedMaxSpeed field
- /// Units: m/s</summary>
- /// <param name="enhancedMaxSpeed_">Nullable field value to be set</param>
- public void SetEnhancedMaxSpeed(float? enhancedMaxSpeed_)
- {
- SetFieldValue(111, 0, enhancedMaxSpeed_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the EnhancedAvgAltitude field
- /// Units: m</summary>
- /// <returns>Returns nullable float representing the EnhancedAvgAltitude field</returns>
- public float? GetEnhancedAvgAltitude()
- {
- return (float?)GetFieldValue(112, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set EnhancedAvgAltitude field
- /// Units: m</summary>
- /// <param name="enhancedAvgAltitude_">Nullable field value to be set</param>
- public void SetEnhancedAvgAltitude(float? enhancedAvgAltitude_)
- {
- SetFieldValue(112, 0, enhancedAvgAltitude_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the EnhancedMinAltitude field
- /// Units: m</summary>
- /// <returns>Returns nullable float representing the EnhancedMinAltitude field</returns>
- public float? GetEnhancedMinAltitude()
- {
- return (float?)GetFieldValue(113, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set EnhancedMinAltitude field
- /// Units: m</summary>
- /// <param name="enhancedMinAltitude_">Nullable field value to be set</param>
- public void SetEnhancedMinAltitude(float? enhancedMinAltitude_)
- {
- SetFieldValue(113, 0, enhancedMinAltitude_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the EnhancedMaxAltitude field
- /// Units: m</summary>
- /// <returns>Returns nullable float representing the EnhancedMaxAltitude field</returns>
- public float? GetEnhancedMaxAltitude()
- {
- return (float?)GetFieldValue(114, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set EnhancedMaxAltitude field
- /// Units: m</summary>
- /// <param name="enhancedMaxAltitude_">Nullable field value to be set</param>
- public void SetEnhancedMaxAltitude(float? enhancedMaxAltitude_)
- {
- SetFieldValue(114, 0, enhancedMaxAltitude_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the AvgLevMotorPower field
- /// Units: watts
- /// Comment: lev average motor power during lap</summary>
- /// <returns>Returns nullable ushort representing the AvgLevMotorPower field</returns>
- public ushort? GetAvgLevMotorPower()
- {
- return (ushort?)GetFieldValue(115, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set AvgLevMotorPower field
- /// Units: watts
- /// Comment: lev average motor power during lap</summary>
- /// <param name="avgLevMotorPower_">Nullable field value to be set</param>
- public void SetAvgLevMotorPower(ushort? avgLevMotorPower_)
- {
- SetFieldValue(115, 0, avgLevMotorPower_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the MaxLevMotorPower field
- /// Units: watts
- /// Comment: lev maximum motor power during lap</summary>
- /// <returns>Returns nullable ushort representing the MaxLevMotorPower field</returns>
- public ushort? GetMaxLevMotorPower()
- {
- return (ushort?)GetFieldValue(116, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set MaxLevMotorPower field
- /// Units: watts
- /// Comment: lev maximum motor power during lap</summary>
- /// <param name="maxLevMotorPower_">Nullable field value to be set</param>
- public void SetMaxLevMotorPower(ushort? maxLevMotorPower_)
- {
- SetFieldValue(116, 0, maxLevMotorPower_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the LevBatteryConsumption field
- /// Units: percent
- /// Comment: lev battery consumption during lap</summary>
- /// <returns>Returns nullable float representing the LevBatteryConsumption field</returns>
- public float? GetLevBatteryConsumption()
- {
- return (float?)GetFieldValue(117, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set LevBatteryConsumption field
- /// Units: percent
- /// Comment: lev battery consumption during lap</summary>
- /// <param name="levBatteryConsumption_">Nullable field value to be set</param>
- public void SetLevBatteryConsumption(float? levBatteryConsumption_)
- {
- SetFieldValue(117, 0, levBatteryConsumption_, Fit.SubfieldIndexMainField);
- }
-
- #endregion // Methods
- } // Class
- } // namespace
|