MemoGlobMesg.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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 MemoGlob profile message.
  27. /// </summary>
  28. public class MemoGlobMesg : Mesg
  29. {
  30. #region Fields
  31. #endregion
  32. #region Constructors
  33. public MemoGlobMesg() : base(Profile.GetMesg(MesgNum.MemoGlob))
  34. {
  35. }
  36. public MemoGlobMesg(Mesg mesg) : base(mesg)
  37. {
  38. }
  39. #endregion // Constructors
  40. #region Methods
  41. ///<summary>
  42. /// Retrieves the PartIndex field
  43. /// Comment: Sequence number of memo blocks</summary>
  44. /// <returns>Returns nullable uint representing the PartIndex field</returns>
  45. public uint? GetPartIndex()
  46. {
  47. return (uint?)GetFieldValue(250, 0, Fit.SubfieldIndexMainField);
  48. }
  49. /// <summary>
  50. /// Set PartIndex field
  51. /// Comment: Sequence number of memo blocks</summary>
  52. /// <param name="partIndex_">Nullable field value to be set</param>
  53. public void SetPartIndex(uint? partIndex_)
  54. {
  55. SetFieldValue(250, 0, partIndex_, Fit.SubfieldIndexMainField);
  56. }
  57. /// <summary>
  58. ///
  59. /// </summary>
  60. /// <returns>returns number of elements in field Memo</returns>
  61. public int GetNumMemo()
  62. {
  63. return GetNumFieldValues(0, Fit.SubfieldIndexMainField);
  64. }
  65. ///<summary>
  66. /// Retrieves the Memo field
  67. /// Comment: Block of utf8 bytes </summary>
  68. /// <param name="index">0 based index of Memo element to retrieve</param>
  69. /// <returns>Returns nullable byte representing the Memo field</returns>
  70. public byte? GetMemo(int index)
  71. {
  72. return (byte?)GetFieldValue(0, index, Fit.SubfieldIndexMainField);
  73. }
  74. /// <summary>
  75. /// Set Memo field
  76. /// Comment: Block of utf8 bytes </summary>
  77. /// <param name="index">0 based index of memo</param>
  78. /// <param name="memo_">Nullable field value to be set</param>
  79. public void SetMemo(int index, byte? memo_)
  80. {
  81. SetFieldValue(0, index, memo_, Fit.SubfieldIndexMainField);
  82. }
  83. ///<summary>
  84. /// Retrieves the MessageNumber field
  85. /// Comment: Allows relating glob to another mesg If used only required for first part of each memo_glob</summary>
  86. /// <returns>Returns nullable ushort representing the MessageNumber field</returns>
  87. public ushort? GetMessageNumber()
  88. {
  89. return (ushort?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
  90. }
  91. /// <summary>
  92. /// Set MessageNumber field
  93. /// Comment: Allows relating glob to another mesg If used only required for first part of each memo_glob</summary>
  94. /// <param name="messageNumber_">Nullable field value to be set</param>
  95. public void SetMessageNumber(ushort? messageNumber_)
  96. {
  97. SetFieldValue(1, 0, messageNumber_, Fit.SubfieldIndexMainField);
  98. }
  99. ///<summary>
  100. /// Retrieves the MessageIndex field
  101. /// Comment: Index of external mesg</summary>
  102. /// <returns>Returns nullable ushort representing the MessageIndex field</returns>
  103. public ushort? GetMessageIndex()
  104. {
  105. return (ushort?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
  106. }
  107. /// <summary>
  108. /// Set MessageIndex field
  109. /// Comment: Index of external mesg</summary>
  110. /// <param name="messageIndex_">Nullable field value to be set</param>
  111. public void SetMessageIndex(ushort? messageIndex_)
  112. {
  113. SetFieldValue(2, 0, messageIndex_, Fit.SubfieldIndexMainField);
  114. }
  115. #endregion // Methods
  116. } // Class
  117. } // namespace