CapabilitiesMesg.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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 Capabilities profile message.
  27. /// </summary>
  28. public class CapabilitiesMesg : Mesg
  29. {
  30. #region Fields
  31. #endregion
  32. #region Constructors
  33. public CapabilitiesMesg() : base(Profile.GetMesg(MesgNum.Capabilities))
  34. {
  35. }
  36. public CapabilitiesMesg(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 Languages</returns>
  45. public int GetNumLanguages()
  46. {
  47. return GetNumFieldValues(0, Fit.SubfieldIndexMainField);
  48. }
  49. ///<summary>
  50. /// Retrieves the Languages field
  51. /// Comment: Use language_bits_x types where x is index of array.</summary>
  52. /// <param name="index">0 based index of Languages element to retrieve</param>
  53. /// <returns>Returns nullable byte representing the Languages field</returns>
  54. public byte? GetLanguages(int index)
  55. {
  56. return (byte?)GetFieldValue(0, index, Fit.SubfieldIndexMainField);
  57. }
  58. /// <summary>
  59. /// Set Languages field
  60. /// Comment: Use language_bits_x types where x is index of array.</summary>
  61. /// <param name="index">0 based index of languages</param>
  62. /// <param name="languages_">Nullable field value to be set</param>
  63. public void SetLanguages(int index, byte? languages_)
  64. {
  65. SetFieldValue(0, index, languages_, Fit.SubfieldIndexMainField);
  66. }
  67. /// <summary>
  68. ///
  69. /// </summary>
  70. /// <returns>returns number of elements in field Sports</returns>
  71. public int GetNumSports()
  72. {
  73. return GetNumFieldValues(1, Fit.SubfieldIndexMainField);
  74. }
  75. ///<summary>
  76. /// Retrieves the Sports field
  77. /// Comment: Use sport_bits_x types where x is index of array.</summary>
  78. /// <param name="index">0 based index of Sports element to retrieve</param>
  79. /// <returns>Returns nullable byte representing the Sports field</returns>
  80. public byte? GetSports(int index)
  81. {
  82. return (byte?)GetFieldValue(1, index, Fit.SubfieldIndexMainField);
  83. }
  84. /// <summary>
  85. /// Set Sports field
  86. /// Comment: Use sport_bits_x types where x is index of array.</summary>
  87. /// <param name="index">0 based index of sports</param>
  88. /// <param name="sports_">Nullable field value to be set</param>
  89. public void SetSports(int index, byte? sports_)
  90. {
  91. SetFieldValue(1, index, sports_, Fit.SubfieldIndexMainField);
  92. }
  93. ///<summary>
  94. /// Retrieves the WorkoutsSupported field</summary>
  95. /// <returns>Returns nullable uint representing the WorkoutsSupported field</returns>
  96. public uint? GetWorkoutsSupported()
  97. {
  98. return (uint?)GetFieldValue(21, 0, Fit.SubfieldIndexMainField);
  99. }
  100. /// <summary>
  101. /// Set WorkoutsSupported field</summary>
  102. /// <param name="workoutsSupported_">Nullable field value to be set</param>
  103. public void SetWorkoutsSupported(uint? workoutsSupported_)
  104. {
  105. SetFieldValue(21, 0, workoutsSupported_, Fit.SubfieldIndexMainField);
  106. }
  107. ///<summary>
  108. /// Retrieves the ConnectivitySupported field</summary>
  109. /// <returns>Returns nullable uint representing the ConnectivitySupported field</returns>
  110. public uint? GetConnectivitySupported()
  111. {
  112. return (uint?)GetFieldValue(23, 0, Fit.SubfieldIndexMainField);
  113. }
  114. /// <summary>
  115. /// Set ConnectivitySupported field</summary>
  116. /// <param name="connectivitySupported_">Nullable field value to be set</param>
  117. public void SetConnectivitySupported(uint? connectivitySupported_)
  118. {
  119. SetFieldValue(23, 0, connectivitySupported_, Fit.SubfieldIndexMainField);
  120. }
  121. #endregion // Methods
  122. } // Class
  123. } // namespace