VideoClipMesg.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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 VideoClip profile message.
  27. /// </summary>
  28. public class VideoClipMesg : Mesg
  29. {
  30. #region Fields
  31. #endregion
  32. #region Constructors
  33. public VideoClipMesg() : base(Profile.GetMesg(MesgNum.VideoClip))
  34. {
  35. }
  36. public VideoClipMesg(Mesg mesg) : base(mesg)
  37. {
  38. }
  39. #endregion // Constructors
  40. #region Methods
  41. ///<summary>
  42. /// Retrieves the ClipNumber field</summary>
  43. /// <returns>Returns nullable ushort representing the ClipNumber field</returns>
  44. public ushort? GetClipNumber()
  45. {
  46. return (ushort?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
  47. }
  48. /// <summary>
  49. /// Set ClipNumber field</summary>
  50. /// <param name="clipNumber_">Nullable field value to be set</param>
  51. public void SetClipNumber(ushort? clipNumber_)
  52. {
  53. SetFieldValue(0, 0, clipNumber_, Fit.SubfieldIndexMainField);
  54. }
  55. ///<summary>
  56. /// Retrieves the StartTimestamp field</summary>
  57. /// <returns>Returns DateTime representing the StartTimestamp field</returns>
  58. public DateTime GetStartTimestamp()
  59. {
  60. return TimestampToDateTime((uint?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField));
  61. }
  62. /// <summary>
  63. /// Set StartTimestamp field</summary>
  64. /// <param name="startTimestamp_">Nullable field value to be set</param>
  65. public void SetStartTimestamp(DateTime startTimestamp_)
  66. {
  67. SetFieldValue(1, 0, startTimestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
  68. }
  69. ///<summary>
  70. /// Retrieves the StartTimestampMs field</summary>
  71. /// <returns>Returns nullable ushort representing the StartTimestampMs field</returns>
  72. public ushort? GetStartTimestampMs()
  73. {
  74. return (ushort?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
  75. }
  76. /// <summary>
  77. /// Set StartTimestampMs field</summary>
  78. /// <param name="startTimestampMs_">Nullable field value to be set</param>
  79. public void SetStartTimestampMs(ushort? startTimestampMs_)
  80. {
  81. SetFieldValue(2, 0, startTimestampMs_, Fit.SubfieldIndexMainField);
  82. }
  83. ///<summary>
  84. /// Retrieves the EndTimestamp field</summary>
  85. /// <returns>Returns DateTime representing the EndTimestamp field</returns>
  86. public DateTime GetEndTimestamp()
  87. {
  88. return TimestampToDateTime((uint?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField));
  89. }
  90. /// <summary>
  91. /// Set EndTimestamp field</summary>
  92. /// <param name="endTimestamp_">Nullable field value to be set</param>
  93. public void SetEndTimestamp(DateTime endTimestamp_)
  94. {
  95. SetFieldValue(3, 0, endTimestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
  96. }
  97. ///<summary>
  98. /// Retrieves the EndTimestampMs field</summary>
  99. /// <returns>Returns nullable ushort representing the EndTimestampMs field</returns>
  100. public ushort? GetEndTimestampMs()
  101. {
  102. return (ushort?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
  103. }
  104. /// <summary>
  105. /// Set EndTimestampMs field</summary>
  106. /// <param name="endTimestampMs_">Nullable field value to be set</param>
  107. public void SetEndTimestampMs(ushort? endTimestampMs_)
  108. {
  109. SetFieldValue(4, 0, endTimestampMs_, Fit.SubfieldIndexMainField);
  110. }
  111. ///<summary>
  112. /// Retrieves the ClipStart field
  113. /// Units: ms
  114. /// Comment: Start of clip in video time</summary>
  115. /// <returns>Returns nullable uint representing the ClipStart field</returns>
  116. public uint? GetClipStart()
  117. {
  118. return (uint?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
  119. }
  120. /// <summary>
  121. /// Set ClipStart field
  122. /// Units: ms
  123. /// Comment: Start of clip in video time</summary>
  124. /// <param name="clipStart_">Nullable field value to be set</param>
  125. public void SetClipStart(uint? clipStart_)
  126. {
  127. SetFieldValue(6, 0, clipStart_, Fit.SubfieldIndexMainField);
  128. }
  129. ///<summary>
  130. /// Retrieves the ClipEnd field
  131. /// Units: ms
  132. /// Comment: End of clip in video time</summary>
  133. /// <returns>Returns nullable uint representing the ClipEnd field</returns>
  134. public uint? GetClipEnd()
  135. {
  136. return (uint?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
  137. }
  138. /// <summary>
  139. /// Set ClipEnd field
  140. /// Units: ms
  141. /// Comment: End of clip in video time</summary>
  142. /// <param name="clipEnd_">Nullable field value to be set</param>
  143. public void SetClipEnd(uint? clipEnd_)
  144. {
  145. SetFieldValue(7, 0, clipEnd_, Fit.SubfieldIndexMainField);
  146. }
  147. #endregion // Methods
  148. } // Class
  149. } // namespace