SessionMesg.cs 98 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944
  1. #region Copyright
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // The following FIT Protocol software provided may be used with FIT protocol
  4. // devices only and remains the copyrighted property of Dynastream Innovations Inc.
  5. // The software is being provided on an "as-is" basis and as an accommodation,
  6. // and therefore all warranties, representations, or guarantees of any kind
  7. // (whether express, implied or statutory) including, without limitation,
  8. // warranties of merchantability, non-infringement, or fitness for a particular
  9. // purpose, are specifically disclaimed.
  10. //
  11. // Copyright 2016 Dynastream Innovations Inc.
  12. ////////////////////////////////////////////////////////////////////////////////
  13. // ****WARNING**** This file is auto-generated! Do NOT edit this file.
  14. // Profile Version = 16.60Release
  15. // Tag = production-akw-16.60.00-0-g5d3d436
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #endregion
  18. using System;
  19. using System.Collections.Generic;
  20. using System.Diagnostics;
  21. using System.Text;
  22. using System.IO;
  23. namespace Dynastream.Fit
  24. {
  25. /// <summary>
  26. /// Implements the Session profile message.
  27. /// </summary>
  28. public class SessionMesg : Mesg
  29. {
  30. #region Fields
  31. static class TotalCyclesSubfield
  32. {
  33. public static ushort TotalStrides = 0;
  34. public static ushort Subfields = 1;
  35. public static ushort Active = Fit.SubfieldIndexActiveSubfield;
  36. public static ushort MainField = Fit.SubfieldIndexMainField;
  37. }
  38. static class AvgCadenceSubfield
  39. {
  40. public static ushort AvgRunningCadence = 0;
  41. public static ushort Subfields = 1;
  42. public static ushort Active = Fit.SubfieldIndexActiveSubfield;
  43. public static ushort MainField = Fit.SubfieldIndexMainField;
  44. }
  45. static class MaxCadenceSubfield
  46. {
  47. public static ushort MaxRunningCadence = 0;
  48. public static ushort Subfields = 1;
  49. public static ushort Active = Fit.SubfieldIndexActiveSubfield;
  50. public static ushort MainField = Fit.SubfieldIndexMainField;
  51. }
  52. #endregion
  53. #region Constructors
  54. public SessionMesg() : base(Profile.GetMesg(MesgNum.Session))
  55. {
  56. }
  57. public SessionMesg(Mesg mesg) : base(mesg)
  58. {
  59. }
  60. #endregion // Constructors
  61. #region Methods
  62. ///<summary>
  63. /// Retrieves the MessageIndex field
  64. /// Comment: Selected bit is set for the current session.</summary>
  65. /// <returns>Returns nullable ushort representing the MessageIndex field</returns>
  66. public ushort? GetMessageIndex()
  67. {
  68. return (ushort?)GetFieldValue(254, 0, Fit.SubfieldIndexMainField);
  69. }
  70. /// <summary>
  71. /// Set MessageIndex field
  72. /// Comment: Selected bit is set for the current session.</summary>
  73. /// <param name="messageIndex_">Nullable field value to be set</param>
  74. public void SetMessageIndex(ushort? messageIndex_)
  75. {
  76. SetFieldValue(254, 0, messageIndex_, Fit.SubfieldIndexMainField);
  77. }
  78. ///<summary>
  79. /// Retrieves the Timestamp field
  80. /// Units: s
  81. /// Comment: Sesson end time.</summary>
  82. /// <returns>Returns DateTime representing the Timestamp field</returns>
  83. public DateTime GetTimestamp()
  84. {
  85. return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField));
  86. }
  87. /// <summary>
  88. /// Set Timestamp field
  89. /// Units: s
  90. /// Comment: Sesson end time.</summary>
  91. /// <param name="timestamp_">Nullable field value to be set</param>
  92. public void SetTimestamp(DateTime timestamp_)
  93. {
  94. SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
  95. }
  96. ///<summary>
  97. /// Retrieves the Event field
  98. /// Comment: session</summary>
  99. /// <returns>Returns nullable Event enum representing the Event field</returns>
  100. public Event? GetEvent()
  101. {
  102. object obj = GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
  103. Event? value = obj == null ? (Event?)null : (Event)obj;
  104. return value;
  105. }
  106. /// <summary>
  107. /// Set Event field
  108. /// Comment: session</summary>
  109. /// <param name="event_">Nullable field value to be set</param>
  110. public void SetEvent(Event? event_)
  111. {
  112. SetFieldValue(0, 0, event_, Fit.SubfieldIndexMainField);
  113. }
  114. ///<summary>
  115. /// Retrieves the EventType field
  116. /// Comment: stop</summary>
  117. /// <returns>Returns nullable EventType enum representing the EventType field</returns>
  118. public EventType? GetEventType()
  119. {
  120. object obj = GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
  121. EventType? value = obj == null ? (EventType?)null : (EventType)obj;
  122. return value;
  123. }
  124. /// <summary>
  125. /// Set EventType field
  126. /// Comment: stop</summary>
  127. /// <param name="eventType_">Nullable field value to be set</param>
  128. public void SetEventType(EventType? eventType_)
  129. {
  130. SetFieldValue(1, 0, eventType_, Fit.SubfieldIndexMainField);
  131. }
  132. ///<summary>
  133. /// Retrieves the StartTime field</summary>
  134. /// <returns>Returns DateTime representing the StartTime field</returns>
  135. public DateTime GetStartTime()
  136. {
  137. return TimestampToDateTime((uint?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField));
  138. }
  139. /// <summary>
  140. /// Set StartTime field</summary>
  141. /// <param name="startTime_">Nullable field value to be set</param>
  142. public void SetStartTime(DateTime startTime_)
  143. {
  144. SetFieldValue(2, 0, startTime_.GetTimeStamp(), Fit.SubfieldIndexMainField);
  145. }
  146. ///<summary>
  147. /// Retrieves the StartPositionLat field
  148. /// Units: semicircles</summary>
  149. /// <returns>Returns nullable int representing the StartPositionLat field</returns>
  150. public int? GetStartPositionLat()
  151. {
  152. return (int?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
  153. }
  154. /// <summary>
  155. /// Set StartPositionLat field
  156. /// Units: semicircles</summary>
  157. /// <param name="startPositionLat_">Nullable field value to be set</param>
  158. public void SetStartPositionLat(int? startPositionLat_)
  159. {
  160. SetFieldValue(3, 0, startPositionLat_, Fit.SubfieldIndexMainField);
  161. }
  162. ///<summary>
  163. /// Retrieves the StartPositionLong field
  164. /// Units: semicircles</summary>
  165. /// <returns>Returns nullable int representing the StartPositionLong field</returns>
  166. public int? GetStartPositionLong()
  167. {
  168. return (int?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
  169. }
  170. /// <summary>
  171. /// Set StartPositionLong field
  172. /// Units: semicircles</summary>
  173. /// <param name="startPositionLong_">Nullable field value to be set</param>
  174. public void SetStartPositionLong(int? startPositionLong_)
  175. {
  176. SetFieldValue(4, 0, startPositionLong_, Fit.SubfieldIndexMainField);
  177. }
  178. ///<summary>
  179. /// Retrieves the Sport field</summary>
  180. /// <returns>Returns nullable Sport enum representing the Sport field</returns>
  181. public Sport? GetSport()
  182. {
  183. object obj = GetFieldValue(5, 0, Fit.SubfieldIndexMainField);
  184. Sport? value = obj == null ? (Sport?)null : (Sport)obj;
  185. return value;
  186. }
  187. /// <summary>
  188. /// Set Sport field</summary>
  189. /// <param name="sport_">Nullable field value to be set</param>
  190. public void SetSport(Sport? sport_)
  191. {
  192. SetFieldValue(5, 0, sport_, Fit.SubfieldIndexMainField);
  193. }
  194. ///<summary>
  195. /// Retrieves the SubSport field</summary>
  196. /// <returns>Returns nullable SubSport enum representing the SubSport field</returns>
  197. public SubSport? GetSubSport()
  198. {
  199. object obj = GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
  200. SubSport? value = obj == null ? (SubSport?)null : (SubSport)obj;
  201. return value;
  202. }
  203. /// <summary>
  204. /// Set SubSport field</summary>
  205. /// <param name="subSport_">Nullable field value to be set</param>
  206. public void SetSubSport(SubSport? subSport_)
  207. {
  208. SetFieldValue(6, 0, subSport_, Fit.SubfieldIndexMainField);
  209. }
  210. ///<summary>
  211. /// Retrieves the TotalElapsedTime field
  212. /// Units: s
  213. /// Comment: Time (includes pauses)</summary>
  214. /// <returns>Returns nullable float representing the TotalElapsedTime field</returns>
  215. public float? GetTotalElapsedTime()
  216. {
  217. return (float?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
  218. }
  219. /// <summary>
  220. /// Set TotalElapsedTime field
  221. /// Units: s
  222. /// Comment: Time (includes pauses)</summary>
  223. /// <param name="totalElapsedTime_">Nullable field value to be set</param>
  224. public void SetTotalElapsedTime(float? totalElapsedTime_)
  225. {
  226. SetFieldValue(7, 0, totalElapsedTime_, Fit.SubfieldIndexMainField);
  227. }
  228. ///<summary>
  229. /// Retrieves the TotalTimerTime field
  230. /// Units: s
  231. /// Comment: Timer Time (excludes pauses)</summary>
  232. /// <returns>Returns nullable float representing the TotalTimerTime field</returns>
  233. public float? GetTotalTimerTime()
  234. {
  235. return (float?)GetFieldValue(8, 0, Fit.SubfieldIndexMainField);
  236. }
  237. /// <summary>
  238. /// Set TotalTimerTime field
  239. /// Units: s
  240. /// Comment: Timer Time (excludes pauses)</summary>
  241. /// <param name="totalTimerTime_">Nullable field value to be set</param>
  242. public void SetTotalTimerTime(float? totalTimerTime_)
  243. {
  244. SetFieldValue(8, 0, totalTimerTime_, Fit.SubfieldIndexMainField);
  245. }
  246. ///<summary>
  247. /// Retrieves the TotalDistance field
  248. /// Units: m</summary>
  249. /// <returns>Returns nullable float representing the TotalDistance field</returns>
  250. public float? GetTotalDistance()
  251. {
  252. return (float?)GetFieldValue(9, 0, Fit.SubfieldIndexMainField);
  253. }
  254. /// <summary>
  255. /// Set TotalDistance field
  256. /// Units: m</summary>
  257. /// <param name="totalDistance_">Nullable field value to be set</param>
  258. public void SetTotalDistance(float? totalDistance_)
  259. {
  260. SetFieldValue(9, 0, totalDistance_, Fit.SubfieldIndexMainField);
  261. }
  262. ///<summary>
  263. /// Retrieves the TotalCycles field
  264. /// Units: cycles</summary>
  265. /// <returns>Returns nullable uint representing the TotalCycles field</returns>
  266. public uint? GetTotalCycles()
  267. {
  268. return (uint?)GetFieldValue(10, 0, Fit.SubfieldIndexMainField);
  269. }
  270. /// <summary>
  271. /// Set TotalCycles field
  272. /// Units: cycles</summary>
  273. /// <param name="totalCycles_">Nullable field value to be set</param>
  274. public void SetTotalCycles(uint? totalCycles_)
  275. {
  276. SetFieldValue(10, 0, totalCycles_, Fit.SubfieldIndexMainField);
  277. }
  278. /// <summary>
  279. /// Retrieves the TotalStrides subfield
  280. /// Units: strides</summary>
  281. /// <returns>Nullable uint representing the TotalStrides subfield</returns>
  282. public uint? GetTotalStrides()
  283. {
  284. return (uint?)GetFieldValue(10, 0, TotalCyclesSubfield.TotalStrides);
  285. }
  286. /// <summary>
  287. ///
  288. /// Set TotalStrides subfield
  289. /// Units: strides</summary>
  290. /// <param name="totalStrides">Subfield value to be set</param>
  291. public void SetTotalStrides(uint? totalStrides)
  292. {
  293. SetFieldValue(10, 0, totalStrides, TotalCyclesSubfield.TotalStrides);
  294. }
  295. ///<summary>
  296. /// Retrieves the TotalCalories field
  297. /// Units: kcal</summary>
  298. /// <returns>Returns nullable ushort representing the TotalCalories field</returns>
  299. public ushort? GetTotalCalories()
  300. {
  301. return (ushort?)GetFieldValue(11, 0, Fit.SubfieldIndexMainField);
  302. }
  303. /// <summary>
  304. /// Set TotalCalories field
  305. /// Units: kcal</summary>
  306. /// <param name="totalCalories_">Nullable field value to be set</param>
  307. public void SetTotalCalories(ushort? totalCalories_)
  308. {
  309. SetFieldValue(11, 0, totalCalories_, Fit.SubfieldIndexMainField);
  310. }
  311. ///<summary>
  312. /// Retrieves the TotalFatCalories field
  313. /// Units: kcal</summary>
  314. /// <returns>Returns nullable ushort representing the TotalFatCalories field</returns>
  315. public ushort? GetTotalFatCalories()
  316. {
  317. return (ushort?)GetFieldValue(13, 0, Fit.SubfieldIndexMainField);
  318. }
  319. /// <summary>
  320. /// Set TotalFatCalories field
  321. /// Units: kcal</summary>
  322. /// <param name="totalFatCalories_">Nullable field value to be set</param>
  323. public void SetTotalFatCalories(ushort? totalFatCalories_)
  324. {
  325. SetFieldValue(13, 0, totalFatCalories_, Fit.SubfieldIndexMainField);
  326. }
  327. ///<summary>
  328. /// Retrieves the AvgSpeed field
  329. /// Units: m/s
  330. /// Comment: total_distance / total_timer_time</summary>
  331. /// <returns>Returns nullable float representing the AvgSpeed field</returns>
  332. public float? GetAvgSpeed()
  333. {
  334. return (float?)GetFieldValue(14, 0, Fit.SubfieldIndexMainField);
  335. }
  336. /// <summary>
  337. /// Set AvgSpeed field
  338. /// Units: m/s
  339. /// Comment: total_distance / total_timer_time</summary>
  340. /// <param name="avgSpeed_">Nullable field value to be set</param>
  341. public void SetAvgSpeed(float? avgSpeed_)
  342. {
  343. SetFieldValue(14, 0, avgSpeed_, Fit.SubfieldIndexMainField);
  344. }
  345. ///<summary>
  346. /// Retrieves the MaxSpeed field
  347. /// Units: m/s</summary>
  348. /// <returns>Returns nullable float representing the MaxSpeed field</returns>
  349. public float? GetMaxSpeed()
  350. {
  351. return (float?)GetFieldValue(15, 0, Fit.SubfieldIndexMainField);
  352. }
  353. /// <summary>
  354. /// Set MaxSpeed field
  355. /// Units: m/s</summary>
  356. /// <param name="maxSpeed_">Nullable field value to be set</param>
  357. public void SetMaxSpeed(float? maxSpeed_)
  358. {
  359. SetFieldValue(15, 0, maxSpeed_, Fit.SubfieldIndexMainField);
  360. }
  361. ///<summary>
  362. /// Retrieves the AvgHeartRate field
  363. /// Units: bpm
  364. /// Comment: average heart rate (excludes pause time)</summary>
  365. /// <returns>Returns nullable byte representing the AvgHeartRate field</returns>
  366. public byte? GetAvgHeartRate()
  367. {
  368. return (byte?)GetFieldValue(16, 0, Fit.SubfieldIndexMainField);
  369. }
  370. /// <summary>
  371. /// Set AvgHeartRate field
  372. /// Units: bpm
  373. /// Comment: average heart rate (excludes pause time)</summary>
  374. /// <param name="avgHeartRate_">Nullable field value to be set</param>
  375. public void SetAvgHeartRate(byte? avgHeartRate_)
  376. {
  377. SetFieldValue(16, 0, avgHeartRate_, Fit.SubfieldIndexMainField);
  378. }
  379. ///<summary>
  380. /// Retrieves the MaxHeartRate field
  381. /// Units: bpm</summary>
  382. /// <returns>Returns nullable byte representing the MaxHeartRate field</returns>
  383. public byte? GetMaxHeartRate()
  384. {
  385. return (byte?)GetFieldValue(17, 0, Fit.SubfieldIndexMainField);
  386. }
  387. /// <summary>
  388. /// Set MaxHeartRate field
  389. /// Units: bpm</summary>
  390. /// <param name="maxHeartRate_">Nullable field value to be set</param>
  391. public void SetMaxHeartRate(byte? maxHeartRate_)
  392. {
  393. SetFieldValue(17, 0, maxHeartRate_, Fit.SubfieldIndexMainField);
  394. }
  395. ///<summary>
  396. /// Retrieves the AvgCadence field
  397. /// Units: rpm
  398. /// Comment: total_cycles / total_timer_time if non_zero_avg_cadence otherwise total_cycles / total_elapsed_time</summary>
  399. /// <returns>Returns nullable byte representing the AvgCadence field</returns>
  400. public byte? GetAvgCadence()
  401. {
  402. return (byte?)GetFieldValue(18, 0, Fit.SubfieldIndexMainField);
  403. }
  404. /// <summary>
  405. /// Set AvgCadence field
  406. /// Units: rpm
  407. /// Comment: total_cycles / total_timer_time if non_zero_avg_cadence otherwise total_cycles / total_elapsed_time</summary>
  408. /// <param name="avgCadence_">Nullable field value to be set</param>
  409. public void SetAvgCadence(byte? avgCadence_)
  410. {
  411. SetFieldValue(18, 0, avgCadence_, Fit.SubfieldIndexMainField);
  412. }
  413. /// <summary>
  414. /// Retrieves the AvgRunningCadence subfield
  415. /// Units: strides/min</summary>
  416. /// <returns>Nullable byte representing the AvgRunningCadence subfield</returns>
  417. public byte? GetAvgRunningCadence()
  418. {
  419. return (byte?)GetFieldValue(18, 0, AvgCadenceSubfield.AvgRunningCadence);
  420. }
  421. /// <summary>
  422. ///
  423. /// Set AvgRunningCadence subfield
  424. /// Units: strides/min</summary>
  425. /// <param name="avgRunningCadence">Subfield value to be set</param>
  426. public void SetAvgRunningCadence(byte? avgRunningCadence)
  427. {
  428. SetFieldValue(18, 0, avgRunningCadence, AvgCadenceSubfield.AvgRunningCadence);
  429. }
  430. ///<summary>
  431. /// Retrieves the MaxCadence field
  432. /// Units: rpm</summary>
  433. /// <returns>Returns nullable byte representing the MaxCadence field</returns>
  434. public byte? GetMaxCadence()
  435. {
  436. return (byte?)GetFieldValue(19, 0, Fit.SubfieldIndexMainField);
  437. }
  438. /// <summary>
  439. /// Set MaxCadence field
  440. /// Units: rpm</summary>
  441. /// <param name="maxCadence_">Nullable field value to be set</param>
  442. public void SetMaxCadence(byte? maxCadence_)
  443. {
  444. SetFieldValue(19, 0, maxCadence_, Fit.SubfieldIndexMainField);
  445. }
  446. /// <summary>
  447. /// Retrieves the MaxRunningCadence subfield
  448. /// Units: strides/min</summary>
  449. /// <returns>Nullable byte representing the MaxRunningCadence subfield</returns>
  450. public byte? GetMaxRunningCadence()
  451. {
  452. return (byte?)GetFieldValue(19, 0, MaxCadenceSubfield.MaxRunningCadence);
  453. }
  454. /// <summary>
  455. ///
  456. /// Set MaxRunningCadence subfield
  457. /// Units: strides/min</summary>
  458. /// <param name="maxRunningCadence">Subfield value to be set</param>
  459. public void SetMaxRunningCadence(byte? maxRunningCadence)
  460. {
  461. SetFieldValue(19, 0, maxRunningCadence, MaxCadenceSubfield.MaxRunningCadence);
  462. }
  463. ///<summary>
  464. /// Retrieves the AvgPower field
  465. /// Units: watts
  466. /// Comment: total_power / total_timer_time if non_zero_avg_power otherwise total_power / total_elapsed_time</summary>
  467. /// <returns>Returns nullable ushort representing the AvgPower field</returns>
  468. public ushort? GetAvgPower()
  469. {
  470. return (ushort?)GetFieldValue(20, 0, Fit.SubfieldIndexMainField);
  471. }
  472. /// <summary>
  473. /// Set AvgPower field
  474. /// Units: watts
  475. /// Comment: total_power / total_timer_time if non_zero_avg_power otherwise total_power / total_elapsed_time</summary>
  476. /// <param name="avgPower_">Nullable field value to be set</param>
  477. public void SetAvgPower(ushort? avgPower_)
  478. {
  479. SetFieldValue(20, 0, avgPower_, Fit.SubfieldIndexMainField);
  480. }
  481. ///<summary>
  482. /// Retrieves the MaxPower field
  483. /// Units: watts</summary>
  484. /// <returns>Returns nullable ushort representing the MaxPower field</returns>
  485. public ushort? GetMaxPower()
  486. {
  487. return (ushort?)GetFieldValue(21, 0, Fit.SubfieldIndexMainField);
  488. }
  489. /// <summary>
  490. /// Set MaxPower field
  491. /// Units: watts</summary>
  492. /// <param name="maxPower_">Nullable field value to be set</param>
  493. public void SetMaxPower(ushort? maxPower_)
  494. {
  495. SetFieldValue(21, 0, maxPower_, Fit.SubfieldIndexMainField);
  496. }
  497. ///<summary>
  498. /// Retrieves the TotalAscent field
  499. /// Units: m</summary>
  500. /// <returns>Returns nullable ushort representing the TotalAscent field</returns>
  501. public ushort? GetTotalAscent()
  502. {
  503. return (ushort?)GetFieldValue(22, 0, Fit.SubfieldIndexMainField);
  504. }
  505. /// <summary>
  506. /// Set TotalAscent field
  507. /// Units: m</summary>
  508. /// <param name="totalAscent_">Nullable field value to be set</param>
  509. public void SetTotalAscent(ushort? totalAscent_)
  510. {
  511. SetFieldValue(22, 0, totalAscent_, Fit.SubfieldIndexMainField);
  512. }
  513. ///<summary>
  514. /// Retrieves the TotalDescent field
  515. /// Units: m</summary>
  516. /// <returns>Returns nullable ushort representing the TotalDescent field</returns>
  517. public ushort? GetTotalDescent()
  518. {
  519. return (ushort?)GetFieldValue(23, 0, Fit.SubfieldIndexMainField);
  520. }
  521. /// <summary>
  522. /// Set TotalDescent field
  523. /// Units: m</summary>
  524. /// <param name="totalDescent_">Nullable field value to be set</param>
  525. public void SetTotalDescent(ushort? totalDescent_)
  526. {
  527. SetFieldValue(23, 0, totalDescent_, Fit.SubfieldIndexMainField);
  528. }
  529. ///<summary>
  530. /// Retrieves the TotalTrainingEffect field</summary>
  531. /// <returns>Returns nullable float representing the TotalTrainingEffect field</returns>
  532. public float? GetTotalTrainingEffect()
  533. {
  534. return (float?)GetFieldValue(24, 0, Fit.SubfieldIndexMainField);
  535. }
  536. /// <summary>
  537. /// Set TotalTrainingEffect field</summary>
  538. /// <param name="totalTrainingEffect_">Nullable field value to be set</param>
  539. public void SetTotalTrainingEffect(float? totalTrainingEffect_)
  540. {
  541. SetFieldValue(24, 0, totalTrainingEffect_, Fit.SubfieldIndexMainField);
  542. }
  543. ///<summary>
  544. /// Retrieves the FirstLapIndex field</summary>
  545. /// <returns>Returns nullable ushort representing the FirstLapIndex field</returns>
  546. public ushort? GetFirstLapIndex()
  547. {
  548. return (ushort?)GetFieldValue(25, 0, Fit.SubfieldIndexMainField);
  549. }
  550. /// <summary>
  551. /// Set FirstLapIndex field</summary>
  552. /// <param name="firstLapIndex_">Nullable field value to be set</param>
  553. public void SetFirstLapIndex(ushort? firstLapIndex_)
  554. {
  555. SetFieldValue(25, 0, firstLapIndex_, Fit.SubfieldIndexMainField);
  556. }
  557. ///<summary>
  558. /// Retrieves the NumLaps field</summary>
  559. /// <returns>Returns nullable ushort representing the NumLaps field</returns>
  560. public ushort? GetNumLaps()
  561. {
  562. return (ushort?)GetFieldValue(26, 0, Fit.SubfieldIndexMainField);
  563. }
  564. /// <summary>
  565. /// Set NumLaps field</summary>
  566. /// <param name="numLaps_">Nullable field value to be set</param>
  567. public void SetNumLaps(ushort? numLaps_)
  568. {
  569. SetFieldValue(26, 0, numLaps_, Fit.SubfieldIndexMainField);
  570. }
  571. ///<summary>
  572. /// Retrieves the EventGroup field</summary>
  573. /// <returns>Returns nullable byte representing the EventGroup field</returns>
  574. public byte? GetEventGroup()
  575. {
  576. return (byte?)GetFieldValue(27, 0, Fit.SubfieldIndexMainField);
  577. }
  578. /// <summary>
  579. /// Set EventGroup field</summary>
  580. /// <param name="eventGroup_">Nullable field value to be set</param>
  581. public void SetEventGroup(byte? eventGroup_)
  582. {
  583. SetFieldValue(27, 0, eventGroup_, Fit.SubfieldIndexMainField);
  584. }
  585. ///<summary>
  586. /// Retrieves the Trigger field</summary>
  587. /// <returns>Returns nullable SessionTrigger enum representing the Trigger field</returns>
  588. public SessionTrigger? GetTrigger()
  589. {
  590. object obj = GetFieldValue(28, 0, Fit.SubfieldIndexMainField);
  591. SessionTrigger? value = obj == null ? (SessionTrigger?)null : (SessionTrigger)obj;
  592. return value;
  593. }
  594. /// <summary>
  595. /// Set Trigger field</summary>
  596. /// <param name="trigger_">Nullable field value to be set</param>
  597. public void SetTrigger(SessionTrigger? trigger_)
  598. {
  599. SetFieldValue(28, 0, trigger_, Fit.SubfieldIndexMainField);
  600. }
  601. ///<summary>
  602. /// Retrieves the NecLat field
  603. /// Units: semicircles</summary>
  604. /// <returns>Returns nullable int representing the NecLat field</returns>
  605. public int? GetNecLat()
  606. {
  607. return (int?)GetFieldValue(29, 0, Fit.SubfieldIndexMainField);
  608. }
  609. /// <summary>
  610. /// Set NecLat field
  611. /// Units: semicircles</summary>
  612. /// <param name="necLat_">Nullable field value to be set</param>
  613. public void SetNecLat(int? necLat_)
  614. {
  615. SetFieldValue(29, 0, necLat_, Fit.SubfieldIndexMainField);
  616. }
  617. ///<summary>
  618. /// Retrieves the NecLong field
  619. /// Units: semicircles</summary>
  620. /// <returns>Returns nullable int representing the NecLong field</returns>
  621. public int? GetNecLong()
  622. {
  623. return (int?)GetFieldValue(30, 0, Fit.SubfieldIndexMainField);
  624. }
  625. /// <summary>
  626. /// Set NecLong field
  627. /// Units: semicircles</summary>
  628. /// <param name="necLong_">Nullable field value to be set</param>
  629. public void SetNecLong(int? necLong_)
  630. {
  631. SetFieldValue(30, 0, necLong_, Fit.SubfieldIndexMainField);
  632. }
  633. ///<summary>
  634. /// Retrieves the SwcLat field
  635. /// Units: semicircles</summary>
  636. /// <returns>Returns nullable int representing the SwcLat field</returns>
  637. public int? GetSwcLat()
  638. {
  639. return (int?)GetFieldValue(31, 0, Fit.SubfieldIndexMainField);
  640. }
  641. /// <summary>
  642. /// Set SwcLat field
  643. /// Units: semicircles</summary>
  644. /// <param name="swcLat_">Nullable field value to be set</param>
  645. public void SetSwcLat(int? swcLat_)
  646. {
  647. SetFieldValue(31, 0, swcLat_, Fit.SubfieldIndexMainField);
  648. }
  649. ///<summary>
  650. /// Retrieves the SwcLong field
  651. /// Units: semicircles</summary>
  652. /// <returns>Returns nullable int representing the SwcLong field</returns>
  653. public int? GetSwcLong()
  654. {
  655. return (int?)GetFieldValue(32, 0, Fit.SubfieldIndexMainField);
  656. }
  657. /// <summary>
  658. /// Set SwcLong field
  659. /// Units: semicircles</summary>
  660. /// <param name="swcLong_">Nullable field value to be set</param>
  661. public void SetSwcLong(int? swcLong_)
  662. {
  663. SetFieldValue(32, 0, swcLong_, Fit.SubfieldIndexMainField);
  664. }
  665. ///<summary>
  666. /// Retrieves the NormalizedPower field
  667. /// Units: watts</summary>
  668. /// <returns>Returns nullable ushort representing the NormalizedPower field</returns>
  669. public ushort? GetNormalizedPower()
  670. {
  671. return (ushort?)GetFieldValue(34, 0, Fit.SubfieldIndexMainField);
  672. }
  673. /// <summary>
  674. /// Set NormalizedPower field
  675. /// Units: watts</summary>
  676. /// <param name="normalizedPower_">Nullable field value to be set</param>
  677. public void SetNormalizedPower(ushort? normalizedPower_)
  678. {
  679. SetFieldValue(34, 0, normalizedPower_, Fit.SubfieldIndexMainField);
  680. }
  681. ///<summary>
  682. /// Retrieves the TrainingStressScore field
  683. /// Units: tss</summary>
  684. /// <returns>Returns nullable float representing the TrainingStressScore field</returns>
  685. public float? GetTrainingStressScore()
  686. {
  687. return (float?)GetFieldValue(35, 0, Fit.SubfieldIndexMainField);
  688. }
  689. /// <summary>
  690. /// Set TrainingStressScore field
  691. /// Units: tss</summary>
  692. /// <param name="trainingStressScore_">Nullable field value to be set</param>
  693. public void SetTrainingStressScore(float? trainingStressScore_)
  694. {
  695. SetFieldValue(35, 0, trainingStressScore_, Fit.SubfieldIndexMainField);
  696. }
  697. ///<summary>
  698. /// Retrieves the IntensityFactor field
  699. /// Units: if</summary>
  700. /// <returns>Returns nullable float representing the IntensityFactor field</returns>
  701. public float? GetIntensityFactor()
  702. {
  703. return (float?)GetFieldValue(36, 0, Fit.SubfieldIndexMainField);
  704. }
  705. /// <summary>
  706. /// Set IntensityFactor field
  707. /// Units: if</summary>
  708. /// <param name="intensityFactor_">Nullable field value to be set</param>
  709. public void SetIntensityFactor(float? intensityFactor_)
  710. {
  711. SetFieldValue(36, 0, intensityFactor_, Fit.SubfieldIndexMainField);
  712. }
  713. ///<summary>
  714. /// Retrieves the LeftRightBalance field</summary>
  715. /// <returns>Returns nullable ushort representing the LeftRightBalance field</returns>
  716. public ushort? GetLeftRightBalance()
  717. {
  718. return (ushort?)GetFieldValue(37, 0, Fit.SubfieldIndexMainField);
  719. }
  720. /// <summary>
  721. /// Set LeftRightBalance field</summary>
  722. /// <param name="leftRightBalance_">Nullable field value to be set</param>
  723. public void SetLeftRightBalance(ushort? leftRightBalance_)
  724. {
  725. SetFieldValue(37, 0, leftRightBalance_, Fit.SubfieldIndexMainField);
  726. }
  727. ///<summary>
  728. /// Retrieves the AvgStrokeCount field
  729. /// Units: strokes/lap</summary>
  730. /// <returns>Returns nullable float representing the AvgStrokeCount field</returns>
  731. public float? GetAvgStrokeCount()
  732. {
  733. return (float?)GetFieldValue(41, 0, Fit.SubfieldIndexMainField);
  734. }
  735. /// <summary>
  736. /// Set AvgStrokeCount field
  737. /// Units: strokes/lap</summary>
  738. /// <param name="avgStrokeCount_">Nullable field value to be set</param>
  739. public void SetAvgStrokeCount(float? avgStrokeCount_)
  740. {
  741. SetFieldValue(41, 0, avgStrokeCount_, Fit.SubfieldIndexMainField);
  742. }
  743. ///<summary>
  744. /// Retrieves the AvgStrokeDistance field
  745. /// Units: m</summary>
  746. /// <returns>Returns nullable float representing the AvgStrokeDistance field</returns>
  747. public float? GetAvgStrokeDistance()
  748. {
  749. return (float?)GetFieldValue(42, 0, Fit.SubfieldIndexMainField);
  750. }
  751. /// <summary>
  752. /// Set AvgStrokeDistance field
  753. /// Units: m</summary>
  754. /// <param name="avgStrokeDistance_">Nullable field value to be set</param>
  755. public void SetAvgStrokeDistance(float? avgStrokeDistance_)
  756. {
  757. SetFieldValue(42, 0, avgStrokeDistance_, Fit.SubfieldIndexMainField);
  758. }
  759. ///<summary>
  760. /// Retrieves the SwimStroke field
  761. /// Units: swim_stroke</summary>
  762. /// <returns>Returns nullable SwimStroke enum representing the SwimStroke field</returns>
  763. public SwimStroke? GetSwimStroke()
  764. {
  765. object obj = GetFieldValue(43, 0, Fit.SubfieldIndexMainField);
  766. SwimStroke? value = obj == null ? (SwimStroke?)null : (SwimStroke)obj;
  767. return value;
  768. }
  769. /// <summary>
  770. /// Set SwimStroke field
  771. /// Units: swim_stroke</summary>
  772. /// <param name="swimStroke_">Nullable field value to be set</param>
  773. public void SetSwimStroke(SwimStroke? swimStroke_)
  774. {
  775. SetFieldValue(43, 0, swimStroke_, Fit.SubfieldIndexMainField);
  776. }
  777. ///<summary>
  778. /// Retrieves the PoolLength field
  779. /// Units: m</summary>
  780. /// <returns>Returns nullable float representing the PoolLength field</returns>
  781. public float? GetPoolLength()
  782. {
  783. return (float?)GetFieldValue(44, 0, Fit.SubfieldIndexMainField);
  784. }
  785. /// <summary>
  786. /// Set PoolLength field
  787. /// Units: m</summary>
  788. /// <param name="poolLength_">Nullable field value to be set</param>
  789. public void SetPoolLength(float? poolLength_)
  790. {
  791. SetFieldValue(44, 0, poolLength_, Fit.SubfieldIndexMainField);
  792. }
  793. ///<summary>
  794. /// Retrieves the ThresholdPower field
  795. /// Units: watts</summary>
  796. /// <returns>Returns nullable ushort representing the ThresholdPower field</returns>
  797. public ushort? GetThresholdPower()
  798. {
  799. return (ushort?)GetFieldValue(45, 0, Fit.SubfieldIndexMainField);
  800. }
  801. /// <summary>
  802. /// Set ThresholdPower field
  803. /// Units: watts</summary>
  804. /// <param name="thresholdPower_">Nullable field value to be set</param>
  805. public void SetThresholdPower(ushort? thresholdPower_)
  806. {
  807. SetFieldValue(45, 0, thresholdPower_, Fit.SubfieldIndexMainField);
  808. }
  809. ///<summary>
  810. /// Retrieves the PoolLengthUnit field</summary>
  811. /// <returns>Returns nullable DisplayMeasure enum representing the PoolLengthUnit field</returns>
  812. public DisplayMeasure? GetPoolLengthUnit()
  813. {
  814. object obj = GetFieldValue(46, 0, Fit.SubfieldIndexMainField);
  815. DisplayMeasure? value = obj == null ? (DisplayMeasure?)null : (DisplayMeasure)obj;
  816. return value;
  817. }
  818. /// <summary>
  819. /// Set PoolLengthUnit field</summary>
  820. /// <param name="poolLengthUnit_">Nullable field value to be set</param>
  821. public void SetPoolLengthUnit(DisplayMeasure? poolLengthUnit_)
  822. {
  823. SetFieldValue(46, 0, poolLengthUnit_, Fit.SubfieldIndexMainField);
  824. }
  825. ///<summary>
  826. /// Retrieves the NumActiveLengths field
  827. /// Units: lengths
  828. /// Comment: # of active lengths of swim pool</summary>
  829. /// <returns>Returns nullable ushort representing the NumActiveLengths field</returns>
  830. public ushort? GetNumActiveLengths()
  831. {
  832. return (ushort?)GetFieldValue(47, 0, Fit.SubfieldIndexMainField);
  833. }
  834. /// <summary>
  835. /// Set NumActiveLengths field
  836. /// Units: lengths
  837. /// Comment: # of active lengths of swim pool</summary>
  838. /// <param name="numActiveLengths_">Nullable field value to be set</param>
  839. public void SetNumActiveLengths(ushort? numActiveLengths_)
  840. {
  841. SetFieldValue(47, 0, numActiveLengths_, Fit.SubfieldIndexMainField);
  842. }
  843. ///<summary>
  844. /// Retrieves the TotalWork field
  845. /// Units: J</summary>
  846. /// <returns>Returns nullable uint representing the TotalWork field</returns>
  847. public uint? GetTotalWork()
  848. {
  849. return (uint?)GetFieldValue(48, 0, Fit.SubfieldIndexMainField);
  850. }
  851. /// <summary>
  852. /// Set TotalWork field
  853. /// Units: J</summary>
  854. /// <param name="totalWork_">Nullable field value to be set</param>
  855. public void SetTotalWork(uint? totalWork_)
  856. {
  857. SetFieldValue(48, 0, totalWork_, Fit.SubfieldIndexMainField);
  858. }
  859. ///<summary>
  860. /// Retrieves the AvgAltitude field
  861. /// Units: m</summary>
  862. /// <returns>Returns nullable float representing the AvgAltitude field</returns>
  863. public float? GetAvgAltitude()
  864. {
  865. return (float?)GetFieldValue(49, 0, Fit.SubfieldIndexMainField);
  866. }
  867. /// <summary>
  868. /// Set AvgAltitude field
  869. /// Units: m</summary>
  870. /// <param name="avgAltitude_">Nullable field value to be set</param>
  871. public void SetAvgAltitude(float? avgAltitude_)
  872. {
  873. SetFieldValue(49, 0, avgAltitude_, Fit.SubfieldIndexMainField);
  874. }
  875. ///<summary>
  876. /// Retrieves the MaxAltitude field
  877. /// Units: m</summary>
  878. /// <returns>Returns nullable float representing the MaxAltitude field</returns>
  879. public float? GetMaxAltitude()
  880. {
  881. return (float?)GetFieldValue(50, 0, Fit.SubfieldIndexMainField);
  882. }
  883. /// <summary>
  884. /// Set MaxAltitude field
  885. /// Units: m</summary>
  886. /// <param name="maxAltitude_">Nullable field value to be set</param>
  887. public void SetMaxAltitude(float? maxAltitude_)
  888. {
  889. SetFieldValue(50, 0, maxAltitude_, Fit.SubfieldIndexMainField);
  890. }
  891. ///<summary>
  892. /// Retrieves the GpsAccuracy field
  893. /// Units: m</summary>
  894. /// <returns>Returns nullable byte representing the GpsAccuracy field</returns>
  895. public byte? GetGpsAccuracy()
  896. {
  897. return (byte?)GetFieldValue(51, 0, Fit.SubfieldIndexMainField);
  898. }
  899. /// <summary>
  900. /// Set GpsAccuracy field
  901. /// Units: m</summary>
  902. /// <param name="gpsAccuracy_">Nullable field value to be set</param>
  903. public void SetGpsAccuracy(byte? gpsAccuracy_)
  904. {
  905. SetFieldValue(51, 0, gpsAccuracy_, Fit.SubfieldIndexMainField);
  906. }
  907. ///<summary>
  908. /// Retrieves the AvgGrade field
  909. /// Units: %</summary>
  910. /// <returns>Returns nullable float representing the AvgGrade field</returns>
  911. public float? GetAvgGrade()
  912. {
  913. return (float?)GetFieldValue(52, 0, Fit.SubfieldIndexMainField);
  914. }
  915. /// <summary>
  916. /// Set AvgGrade field
  917. /// Units: %</summary>
  918. /// <param name="avgGrade_">Nullable field value to be set</param>
  919. public void SetAvgGrade(float? avgGrade_)
  920. {
  921. SetFieldValue(52, 0, avgGrade_, Fit.SubfieldIndexMainField);
  922. }
  923. ///<summary>
  924. /// Retrieves the AvgPosGrade field
  925. /// Units: %</summary>
  926. /// <returns>Returns nullable float representing the AvgPosGrade field</returns>
  927. public float? GetAvgPosGrade()
  928. {
  929. return (float?)GetFieldValue(53, 0, Fit.SubfieldIndexMainField);
  930. }
  931. /// <summary>
  932. /// Set AvgPosGrade field
  933. /// Units: %</summary>
  934. /// <param name="avgPosGrade_">Nullable field value to be set</param>
  935. public void SetAvgPosGrade(float? avgPosGrade_)
  936. {
  937. SetFieldValue(53, 0, avgPosGrade_, Fit.SubfieldIndexMainField);
  938. }
  939. ///<summary>
  940. /// Retrieves the AvgNegGrade field
  941. /// Units: %</summary>
  942. /// <returns>Returns nullable float representing the AvgNegGrade field</returns>
  943. public float? GetAvgNegGrade()
  944. {
  945. return (float?)GetFieldValue(54, 0, Fit.SubfieldIndexMainField);
  946. }
  947. /// <summary>
  948. /// Set AvgNegGrade field
  949. /// Units: %</summary>
  950. /// <param name="avgNegGrade_">Nullable field value to be set</param>
  951. public void SetAvgNegGrade(float? avgNegGrade_)
  952. {
  953. SetFieldValue(54, 0, avgNegGrade_, Fit.SubfieldIndexMainField);
  954. }
  955. ///<summary>
  956. /// Retrieves the MaxPosGrade field
  957. /// Units: %</summary>
  958. /// <returns>Returns nullable float representing the MaxPosGrade field</returns>
  959. public float? GetMaxPosGrade()
  960. {
  961. return (float?)GetFieldValue(55, 0, Fit.SubfieldIndexMainField);
  962. }
  963. /// <summary>
  964. /// Set MaxPosGrade field
  965. /// Units: %</summary>
  966. /// <param name="maxPosGrade_">Nullable field value to be set</param>
  967. public void SetMaxPosGrade(float? maxPosGrade_)
  968. {
  969. SetFieldValue(55, 0, maxPosGrade_, Fit.SubfieldIndexMainField);
  970. }
  971. ///<summary>
  972. /// Retrieves the MaxNegGrade field
  973. /// Units: %</summary>
  974. /// <returns>Returns nullable float representing the MaxNegGrade field</returns>
  975. public float? GetMaxNegGrade()
  976. {
  977. return (float?)GetFieldValue(56, 0, Fit.SubfieldIndexMainField);
  978. }
  979. /// <summary>
  980. /// Set MaxNegGrade field
  981. /// Units: %</summary>
  982. /// <param name="maxNegGrade_">Nullable field value to be set</param>
  983. public void SetMaxNegGrade(float? maxNegGrade_)
  984. {
  985. SetFieldValue(56, 0, maxNegGrade_, Fit.SubfieldIndexMainField);
  986. }
  987. ///<summary>
  988. /// Retrieves the AvgTemperature field
  989. /// Units: C</summary>
  990. /// <returns>Returns nullable sbyte representing the AvgTemperature field</returns>
  991. public sbyte? GetAvgTemperature()
  992. {
  993. return (sbyte?)GetFieldValue(57, 0, Fit.SubfieldIndexMainField);
  994. }
  995. /// <summary>
  996. /// Set AvgTemperature field
  997. /// Units: C</summary>
  998. /// <param name="avgTemperature_">Nullable field value to be set</param>
  999. public void SetAvgTemperature(sbyte? avgTemperature_)
  1000. {
  1001. SetFieldValue(57, 0, avgTemperature_, Fit.SubfieldIndexMainField);
  1002. }
  1003. ///<summary>
  1004. /// Retrieves the MaxTemperature field
  1005. /// Units: C</summary>
  1006. /// <returns>Returns nullable sbyte representing the MaxTemperature field</returns>
  1007. public sbyte? GetMaxTemperature()
  1008. {
  1009. return (sbyte?)GetFieldValue(58, 0, Fit.SubfieldIndexMainField);
  1010. }
  1011. /// <summary>
  1012. /// Set MaxTemperature field
  1013. /// Units: C</summary>
  1014. /// <param name="maxTemperature_">Nullable field value to be set</param>
  1015. public void SetMaxTemperature(sbyte? maxTemperature_)
  1016. {
  1017. SetFieldValue(58, 0, maxTemperature_, Fit.SubfieldIndexMainField);
  1018. }
  1019. ///<summary>
  1020. /// Retrieves the TotalMovingTime field
  1021. /// Units: s</summary>
  1022. /// <returns>Returns nullable float representing the TotalMovingTime field</returns>
  1023. public float? GetTotalMovingTime()
  1024. {
  1025. return (float?)GetFieldValue(59, 0, Fit.SubfieldIndexMainField);
  1026. }
  1027. /// <summary>
  1028. /// Set TotalMovingTime field
  1029. /// Units: s</summary>
  1030. /// <param name="totalMovingTime_">Nullable field value to be set</param>
  1031. public void SetTotalMovingTime(float? totalMovingTime_)
  1032. {
  1033. SetFieldValue(59, 0, totalMovingTime_, Fit.SubfieldIndexMainField);
  1034. }
  1035. ///<summary>
  1036. /// Retrieves the AvgPosVerticalSpeed field
  1037. /// Units: m/s</summary>
  1038. /// <returns>Returns nullable float representing the AvgPosVerticalSpeed field</returns>
  1039. public float? GetAvgPosVerticalSpeed()
  1040. {
  1041. return (float?)GetFieldValue(60, 0, Fit.SubfieldIndexMainField);
  1042. }
  1043. /// <summary>
  1044. /// Set AvgPosVerticalSpeed field
  1045. /// Units: m/s</summary>
  1046. /// <param name="avgPosVerticalSpeed_">Nullable field value to be set</param>
  1047. public void SetAvgPosVerticalSpeed(float? avgPosVerticalSpeed_)
  1048. {
  1049. SetFieldValue(60, 0, avgPosVerticalSpeed_, Fit.SubfieldIndexMainField);
  1050. }
  1051. ///<summary>
  1052. /// Retrieves the AvgNegVerticalSpeed field
  1053. /// Units: m/s</summary>
  1054. /// <returns>Returns nullable float representing the AvgNegVerticalSpeed field</returns>
  1055. public float? GetAvgNegVerticalSpeed()
  1056. {
  1057. return (float?)GetFieldValue(61, 0, Fit.SubfieldIndexMainField);
  1058. }
  1059. /// <summary>
  1060. /// Set AvgNegVerticalSpeed field
  1061. /// Units: m/s</summary>
  1062. /// <param name="avgNegVerticalSpeed_">Nullable field value to be set</param>
  1063. public void SetAvgNegVerticalSpeed(float? avgNegVerticalSpeed_)
  1064. {
  1065. SetFieldValue(61, 0, avgNegVerticalSpeed_, Fit.SubfieldIndexMainField);
  1066. }
  1067. ///<summary>
  1068. /// Retrieves the MaxPosVerticalSpeed field
  1069. /// Units: m/s</summary>
  1070. /// <returns>Returns nullable float representing the MaxPosVerticalSpeed field</returns>
  1071. public float? GetMaxPosVerticalSpeed()
  1072. {
  1073. return (float?)GetFieldValue(62, 0, Fit.SubfieldIndexMainField);
  1074. }
  1075. /// <summary>
  1076. /// Set MaxPosVerticalSpeed field
  1077. /// Units: m/s</summary>
  1078. /// <param name="maxPosVerticalSpeed_">Nullable field value to be set</param>
  1079. public void SetMaxPosVerticalSpeed(float? maxPosVerticalSpeed_)
  1080. {
  1081. SetFieldValue(62, 0, maxPosVerticalSpeed_, Fit.SubfieldIndexMainField);
  1082. }
  1083. ///<summary>
  1084. /// Retrieves the MaxNegVerticalSpeed field
  1085. /// Units: m/s</summary>
  1086. /// <returns>Returns nullable float representing the MaxNegVerticalSpeed field</returns>
  1087. public float? GetMaxNegVerticalSpeed()
  1088. {
  1089. return (float?)GetFieldValue(63, 0, Fit.SubfieldIndexMainField);
  1090. }
  1091. /// <summary>
  1092. /// Set MaxNegVerticalSpeed field
  1093. /// Units: m/s</summary>
  1094. /// <param name="maxNegVerticalSpeed_">Nullable field value to be set</param>
  1095. public void SetMaxNegVerticalSpeed(float? maxNegVerticalSpeed_)
  1096. {
  1097. SetFieldValue(63, 0, maxNegVerticalSpeed_, Fit.SubfieldIndexMainField);
  1098. }
  1099. ///<summary>
  1100. /// Retrieves the MinHeartRate field
  1101. /// Units: bpm</summary>
  1102. /// <returns>Returns nullable byte representing the MinHeartRate field</returns>
  1103. public byte? GetMinHeartRate()
  1104. {
  1105. return (byte?)GetFieldValue(64, 0, Fit.SubfieldIndexMainField);
  1106. }
  1107. /// <summary>
  1108. /// Set MinHeartRate field
  1109. /// Units: bpm</summary>
  1110. /// <param name="minHeartRate_">Nullable field value to be set</param>
  1111. public void SetMinHeartRate(byte? minHeartRate_)
  1112. {
  1113. SetFieldValue(64, 0, minHeartRate_, Fit.SubfieldIndexMainField);
  1114. }
  1115. /// <summary>
  1116. ///
  1117. /// </summary>
  1118. /// <returns>returns number of elements in field TimeInHrZone</returns>
  1119. public int GetNumTimeInHrZone()
  1120. {
  1121. return GetNumFieldValues(65, Fit.SubfieldIndexMainField);
  1122. }
  1123. ///<summary>
  1124. /// Retrieves the TimeInHrZone field
  1125. /// Units: s</summary>
  1126. /// <param name="index">0 based index of TimeInHrZone element to retrieve</param>
  1127. /// <returns>Returns nullable float representing the TimeInHrZone field</returns>
  1128. public float? GetTimeInHrZone(int index)
  1129. {
  1130. return (float?)GetFieldValue(65, index, Fit.SubfieldIndexMainField);
  1131. }
  1132. /// <summary>
  1133. /// Set TimeInHrZone field
  1134. /// Units: s</summary>
  1135. /// <param name="index">0 based index of time_in_hr_zone</param>
  1136. /// <param name="timeInHrZone_">Nullable field value to be set</param>
  1137. public void SetTimeInHrZone(int index, float? timeInHrZone_)
  1138. {
  1139. SetFieldValue(65, index, timeInHrZone_, Fit.SubfieldIndexMainField);
  1140. }
  1141. /// <summary>
  1142. ///
  1143. /// </summary>
  1144. /// <returns>returns number of elements in field TimeInSpeedZone</returns>
  1145. public int GetNumTimeInSpeedZone()
  1146. {
  1147. return GetNumFieldValues(66, Fit.SubfieldIndexMainField);
  1148. }
  1149. ///<summary>
  1150. /// Retrieves the TimeInSpeedZone field
  1151. /// Units: s</summary>
  1152. /// <param name="index">0 based index of TimeInSpeedZone element to retrieve</param>
  1153. /// <returns>Returns nullable float representing the TimeInSpeedZone field</returns>
  1154. public float? GetTimeInSpeedZone(int index)
  1155. {
  1156. return (float?)GetFieldValue(66, index, Fit.SubfieldIndexMainField);
  1157. }
  1158. /// <summary>
  1159. /// Set TimeInSpeedZone field
  1160. /// Units: s</summary>
  1161. /// <param name="index">0 based index of time_in_speed_zone</param>
  1162. /// <param name="timeInSpeedZone_">Nullable field value to be set</param>
  1163. public void SetTimeInSpeedZone(int index, float? timeInSpeedZone_)
  1164. {
  1165. SetFieldValue(66, index, timeInSpeedZone_, Fit.SubfieldIndexMainField);
  1166. }
  1167. /// <summary>
  1168. ///
  1169. /// </summary>
  1170. /// <returns>returns number of elements in field TimeInCadenceZone</returns>
  1171. public int GetNumTimeInCadenceZone()
  1172. {
  1173. return GetNumFieldValues(67, Fit.SubfieldIndexMainField);
  1174. }
  1175. ///<summary>
  1176. /// Retrieves the TimeInCadenceZone field
  1177. /// Units: s</summary>
  1178. /// <param name="index">0 based index of TimeInCadenceZone element to retrieve</param>
  1179. /// <returns>Returns nullable float representing the TimeInCadenceZone field</returns>
  1180. public float? GetTimeInCadenceZone(int index)
  1181. {
  1182. return (float?)GetFieldValue(67, index, Fit.SubfieldIndexMainField);
  1183. }
  1184. /// <summary>
  1185. /// Set TimeInCadenceZone field
  1186. /// Units: s</summary>
  1187. /// <param name="index">0 based index of time_in_cadence_zone</param>
  1188. /// <param name="timeInCadenceZone_">Nullable field value to be set</param>
  1189. public void SetTimeInCadenceZone(int index, float? timeInCadenceZone_)
  1190. {
  1191. SetFieldValue(67, index, timeInCadenceZone_, Fit.SubfieldIndexMainField);
  1192. }
  1193. /// <summary>
  1194. ///
  1195. /// </summary>
  1196. /// <returns>returns number of elements in field TimeInPowerZone</returns>
  1197. public int GetNumTimeInPowerZone()
  1198. {
  1199. return GetNumFieldValues(68, Fit.SubfieldIndexMainField);
  1200. }
  1201. ///<summary>
  1202. /// Retrieves the TimeInPowerZone field
  1203. /// Units: s</summary>
  1204. /// <param name="index">0 based index of TimeInPowerZone element to retrieve</param>
  1205. /// <returns>Returns nullable float representing the TimeInPowerZone field</returns>
  1206. public float? GetTimeInPowerZone(int index)
  1207. {
  1208. return (float?)GetFieldValue(68, index, Fit.SubfieldIndexMainField);
  1209. }
  1210. /// <summary>
  1211. /// Set TimeInPowerZone field
  1212. /// Units: s</summary>
  1213. /// <param name="index">0 based index of time_in_power_zone</param>
  1214. /// <param name="timeInPowerZone_">Nullable field value to be set</param>
  1215. public void SetTimeInPowerZone(int index, float? timeInPowerZone_)
  1216. {
  1217. SetFieldValue(68, index, timeInPowerZone_, Fit.SubfieldIndexMainField);
  1218. }
  1219. ///<summary>
  1220. /// Retrieves the AvgLapTime field
  1221. /// Units: s</summary>
  1222. /// <returns>Returns nullable float representing the AvgLapTime field</returns>
  1223. public float? GetAvgLapTime()
  1224. {
  1225. return (float?)GetFieldValue(69, 0, Fit.SubfieldIndexMainField);
  1226. }
  1227. /// <summary>
  1228. /// Set AvgLapTime field
  1229. /// Units: s</summary>
  1230. /// <param name="avgLapTime_">Nullable field value to be set</param>
  1231. public void SetAvgLapTime(float? avgLapTime_)
  1232. {
  1233. SetFieldValue(69, 0, avgLapTime_, Fit.SubfieldIndexMainField);
  1234. }
  1235. ///<summary>
  1236. /// Retrieves the BestLapIndex field</summary>
  1237. /// <returns>Returns nullable ushort representing the BestLapIndex field</returns>
  1238. public ushort? GetBestLapIndex()
  1239. {
  1240. return (ushort?)GetFieldValue(70, 0, Fit.SubfieldIndexMainField);
  1241. }
  1242. /// <summary>
  1243. /// Set BestLapIndex field</summary>
  1244. /// <param name="bestLapIndex_">Nullable field value to be set</param>
  1245. public void SetBestLapIndex(ushort? bestLapIndex_)
  1246. {
  1247. SetFieldValue(70, 0, bestLapIndex_, Fit.SubfieldIndexMainField);
  1248. }
  1249. ///<summary>
  1250. /// Retrieves the MinAltitude field
  1251. /// Units: m</summary>
  1252. /// <returns>Returns nullable float representing the MinAltitude field</returns>
  1253. public float? GetMinAltitude()
  1254. {
  1255. return (float?)GetFieldValue(71, 0, Fit.SubfieldIndexMainField);
  1256. }
  1257. /// <summary>
  1258. /// Set MinAltitude field
  1259. /// Units: m</summary>
  1260. /// <param name="minAltitude_">Nullable field value to be set</param>
  1261. public void SetMinAltitude(float? minAltitude_)
  1262. {
  1263. SetFieldValue(71, 0, minAltitude_, Fit.SubfieldIndexMainField);
  1264. }
  1265. ///<summary>
  1266. /// Retrieves the PlayerScore field</summary>
  1267. /// <returns>Returns nullable ushort representing the PlayerScore field</returns>
  1268. public ushort? GetPlayerScore()
  1269. {
  1270. return (ushort?)GetFieldValue(82, 0, Fit.SubfieldIndexMainField);
  1271. }
  1272. /// <summary>
  1273. /// Set PlayerScore field</summary>
  1274. /// <param name="playerScore_">Nullable field value to be set</param>
  1275. public void SetPlayerScore(ushort? playerScore_)
  1276. {
  1277. SetFieldValue(82, 0, playerScore_, Fit.SubfieldIndexMainField);
  1278. }
  1279. ///<summary>
  1280. /// Retrieves the OpponentScore field</summary>
  1281. /// <returns>Returns nullable ushort representing the OpponentScore field</returns>
  1282. public ushort? GetOpponentScore()
  1283. {
  1284. return (ushort?)GetFieldValue(83, 0, Fit.SubfieldIndexMainField);
  1285. }
  1286. /// <summary>
  1287. /// Set OpponentScore field</summary>
  1288. /// <param name="opponentScore_">Nullable field value to be set</param>
  1289. public void SetOpponentScore(ushort? opponentScore_)
  1290. {
  1291. SetFieldValue(83, 0, opponentScore_, Fit.SubfieldIndexMainField);
  1292. }
  1293. ///<summary>
  1294. /// Retrieves the OpponentName field</summary>
  1295. /// <returns>Returns byte[] representing the OpponentName field</returns>
  1296. public byte[] GetOpponentName()
  1297. {
  1298. return (byte[])GetFieldValue(84, 0, Fit.SubfieldIndexMainField);
  1299. }
  1300. ///<summary>
  1301. /// Retrieves the OpponentName field</summary>
  1302. /// <returns>Returns String representing the OpponentName field</returns>
  1303. public String GetOpponentNameAsString()
  1304. {
  1305. return Encoding.UTF8.GetString((byte[])GetFieldValue(84, 0, Fit.SubfieldIndexMainField));
  1306. }
  1307. ///<summary>
  1308. /// Set OpponentName field</summary>
  1309. /// <param name="opponentName_"> field value to be set</param>
  1310. public void SetOpponentName(String opponentName_)
  1311. {
  1312. SetFieldValue(84, 0, System.Text.Encoding.UTF8.GetBytes(opponentName_), Fit.SubfieldIndexMainField);
  1313. }
  1314. /// <summary>
  1315. /// Set OpponentName field</summary>
  1316. /// <param name="opponentName_">field value to be set</param>
  1317. public void SetOpponentName(byte[] opponentName_)
  1318. {
  1319. SetFieldValue(84, 0, opponentName_, Fit.SubfieldIndexMainField);
  1320. }
  1321. /// <summary>
  1322. ///
  1323. /// </summary>
  1324. /// <returns>returns number of elements in field StrokeCount</returns>
  1325. public int GetNumStrokeCount()
  1326. {
  1327. return GetNumFieldValues(85, Fit.SubfieldIndexMainField);
  1328. }
  1329. ///<summary>
  1330. /// Retrieves the StrokeCount field
  1331. /// Units: counts
  1332. /// Comment: stroke_type enum used as the index</summary>
  1333. /// <param name="index">0 based index of StrokeCount element to retrieve</param>
  1334. /// <returns>Returns nullable ushort representing the StrokeCount field</returns>
  1335. public ushort? GetStrokeCount(int index)
  1336. {
  1337. return (ushort?)GetFieldValue(85, index, Fit.SubfieldIndexMainField);
  1338. }
  1339. /// <summary>
  1340. /// Set StrokeCount field
  1341. /// Units: counts
  1342. /// Comment: stroke_type enum used as the index</summary>
  1343. /// <param name="index">0 based index of stroke_count</param>
  1344. /// <param name="strokeCount_">Nullable field value to be set</param>
  1345. public void SetStrokeCount(int index, ushort? strokeCount_)
  1346. {
  1347. SetFieldValue(85, index, strokeCount_, Fit.SubfieldIndexMainField);
  1348. }
  1349. /// <summary>
  1350. ///
  1351. /// </summary>
  1352. /// <returns>returns number of elements in field ZoneCount</returns>
  1353. public int GetNumZoneCount()
  1354. {
  1355. return GetNumFieldValues(86, Fit.SubfieldIndexMainField);
  1356. }
  1357. ///<summary>
  1358. /// Retrieves the ZoneCount field
  1359. /// Units: counts
  1360. /// Comment: zone number used as the index</summary>
  1361. /// <param name="index">0 based index of ZoneCount element to retrieve</param>
  1362. /// <returns>Returns nullable ushort representing the ZoneCount field</returns>
  1363. public ushort? GetZoneCount(int index)
  1364. {
  1365. return (ushort?)GetFieldValue(86, index, Fit.SubfieldIndexMainField);
  1366. }
  1367. /// <summary>
  1368. /// Set ZoneCount field
  1369. /// Units: counts
  1370. /// Comment: zone number used as the index</summary>
  1371. /// <param name="index">0 based index of zone_count</param>
  1372. /// <param name="zoneCount_">Nullable field value to be set</param>
  1373. public void SetZoneCount(int index, ushort? zoneCount_)
  1374. {
  1375. SetFieldValue(86, index, zoneCount_, Fit.SubfieldIndexMainField);
  1376. }
  1377. ///<summary>
  1378. /// Retrieves the MaxBallSpeed field
  1379. /// Units: m/s</summary>
  1380. /// <returns>Returns nullable float representing the MaxBallSpeed field</returns>
  1381. public float? GetMaxBallSpeed()
  1382. {
  1383. return (float?)GetFieldValue(87, 0, Fit.SubfieldIndexMainField);
  1384. }
  1385. /// <summary>
  1386. /// Set MaxBallSpeed field
  1387. /// Units: m/s</summary>
  1388. /// <param name="maxBallSpeed_">Nullable field value to be set</param>
  1389. public void SetMaxBallSpeed(float? maxBallSpeed_)
  1390. {
  1391. SetFieldValue(87, 0, maxBallSpeed_, Fit.SubfieldIndexMainField);
  1392. }
  1393. ///<summary>
  1394. /// Retrieves the AvgBallSpeed field
  1395. /// Units: m/s</summary>
  1396. /// <returns>Returns nullable float representing the AvgBallSpeed field</returns>
  1397. public float? GetAvgBallSpeed()
  1398. {
  1399. return (float?)GetFieldValue(88, 0, Fit.SubfieldIndexMainField);
  1400. }
  1401. /// <summary>
  1402. /// Set AvgBallSpeed field
  1403. /// Units: m/s</summary>
  1404. /// <param name="avgBallSpeed_">Nullable field value to be set</param>
  1405. public void SetAvgBallSpeed(float? avgBallSpeed_)
  1406. {
  1407. SetFieldValue(88, 0, avgBallSpeed_, Fit.SubfieldIndexMainField);
  1408. }
  1409. ///<summary>
  1410. /// Retrieves the AvgVerticalOscillation field
  1411. /// Units: mm</summary>
  1412. /// <returns>Returns nullable float representing the AvgVerticalOscillation field</returns>
  1413. public float? GetAvgVerticalOscillation()
  1414. {
  1415. return (float?)GetFieldValue(89, 0, Fit.SubfieldIndexMainField);
  1416. }
  1417. /// <summary>
  1418. /// Set AvgVerticalOscillation field
  1419. /// Units: mm</summary>
  1420. /// <param name="avgVerticalOscillation_">Nullable field value to be set</param>
  1421. public void SetAvgVerticalOscillation(float? avgVerticalOscillation_)
  1422. {
  1423. SetFieldValue(89, 0, avgVerticalOscillation_, Fit.SubfieldIndexMainField);
  1424. }
  1425. ///<summary>
  1426. /// Retrieves the AvgStanceTimePercent field
  1427. /// Units: percent</summary>
  1428. /// <returns>Returns nullable float representing the AvgStanceTimePercent field</returns>
  1429. public float? GetAvgStanceTimePercent()
  1430. {
  1431. return (float?)GetFieldValue(90, 0, Fit.SubfieldIndexMainField);
  1432. }
  1433. /// <summary>
  1434. /// Set AvgStanceTimePercent field
  1435. /// Units: percent</summary>
  1436. /// <param name="avgStanceTimePercent_">Nullable field value to be set</param>
  1437. public void SetAvgStanceTimePercent(float? avgStanceTimePercent_)
  1438. {
  1439. SetFieldValue(90, 0, avgStanceTimePercent_, Fit.SubfieldIndexMainField);
  1440. }
  1441. ///<summary>
  1442. /// Retrieves the AvgStanceTime field
  1443. /// Units: ms</summary>
  1444. /// <returns>Returns nullable float representing the AvgStanceTime field</returns>
  1445. public float? GetAvgStanceTime()
  1446. {
  1447. return (float?)GetFieldValue(91, 0, Fit.SubfieldIndexMainField);
  1448. }
  1449. /// <summary>
  1450. /// Set AvgStanceTime field
  1451. /// Units: ms</summary>
  1452. /// <param name="avgStanceTime_">Nullable field value to be set</param>
  1453. public void SetAvgStanceTime(float? avgStanceTime_)
  1454. {
  1455. SetFieldValue(91, 0, avgStanceTime_, Fit.SubfieldIndexMainField);
  1456. }
  1457. ///<summary>
  1458. /// Retrieves the AvgFractionalCadence field
  1459. /// Units: rpm
  1460. /// Comment: fractional part of the avg_cadence</summary>
  1461. /// <returns>Returns nullable float representing the AvgFractionalCadence field</returns>
  1462. public float? GetAvgFractionalCadence()
  1463. {
  1464. return (float?)GetFieldValue(92, 0, Fit.SubfieldIndexMainField);
  1465. }
  1466. /// <summary>
  1467. /// Set AvgFractionalCadence field
  1468. /// Units: rpm
  1469. /// Comment: fractional part of the avg_cadence</summary>
  1470. /// <param name="avgFractionalCadence_">Nullable field value to be set</param>
  1471. public void SetAvgFractionalCadence(float? avgFractionalCadence_)
  1472. {
  1473. SetFieldValue(92, 0, avgFractionalCadence_, Fit.SubfieldIndexMainField);
  1474. }
  1475. ///<summary>
  1476. /// Retrieves the MaxFractionalCadence field
  1477. /// Units: rpm
  1478. /// Comment: fractional part of the max_cadence</summary>
  1479. /// <returns>Returns nullable float representing the MaxFractionalCadence field</returns>
  1480. public float? GetMaxFractionalCadence()
  1481. {
  1482. return (float?)GetFieldValue(93, 0, Fit.SubfieldIndexMainField);
  1483. }
  1484. /// <summary>
  1485. /// Set MaxFractionalCadence field
  1486. /// Units: rpm
  1487. /// Comment: fractional part of the max_cadence</summary>
  1488. /// <param name="maxFractionalCadence_">Nullable field value to be set</param>
  1489. public void SetMaxFractionalCadence(float? maxFractionalCadence_)
  1490. {
  1491. SetFieldValue(93, 0, maxFractionalCadence_, Fit.SubfieldIndexMainField);
  1492. }
  1493. ///<summary>
  1494. /// Retrieves the TotalFractionalCycles field
  1495. /// Units: cycles
  1496. /// Comment: fractional part of the total_cycles</summary>
  1497. /// <returns>Returns nullable float representing the TotalFractionalCycles field</returns>
  1498. public float? GetTotalFractionalCycles()
  1499. {
  1500. return (float?)GetFieldValue(94, 0, Fit.SubfieldIndexMainField);
  1501. }
  1502. /// <summary>
  1503. /// Set TotalFractionalCycles field
  1504. /// Units: cycles
  1505. /// Comment: fractional part of the total_cycles</summary>
  1506. /// <param name="totalFractionalCycles_">Nullable field value to be set</param>
  1507. public void SetTotalFractionalCycles(float? totalFractionalCycles_)
  1508. {
  1509. SetFieldValue(94, 0, totalFractionalCycles_, Fit.SubfieldIndexMainField);
  1510. }
  1511. /// <summary>
  1512. ///
  1513. /// </summary>
  1514. /// <returns>returns number of elements in field AvgTotalHemoglobinConc</returns>
  1515. public int GetNumAvgTotalHemoglobinConc()
  1516. {
  1517. return GetNumFieldValues(95, Fit.SubfieldIndexMainField);
  1518. }
  1519. ///<summary>
  1520. /// Retrieves the AvgTotalHemoglobinConc field
  1521. /// Units: g/dL
  1522. /// Comment: Avg saturated and unsaturated hemoglobin</summary>
  1523. /// <param name="index">0 based index of AvgTotalHemoglobinConc element to retrieve</param>
  1524. /// <returns>Returns nullable float representing the AvgTotalHemoglobinConc field</returns>
  1525. public float? GetAvgTotalHemoglobinConc(int index)
  1526. {
  1527. return (float?)GetFieldValue(95, index, Fit.SubfieldIndexMainField);
  1528. }
  1529. /// <summary>
  1530. /// Set AvgTotalHemoglobinConc field
  1531. /// Units: g/dL
  1532. /// Comment: Avg saturated and unsaturated hemoglobin</summary>
  1533. /// <param name="index">0 based index of avg_total_hemoglobin_conc</param>
  1534. /// <param name="avgTotalHemoglobinConc_">Nullable field value to be set</param>
  1535. public void SetAvgTotalHemoglobinConc(int index, float? avgTotalHemoglobinConc_)
  1536. {
  1537. SetFieldValue(95, index, avgTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
  1538. }
  1539. /// <summary>
  1540. ///
  1541. /// </summary>
  1542. /// <returns>returns number of elements in field MinTotalHemoglobinConc</returns>
  1543. public int GetNumMinTotalHemoglobinConc()
  1544. {
  1545. return GetNumFieldValues(96, Fit.SubfieldIndexMainField);
  1546. }
  1547. ///<summary>
  1548. /// Retrieves the MinTotalHemoglobinConc field
  1549. /// Units: g/dL
  1550. /// Comment: Min saturated and unsaturated hemoglobin</summary>
  1551. /// <param name="index">0 based index of MinTotalHemoglobinConc element to retrieve</param>
  1552. /// <returns>Returns nullable float representing the MinTotalHemoglobinConc field</returns>
  1553. public float? GetMinTotalHemoglobinConc(int index)
  1554. {
  1555. return (float?)GetFieldValue(96, index, Fit.SubfieldIndexMainField);
  1556. }
  1557. /// <summary>
  1558. /// Set MinTotalHemoglobinConc field
  1559. /// Units: g/dL
  1560. /// Comment: Min saturated and unsaturated hemoglobin</summary>
  1561. /// <param name="index">0 based index of min_total_hemoglobin_conc</param>
  1562. /// <param name="minTotalHemoglobinConc_">Nullable field value to be set</param>
  1563. public void SetMinTotalHemoglobinConc(int index, float? minTotalHemoglobinConc_)
  1564. {
  1565. SetFieldValue(96, index, minTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
  1566. }
  1567. /// <summary>
  1568. ///
  1569. /// </summary>
  1570. /// <returns>returns number of elements in field MaxTotalHemoglobinConc</returns>
  1571. public int GetNumMaxTotalHemoglobinConc()
  1572. {
  1573. return GetNumFieldValues(97, Fit.SubfieldIndexMainField);
  1574. }
  1575. ///<summary>
  1576. /// Retrieves the MaxTotalHemoglobinConc field
  1577. /// Units: g/dL
  1578. /// Comment: Max saturated and unsaturated hemoglobin</summary>
  1579. /// <param name="index">0 based index of MaxTotalHemoglobinConc element to retrieve</param>
  1580. /// <returns>Returns nullable float representing the MaxTotalHemoglobinConc field</returns>
  1581. public float? GetMaxTotalHemoglobinConc(int index)
  1582. {
  1583. return (float?)GetFieldValue(97, index, Fit.SubfieldIndexMainField);
  1584. }
  1585. /// <summary>
  1586. /// Set MaxTotalHemoglobinConc field
  1587. /// Units: g/dL
  1588. /// Comment: Max saturated and unsaturated hemoglobin</summary>
  1589. /// <param name="index">0 based index of max_total_hemoglobin_conc</param>
  1590. /// <param name="maxTotalHemoglobinConc_">Nullable field value to be set</param>
  1591. public void SetMaxTotalHemoglobinConc(int index, float? maxTotalHemoglobinConc_)
  1592. {
  1593. SetFieldValue(97, index, maxTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
  1594. }
  1595. /// <summary>
  1596. ///
  1597. /// </summary>
  1598. /// <returns>returns number of elements in field AvgSaturatedHemoglobinPercent</returns>
  1599. public int GetNumAvgSaturatedHemoglobinPercent()
  1600. {
  1601. return GetNumFieldValues(98, Fit.SubfieldIndexMainField);
  1602. }
  1603. ///<summary>
  1604. /// Retrieves the AvgSaturatedHemoglobinPercent field
  1605. /// Units: %
  1606. /// Comment: Avg percentage of hemoglobin saturated with oxygen</summary>
  1607. /// <param name="index">0 based index of AvgSaturatedHemoglobinPercent element to retrieve</param>
  1608. /// <returns>Returns nullable float representing the AvgSaturatedHemoglobinPercent field</returns>
  1609. public float? GetAvgSaturatedHemoglobinPercent(int index)
  1610. {
  1611. return (float?)GetFieldValue(98, index, Fit.SubfieldIndexMainField);
  1612. }
  1613. /// <summary>
  1614. /// Set AvgSaturatedHemoglobinPercent field
  1615. /// Units: %
  1616. /// Comment: Avg percentage of hemoglobin saturated with oxygen</summary>
  1617. /// <param name="index">0 based index of avg_saturated_hemoglobin_percent</param>
  1618. /// <param name="avgSaturatedHemoglobinPercent_">Nullable field value to be set</param>
  1619. public void SetAvgSaturatedHemoglobinPercent(int index, float? avgSaturatedHemoglobinPercent_)
  1620. {
  1621. SetFieldValue(98, index, avgSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
  1622. }
  1623. /// <summary>
  1624. ///
  1625. /// </summary>
  1626. /// <returns>returns number of elements in field MinSaturatedHemoglobinPercent</returns>
  1627. public int GetNumMinSaturatedHemoglobinPercent()
  1628. {
  1629. return GetNumFieldValues(99, Fit.SubfieldIndexMainField);
  1630. }
  1631. ///<summary>
  1632. /// Retrieves the MinSaturatedHemoglobinPercent field
  1633. /// Units: %
  1634. /// Comment: Min percentage of hemoglobin saturated with oxygen</summary>
  1635. /// <param name="index">0 based index of MinSaturatedHemoglobinPercent element to retrieve</param>
  1636. /// <returns>Returns nullable float representing the MinSaturatedHemoglobinPercent field</returns>
  1637. public float? GetMinSaturatedHemoglobinPercent(int index)
  1638. {
  1639. return (float?)GetFieldValue(99, index, Fit.SubfieldIndexMainField);
  1640. }
  1641. /// <summary>
  1642. /// Set MinSaturatedHemoglobinPercent field
  1643. /// Units: %
  1644. /// Comment: Min percentage of hemoglobin saturated with oxygen</summary>
  1645. /// <param name="index">0 based index of min_saturated_hemoglobin_percent</param>
  1646. /// <param name="minSaturatedHemoglobinPercent_">Nullable field value to be set</param>
  1647. public void SetMinSaturatedHemoglobinPercent(int index, float? minSaturatedHemoglobinPercent_)
  1648. {
  1649. SetFieldValue(99, index, minSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
  1650. }
  1651. /// <summary>
  1652. ///
  1653. /// </summary>
  1654. /// <returns>returns number of elements in field MaxSaturatedHemoglobinPercent</returns>
  1655. public int GetNumMaxSaturatedHemoglobinPercent()
  1656. {
  1657. return GetNumFieldValues(100, Fit.SubfieldIndexMainField);
  1658. }
  1659. ///<summary>
  1660. /// Retrieves the MaxSaturatedHemoglobinPercent field
  1661. /// Units: %
  1662. /// Comment: Max percentage of hemoglobin saturated with oxygen</summary>
  1663. /// <param name="index">0 based index of MaxSaturatedHemoglobinPercent element to retrieve</param>
  1664. /// <returns>Returns nullable float representing the MaxSaturatedHemoglobinPercent field</returns>
  1665. public float? GetMaxSaturatedHemoglobinPercent(int index)
  1666. {
  1667. return (float?)GetFieldValue(100, index, Fit.SubfieldIndexMainField);
  1668. }
  1669. /// <summary>
  1670. /// Set MaxSaturatedHemoglobinPercent field
  1671. /// Units: %
  1672. /// Comment: Max percentage of hemoglobin saturated with oxygen</summary>
  1673. /// <param name="index">0 based index of max_saturated_hemoglobin_percent</param>
  1674. /// <param name="maxSaturatedHemoglobinPercent_">Nullable field value to be set</param>
  1675. public void SetMaxSaturatedHemoglobinPercent(int index, float? maxSaturatedHemoglobinPercent_)
  1676. {
  1677. SetFieldValue(100, index, maxSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
  1678. }
  1679. ///<summary>
  1680. /// Retrieves the AvgLeftTorqueEffectiveness field
  1681. /// Units: percent</summary>
  1682. /// <returns>Returns nullable float representing the AvgLeftTorqueEffectiveness field</returns>
  1683. public float? GetAvgLeftTorqueEffectiveness()
  1684. {
  1685. return (float?)GetFieldValue(101, 0, Fit.SubfieldIndexMainField);
  1686. }
  1687. /// <summary>
  1688. /// Set AvgLeftTorqueEffectiveness field
  1689. /// Units: percent</summary>
  1690. /// <param name="avgLeftTorqueEffectiveness_">Nullable field value to be set</param>
  1691. public void SetAvgLeftTorqueEffectiveness(float? avgLeftTorqueEffectiveness_)
  1692. {
  1693. SetFieldValue(101, 0, avgLeftTorqueEffectiveness_, Fit.SubfieldIndexMainField);
  1694. }
  1695. ///<summary>
  1696. /// Retrieves the AvgRightTorqueEffectiveness field
  1697. /// Units: percent</summary>
  1698. /// <returns>Returns nullable float representing the AvgRightTorqueEffectiveness field</returns>
  1699. public float? GetAvgRightTorqueEffectiveness()
  1700. {
  1701. return (float?)GetFieldValue(102, 0, Fit.SubfieldIndexMainField);
  1702. }
  1703. /// <summary>
  1704. /// Set AvgRightTorqueEffectiveness field
  1705. /// Units: percent</summary>
  1706. /// <param name="avgRightTorqueEffectiveness_">Nullable field value to be set</param>
  1707. public void SetAvgRightTorqueEffectiveness(float? avgRightTorqueEffectiveness_)
  1708. {
  1709. SetFieldValue(102, 0, avgRightTorqueEffectiveness_, Fit.SubfieldIndexMainField);
  1710. }
  1711. ///<summary>
  1712. /// Retrieves the AvgLeftPedalSmoothness field
  1713. /// Units: percent</summary>
  1714. /// <returns>Returns nullable float representing the AvgLeftPedalSmoothness field</returns>
  1715. public float? GetAvgLeftPedalSmoothness()
  1716. {
  1717. return (float?)GetFieldValue(103, 0, Fit.SubfieldIndexMainField);
  1718. }
  1719. /// <summary>
  1720. /// Set AvgLeftPedalSmoothness field
  1721. /// Units: percent</summary>
  1722. /// <param name="avgLeftPedalSmoothness_">Nullable field value to be set</param>
  1723. public void SetAvgLeftPedalSmoothness(float? avgLeftPedalSmoothness_)
  1724. {
  1725. SetFieldValue(103, 0, avgLeftPedalSmoothness_, Fit.SubfieldIndexMainField);
  1726. }
  1727. ///<summary>
  1728. /// Retrieves the AvgRightPedalSmoothness field
  1729. /// Units: percent</summary>
  1730. /// <returns>Returns nullable float representing the AvgRightPedalSmoothness field</returns>
  1731. public float? GetAvgRightPedalSmoothness()
  1732. {
  1733. return (float?)GetFieldValue(104, 0, Fit.SubfieldIndexMainField);
  1734. }
  1735. /// <summary>
  1736. /// Set AvgRightPedalSmoothness field
  1737. /// Units: percent</summary>
  1738. /// <param name="avgRightPedalSmoothness_">Nullable field value to be set</param>
  1739. public void SetAvgRightPedalSmoothness(float? avgRightPedalSmoothness_)
  1740. {
  1741. SetFieldValue(104, 0, avgRightPedalSmoothness_, Fit.SubfieldIndexMainField);
  1742. }
  1743. ///<summary>
  1744. /// Retrieves the AvgCombinedPedalSmoothness field
  1745. /// Units: percent</summary>
  1746. /// <returns>Returns nullable float representing the AvgCombinedPedalSmoothness field</returns>
  1747. public float? GetAvgCombinedPedalSmoothness()
  1748. {
  1749. return (float?)GetFieldValue(105, 0, Fit.SubfieldIndexMainField);
  1750. }
  1751. /// <summary>
  1752. /// Set AvgCombinedPedalSmoothness field
  1753. /// Units: percent</summary>
  1754. /// <param name="avgCombinedPedalSmoothness_">Nullable field value to be set</param>
  1755. public void SetAvgCombinedPedalSmoothness(float? avgCombinedPedalSmoothness_)
  1756. {
  1757. SetFieldValue(105, 0, avgCombinedPedalSmoothness_, Fit.SubfieldIndexMainField);
  1758. }
  1759. ///<summary>
  1760. /// Retrieves the SportIndex field</summary>
  1761. /// <returns>Returns nullable byte representing the SportIndex field</returns>
  1762. public byte? GetSportIndex()
  1763. {
  1764. return (byte?)GetFieldValue(111, 0, Fit.SubfieldIndexMainField);
  1765. }
  1766. /// <summary>
  1767. /// Set SportIndex field</summary>
  1768. /// <param name="sportIndex_">Nullable field value to be set</param>
  1769. public void SetSportIndex(byte? sportIndex_)
  1770. {
  1771. SetFieldValue(111, 0, sportIndex_, Fit.SubfieldIndexMainField);
  1772. }
  1773. ///<summary>
  1774. /// Retrieves the TimeStanding field
  1775. /// Units: s
  1776. /// Comment: Total time spend in the standing position</summary>
  1777. /// <returns>Returns nullable float representing the TimeStanding field</returns>
  1778. public float? GetTimeStanding()
  1779. {
  1780. return (float?)GetFieldValue(112, 0, Fit.SubfieldIndexMainField);
  1781. }
  1782. /// <summary>
  1783. /// Set TimeStanding field
  1784. /// Units: s
  1785. /// Comment: Total time spend in the standing position</summary>
  1786. /// <param name="timeStanding_">Nullable field value to be set</param>
  1787. public void SetTimeStanding(float? timeStanding_)
  1788. {
  1789. SetFieldValue(112, 0, timeStanding_, Fit.SubfieldIndexMainField);
  1790. }
  1791. ///<summary>
  1792. /// Retrieves the StandCount field
  1793. /// Comment: Number of transitions to the standing state</summary>
  1794. /// <returns>Returns nullable ushort representing the StandCount field</returns>
  1795. public ushort? GetStandCount()
  1796. {
  1797. return (ushort?)GetFieldValue(113, 0, Fit.SubfieldIndexMainField);
  1798. }
  1799. /// <summary>
  1800. /// Set StandCount field
  1801. /// Comment: Number of transitions to the standing state</summary>
  1802. /// <param name="standCount_">Nullable field value to be set</param>
  1803. public void SetStandCount(ushort? standCount_)
  1804. {
  1805. SetFieldValue(113, 0, standCount_, Fit.SubfieldIndexMainField);
  1806. }
  1807. ///<summary>
  1808. /// Retrieves the AvgLeftPco field
  1809. /// Units: mm
  1810. /// Comment: Average platform center offset Left</summary>
  1811. /// <returns>Returns nullable sbyte representing the AvgLeftPco field</returns>
  1812. public sbyte? GetAvgLeftPco()
  1813. {
  1814. return (sbyte?)GetFieldValue(114, 0, Fit.SubfieldIndexMainField);
  1815. }
  1816. /// <summary>
  1817. /// Set AvgLeftPco field
  1818. /// Units: mm
  1819. /// Comment: Average platform center offset Left</summary>
  1820. /// <param name="avgLeftPco_">Nullable field value to be set</param>
  1821. public void SetAvgLeftPco(sbyte? avgLeftPco_)
  1822. {
  1823. SetFieldValue(114, 0, avgLeftPco_, Fit.SubfieldIndexMainField);
  1824. }
  1825. ///<summary>
  1826. /// Retrieves the AvgRightPco field
  1827. /// Units: mm
  1828. /// Comment: Average platform center offset Right</summary>
  1829. /// <returns>Returns nullable sbyte representing the AvgRightPco field</returns>
  1830. public sbyte? GetAvgRightPco()
  1831. {
  1832. return (sbyte?)GetFieldValue(115, 0, Fit.SubfieldIndexMainField);
  1833. }
  1834. /// <summary>
  1835. /// Set AvgRightPco field
  1836. /// Units: mm
  1837. /// Comment: Average platform center offset Right</summary>
  1838. /// <param name="avgRightPco_">Nullable field value to be set</param>
  1839. public void SetAvgRightPco(sbyte? avgRightPco_)
  1840. {
  1841. SetFieldValue(115, 0, avgRightPco_, Fit.SubfieldIndexMainField);
  1842. }
  1843. /// <summary>
  1844. ///
  1845. /// </summary>
  1846. /// <returns>returns number of elements in field AvgLeftPowerPhase</returns>
  1847. public int GetNumAvgLeftPowerPhase()
  1848. {
  1849. return GetNumFieldValues(116, Fit.SubfieldIndexMainField);
  1850. }
  1851. ///<summary>
  1852. /// Retrieves the AvgLeftPowerPhase field
  1853. /// Units: degrees
  1854. /// Comment: Average left power phase angles. Indexes defined by power_phase_type.</summary>
  1855. /// <param name="index">0 based index of AvgLeftPowerPhase element to retrieve</param>
  1856. /// <returns>Returns nullable byte representing the AvgLeftPowerPhase field</returns>
  1857. public byte? GetAvgLeftPowerPhase(int index)
  1858. {
  1859. return (byte?)GetFieldValue(116, index, Fit.SubfieldIndexMainField);
  1860. }
  1861. /// <summary>
  1862. /// Set AvgLeftPowerPhase field
  1863. /// Units: degrees
  1864. /// Comment: Average left power phase angles. Indexes defined by power_phase_type.</summary>
  1865. /// <param name="index">0 based index of avg_left_power_phase</param>
  1866. /// <param name="avgLeftPowerPhase_">Nullable field value to be set</param>
  1867. public void SetAvgLeftPowerPhase(int index, byte? avgLeftPowerPhase_)
  1868. {
  1869. SetFieldValue(116, index, avgLeftPowerPhase_, Fit.SubfieldIndexMainField);
  1870. }
  1871. /// <summary>
  1872. ///
  1873. /// </summary>
  1874. /// <returns>returns number of elements in field AvgLeftPowerPhasePeak</returns>
  1875. public int GetNumAvgLeftPowerPhasePeak()
  1876. {
  1877. return GetNumFieldValues(117, Fit.SubfieldIndexMainField);
  1878. }
  1879. ///<summary>
  1880. /// Retrieves the AvgLeftPowerPhasePeak field
  1881. /// Units: degrees
  1882. /// Comment: Average left power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  1883. /// <param name="index">0 based index of AvgLeftPowerPhasePeak element to retrieve</param>
  1884. /// <returns>Returns nullable byte representing the AvgLeftPowerPhasePeak field</returns>
  1885. public byte? GetAvgLeftPowerPhasePeak(int index)
  1886. {
  1887. return (byte?)GetFieldValue(117, index, Fit.SubfieldIndexMainField);
  1888. }
  1889. /// <summary>
  1890. /// Set AvgLeftPowerPhasePeak field
  1891. /// Units: degrees
  1892. /// Comment: Average left power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  1893. /// <param name="index">0 based index of avg_left_power_phase_peak</param>
  1894. /// <param name="avgLeftPowerPhasePeak_">Nullable field value to be set</param>
  1895. public void SetAvgLeftPowerPhasePeak(int index, byte? avgLeftPowerPhasePeak_)
  1896. {
  1897. SetFieldValue(117, index, avgLeftPowerPhasePeak_, Fit.SubfieldIndexMainField);
  1898. }
  1899. /// <summary>
  1900. ///
  1901. /// </summary>
  1902. /// <returns>returns number of elements in field AvgRightPowerPhase</returns>
  1903. public int GetNumAvgRightPowerPhase()
  1904. {
  1905. return GetNumFieldValues(118, Fit.SubfieldIndexMainField);
  1906. }
  1907. ///<summary>
  1908. /// Retrieves the AvgRightPowerPhase field
  1909. /// Units: degrees
  1910. /// Comment: Average right power phase angles. Data value indexes defined by power_phase_type.</summary>
  1911. /// <param name="index">0 based index of AvgRightPowerPhase element to retrieve</param>
  1912. /// <returns>Returns nullable byte representing the AvgRightPowerPhase field</returns>
  1913. public byte? GetAvgRightPowerPhase(int index)
  1914. {
  1915. return (byte?)GetFieldValue(118, index, Fit.SubfieldIndexMainField);
  1916. }
  1917. /// <summary>
  1918. /// Set AvgRightPowerPhase field
  1919. /// Units: degrees
  1920. /// Comment: Average right power phase angles. Data value indexes defined by power_phase_type.</summary>
  1921. /// <param name="index">0 based index of avg_right_power_phase</param>
  1922. /// <param name="avgRightPowerPhase_">Nullable field value to be set</param>
  1923. public void SetAvgRightPowerPhase(int index, byte? avgRightPowerPhase_)
  1924. {
  1925. SetFieldValue(118, index, avgRightPowerPhase_, Fit.SubfieldIndexMainField);
  1926. }
  1927. /// <summary>
  1928. ///
  1929. /// </summary>
  1930. /// <returns>returns number of elements in field AvgRightPowerPhasePeak</returns>
  1931. public int GetNumAvgRightPowerPhasePeak()
  1932. {
  1933. return GetNumFieldValues(119, Fit.SubfieldIndexMainField);
  1934. }
  1935. ///<summary>
  1936. /// Retrieves the AvgRightPowerPhasePeak field
  1937. /// Units: degrees
  1938. /// Comment: Average right power phase peak angles data value indexes defined by power_phase_type.</summary>
  1939. /// <param name="index">0 based index of AvgRightPowerPhasePeak element to retrieve</param>
  1940. /// <returns>Returns nullable byte representing the AvgRightPowerPhasePeak field</returns>
  1941. public byte? GetAvgRightPowerPhasePeak(int index)
  1942. {
  1943. return (byte?)GetFieldValue(119, index, Fit.SubfieldIndexMainField);
  1944. }
  1945. /// <summary>
  1946. /// Set AvgRightPowerPhasePeak field
  1947. /// Units: degrees
  1948. /// Comment: Average right power phase peak angles data value indexes defined by power_phase_type.</summary>
  1949. /// <param name="index">0 based index of avg_right_power_phase_peak</param>
  1950. /// <param name="avgRightPowerPhasePeak_">Nullable field value to be set</param>
  1951. public void SetAvgRightPowerPhasePeak(int index, byte? avgRightPowerPhasePeak_)
  1952. {
  1953. SetFieldValue(119, index, avgRightPowerPhasePeak_, Fit.SubfieldIndexMainField);
  1954. }
  1955. /// <summary>
  1956. ///
  1957. /// </summary>
  1958. /// <returns>returns number of elements in field AvgPowerPosition</returns>
  1959. public int GetNumAvgPowerPosition()
  1960. {
  1961. return GetNumFieldValues(120, Fit.SubfieldIndexMainField);
  1962. }
  1963. ///<summary>
  1964. /// Retrieves the AvgPowerPosition field
  1965. /// Units: watts
  1966. /// Comment: Average power by position. Data value indexes defined by rider_position_type.</summary>
  1967. /// <param name="index">0 based index of AvgPowerPosition element to retrieve</param>
  1968. /// <returns>Returns nullable ushort representing the AvgPowerPosition field</returns>
  1969. public ushort? GetAvgPowerPosition(int index)
  1970. {
  1971. return (ushort?)GetFieldValue(120, index, Fit.SubfieldIndexMainField);
  1972. }
  1973. /// <summary>
  1974. /// Set AvgPowerPosition field
  1975. /// Units: watts
  1976. /// Comment: Average power by position. Data value indexes defined by rider_position_type.</summary>
  1977. /// <param name="index">0 based index of avg_power_position</param>
  1978. /// <param name="avgPowerPosition_">Nullable field value to be set</param>
  1979. public void SetAvgPowerPosition(int index, ushort? avgPowerPosition_)
  1980. {
  1981. SetFieldValue(120, index, avgPowerPosition_, Fit.SubfieldIndexMainField);
  1982. }
  1983. /// <summary>
  1984. ///
  1985. /// </summary>
  1986. /// <returns>returns number of elements in field MaxPowerPosition</returns>
  1987. public int GetNumMaxPowerPosition()
  1988. {
  1989. return GetNumFieldValues(121, Fit.SubfieldIndexMainField);
  1990. }
  1991. ///<summary>
  1992. /// Retrieves the MaxPowerPosition field
  1993. /// Units: watts
  1994. /// Comment: Maximum power by position. Data value indexes defined by rider_position_type.</summary>
  1995. /// <param name="index">0 based index of MaxPowerPosition element to retrieve</param>
  1996. /// <returns>Returns nullable ushort representing the MaxPowerPosition field</returns>
  1997. public ushort? GetMaxPowerPosition(int index)
  1998. {
  1999. return (ushort?)GetFieldValue(121, index, Fit.SubfieldIndexMainField);
  2000. }
  2001. /// <summary>
  2002. /// Set MaxPowerPosition field
  2003. /// Units: watts
  2004. /// Comment: Maximum power by position. Data value indexes defined by rider_position_type.</summary>
  2005. /// <param name="index">0 based index of max_power_position</param>
  2006. /// <param name="maxPowerPosition_">Nullable field value to be set</param>
  2007. public void SetMaxPowerPosition(int index, ushort? maxPowerPosition_)
  2008. {
  2009. SetFieldValue(121, index, maxPowerPosition_, Fit.SubfieldIndexMainField);
  2010. }
  2011. /// <summary>
  2012. ///
  2013. /// </summary>
  2014. /// <returns>returns number of elements in field AvgCadencePosition</returns>
  2015. public int GetNumAvgCadencePosition()
  2016. {
  2017. return GetNumFieldValues(122, Fit.SubfieldIndexMainField);
  2018. }
  2019. ///<summary>
  2020. /// Retrieves the AvgCadencePosition field
  2021. /// Units: rpm
  2022. /// Comment: Average cadence by position. Data value indexes defined by rider_position_type.</summary>
  2023. /// <param name="index">0 based index of AvgCadencePosition element to retrieve</param>
  2024. /// <returns>Returns nullable byte representing the AvgCadencePosition field</returns>
  2025. public byte? GetAvgCadencePosition(int index)
  2026. {
  2027. return (byte?)GetFieldValue(122, index, Fit.SubfieldIndexMainField);
  2028. }
  2029. /// <summary>
  2030. /// Set AvgCadencePosition field
  2031. /// Units: rpm
  2032. /// Comment: Average cadence by position. Data value indexes defined by rider_position_type.</summary>
  2033. /// <param name="index">0 based index of avg_cadence_position</param>
  2034. /// <param name="avgCadencePosition_">Nullable field value to be set</param>
  2035. public void SetAvgCadencePosition(int index, byte? avgCadencePosition_)
  2036. {
  2037. SetFieldValue(122, index, avgCadencePosition_, Fit.SubfieldIndexMainField);
  2038. }
  2039. /// <summary>
  2040. ///
  2041. /// </summary>
  2042. /// <returns>returns number of elements in field MaxCadencePosition</returns>
  2043. public int GetNumMaxCadencePosition()
  2044. {
  2045. return GetNumFieldValues(123, Fit.SubfieldIndexMainField);
  2046. }
  2047. ///<summary>
  2048. /// Retrieves the MaxCadencePosition field
  2049. /// Units: rpm
  2050. /// Comment: Maximum cadence by position. Data value indexes defined by rider_position_type.</summary>
  2051. /// <param name="index">0 based index of MaxCadencePosition element to retrieve</param>
  2052. /// <returns>Returns nullable byte representing the MaxCadencePosition field</returns>
  2053. public byte? GetMaxCadencePosition(int index)
  2054. {
  2055. return (byte?)GetFieldValue(123, index, Fit.SubfieldIndexMainField);
  2056. }
  2057. /// <summary>
  2058. /// Set MaxCadencePosition field
  2059. /// Units: rpm
  2060. /// Comment: Maximum cadence by position. Data value indexes defined by rider_position_type.</summary>
  2061. /// <param name="index">0 based index of max_cadence_position</param>
  2062. /// <param name="maxCadencePosition_">Nullable field value to be set</param>
  2063. public void SetMaxCadencePosition(int index, byte? maxCadencePosition_)
  2064. {
  2065. SetFieldValue(123, index, maxCadencePosition_, Fit.SubfieldIndexMainField);
  2066. }
  2067. ///<summary>
  2068. /// Retrieves the EnhancedAvgSpeed field
  2069. /// Units: m/s
  2070. /// Comment: total_distance / total_timer_time</summary>
  2071. /// <returns>Returns nullable float representing the EnhancedAvgSpeed field</returns>
  2072. public float? GetEnhancedAvgSpeed()
  2073. {
  2074. return (float?)GetFieldValue(124, 0, Fit.SubfieldIndexMainField);
  2075. }
  2076. /// <summary>
  2077. /// Set EnhancedAvgSpeed field
  2078. /// Units: m/s
  2079. /// Comment: total_distance / total_timer_time</summary>
  2080. /// <param name="enhancedAvgSpeed_">Nullable field value to be set</param>
  2081. public void SetEnhancedAvgSpeed(float? enhancedAvgSpeed_)
  2082. {
  2083. SetFieldValue(124, 0, enhancedAvgSpeed_, Fit.SubfieldIndexMainField);
  2084. }
  2085. ///<summary>
  2086. /// Retrieves the EnhancedMaxSpeed field
  2087. /// Units: m/s</summary>
  2088. /// <returns>Returns nullable float representing the EnhancedMaxSpeed field</returns>
  2089. public float? GetEnhancedMaxSpeed()
  2090. {
  2091. return (float?)GetFieldValue(125, 0, Fit.SubfieldIndexMainField);
  2092. }
  2093. /// <summary>
  2094. /// Set EnhancedMaxSpeed field
  2095. /// Units: m/s</summary>
  2096. /// <param name="enhancedMaxSpeed_">Nullable field value to be set</param>
  2097. public void SetEnhancedMaxSpeed(float? enhancedMaxSpeed_)
  2098. {
  2099. SetFieldValue(125, 0, enhancedMaxSpeed_, Fit.SubfieldIndexMainField);
  2100. }
  2101. ///<summary>
  2102. /// Retrieves the EnhancedAvgAltitude field
  2103. /// Units: m</summary>
  2104. /// <returns>Returns nullable float representing the EnhancedAvgAltitude field</returns>
  2105. public float? GetEnhancedAvgAltitude()
  2106. {
  2107. return (float?)GetFieldValue(126, 0, Fit.SubfieldIndexMainField);
  2108. }
  2109. /// <summary>
  2110. /// Set EnhancedAvgAltitude field
  2111. /// Units: m</summary>
  2112. /// <param name="enhancedAvgAltitude_">Nullable field value to be set</param>
  2113. public void SetEnhancedAvgAltitude(float? enhancedAvgAltitude_)
  2114. {
  2115. SetFieldValue(126, 0, enhancedAvgAltitude_, Fit.SubfieldIndexMainField);
  2116. }
  2117. ///<summary>
  2118. /// Retrieves the EnhancedMinAltitude field
  2119. /// Units: m</summary>
  2120. /// <returns>Returns nullable float representing the EnhancedMinAltitude field</returns>
  2121. public float? GetEnhancedMinAltitude()
  2122. {
  2123. return (float?)GetFieldValue(127, 0, Fit.SubfieldIndexMainField);
  2124. }
  2125. /// <summary>
  2126. /// Set EnhancedMinAltitude field
  2127. /// Units: m</summary>
  2128. /// <param name="enhancedMinAltitude_">Nullable field value to be set</param>
  2129. public void SetEnhancedMinAltitude(float? enhancedMinAltitude_)
  2130. {
  2131. SetFieldValue(127, 0, enhancedMinAltitude_, Fit.SubfieldIndexMainField);
  2132. }
  2133. ///<summary>
  2134. /// Retrieves the EnhancedMaxAltitude field
  2135. /// Units: m</summary>
  2136. /// <returns>Returns nullable float representing the EnhancedMaxAltitude field</returns>
  2137. public float? GetEnhancedMaxAltitude()
  2138. {
  2139. return (float?)GetFieldValue(128, 0, Fit.SubfieldIndexMainField);
  2140. }
  2141. /// <summary>
  2142. /// Set EnhancedMaxAltitude field
  2143. /// Units: m</summary>
  2144. /// <param name="enhancedMaxAltitude_">Nullable field value to be set</param>
  2145. public void SetEnhancedMaxAltitude(float? enhancedMaxAltitude_)
  2146. {
  2147. SetFieldValue(128, 0, enhancedMaxAltitude_, Fit.SubfieldIndexMainField);
  2148. }
  2149. ///<summary>
  2150. /// Retrieves the AvgLevMotorPower field
  2151. /// Units: watts
  2152. /// Comment: lev average motor power during session</summary>
  2153. /// <returns>Returns nullable ushort representing the AvgLevMotorPower field</returns>
  2154. public ushort? GetAvgLevMotorPower()
  2155. {
  2156. return (ushort?)GetFieldValue(129, 0, Fit.SubfieldIndexMainField);
  2157. }
  2158. /// <summary>
  2159. /// Set AvgLevMotorPower field
  2160. /// Units: watts
  2161. /// Comment: lev average motor power during session</summary>
  2162. /// <param name="avgLevMotorPower_">Nullable field value to be set</param>
  2163. public void SetAvgLevMotorPower(ushort? avgLevMotorPower_)
  2164. {
  2165. SetFieldValue(129, 0, avgLevMotorPower_, Fit.SubfieldIndexMainField);
  2166. }
  2167. ///<summary>
  2168. /// Retrieves the MaxLevMotorPower field
  2169. /// Units: watts
  2170. /// Comment: lev maximum motor power during session</summary>
  2171. /// <returns>Returns nullable ushort representing the MaxLevMotorPower field</returns>
  2172. public ushort? GetMaxLevMotorPower()
  2173. {
  2174. return (ushort?)GetFieldValue(130, 0, Fit.SubfieldIndexMainField);
  2175. }
  2176. /// <summary>
  2177. /// Set MaxLevMotorPower field
  2178. /// Units: watts
  2179. /// Comment: lev maximum motor power during session</summary>
  2180. /// <param name="maxLevMotorPower_">Nullable field value to be set</param>
  2181. public void SetMaxLevMotorPower(ushort? maxLevMotorPower_)
  2182. {
  2183. SetFieldValue(130, 0, maxLevMotorPower_, Fit.SubfieldIndexMainField);
  2184. }
  2185. ///<summary>
  2186. /// Retrieves the LevBatteryConsumption field
  2187. /// Units: percent
  2188. /// Comment: lev battery consumption during session</summary>
  2189. /// <returns>Returns nullable float representing the LevBatteryConsumption field</returns>
  2190. public float? GetLevBatteryConsumption()
  2191. {
  2192. return (float?)GetFieldValue(131, 0, Fit.SubfieldIndexMainField);
  2193. }
  2194. /// <summary>
  2195. /// Set LevBatteryConsumption field
  2196. /// Units: percent
  2197. /// Comment: lev battery consumption during session</summary>
  2198. /// <param name="levBatteryConsumption_">Nullable field value to be set</param>
  2199. public void SetLevBatteryConsumption(float? levBatteryConsumption_)
  2200. {
  2201. SetFieldValue(131, 0, levBatteryConsumption_, Fit.SubfieldIndexMainField);
  2202. }
  2203. #endregion // Methods
  2204. } // Class
  2205. } // namespace