HrvMesg.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 Hrv profile message.
  27. /// </summary>
  28. public class HrvMesg : Mesg
  29. {
  30. #region Fields
  31. #endregion
  32. #region Constructors
  33. public HrvMesg() : base(Profile.GetMesg(MesgNum.Hrv))
  34. {
  35. }
  36. public HrvMesg(Mesg mesg) : base(mesg)
  37. {
  38. }
  39. #endregion // Constructors
  40. #region Methods
  41. /// <summary>
  42. ///
  43. /// </summary>
  44. /// <returns>returns number of elements in field Time</returns>
  45. public int GetNumTime()
  46. {
  47. return GetNumFieldValues(0, Fit.SubfieldIndexMainField);
  48. }
  49. ///<summary>
  50. /// Retrieves the Time field
  51. /// Units: s
  52. /// Comment: Time between beats</summary>
  53. /// <param name="index">0 based index of Time element to retrieve</param>
  54. /// <returns>Returns nullable float representing the Time field</returns>
  55. public float? GetTime(int index)
  56. {
  57. return (float?)GetFieldValue(0, index, Fit.SubfieldIndexMainField);
  58. }
  59. /// <summary>
  60. /// Set Time field
  61. /// Units: s
  62. /// Comment: Time between beats</summary>
  63. /// <param name="index">0 based index of time</param>
  64. /// <param name="time_">Nullable field value to be set</param>
  65. public void SetTime(int index, float? time_)
  66. {
  67. SetFieldValue(0, index, time_, Fit.SubfieldIndexMainField);
  68. }
  69. #endregion // Methods
  70. } // Class
  71. } // namespace