123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- #region Copyright
- ////////////////////////////////////////////////////////////////////////////////
- // The following FIT Protocol software provided may be used with FIT protocol
- // devices only and remains the copyrighted property of Dynastream Innovations Inc.
- // The software is being provided on an "as-is" basis and as an accommodation,
- // and therefore all warranties, representations, or guarantees of any kind
- // (whether express, implied or statutory) including, without limitation,
- // warranties of merchantability, non-infringement, or fitness for a particular
- // purpose, are specifically disclaimed.
- //
- // Copyright 2016 Dynastream Innovations Inc.
- ////////////////////////////////////////////////////////////////////////////////
- // ****WARNING**** This file is auto-generated! Do NOT edit this file.
- // Profile Version = 16.60Release
- // Tag = production-akw-16.60.00-0-g5d3d436
- ////////////////////////////////////////////////////////////////////////////////
- #endregion
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Text;
- using System.IO;
- namespace Dynastream.Fit
- {
- /// <summary>
- /// Implements the VideoClip profile message.
- /// </summary>
- public class VideoClipMesg : Mesg
- {
- #region Fields
- #endregion
- #region Constructors
- public VideoClipMesg() : base(Profile.GetMesg(MesgNum.VideoClip))
- {
- }
- public VideoClipMesg(Mesg mesg) : base(mesg)
- {
- }
- #endregion // Constructors
- #region Methods
- ///<summary>
- /// Retrieves the ClipNumber field</summary>
- /// <returns>Returns nullable ushort representing the ClipNumber field</returns>
- public ushort? GetClipNumber()
- {
- return (ushort?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set ClipNumber field</summary>
- /// <param name="clipNumber_">Nullable field value to be set</param>
- public void SetClipNumber(ushort? clipNumber_)
- {
- SetFieldValue(0, 0, clipNumber_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the StartTimestamp field</summary>
- /// <returns>Returns DateTime representing the StartTimestamp field</returns>
- public DateTime GetStartTimestamp()
- {
- return TimestampToDateTime((uint?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField));
- }
-
-
- /// <summary>
- /// Set StartTimestamp field</summary>
- /// <param name="startTimestamp_">Nullable field value to be set</param>
- public void SetStartTimestamp(DateTime startTimestamp_)
- {
- SetFieldValue(1, 0, startTimestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the StartTimestampMs field</summary>
- /// <returns>Returns nullable ushort representing the StartTimestampMs field</returns>
- public ushort? GetStartTimestampMs()
- {
- return (ushort?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set StartTimestampMs field</summary>
- /// <param name="startTimestampMs_">Nullable field value to be set</param>
- public void SetStartTimestampMs(ushort? startTimestampMs_)
- {
- SetFieldValue(2, 0, startTimestampMs_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the EndTimestamp field</summary>
- /// <returns>Returns DateTime representing the EndTimestamp field</returns>
- public DateTime GetEndTimestamp()
- {
- return TimestampToDateTime((uint?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField));
- }
-
-
- /// <summary>
- /// Set EndTimestamp field</summary>
- /// <param name="endTimestamp_">Nullable field value to be set</param>
- public void SetEndTimestamp(DateTime endTimestamp_)
- {
- SetFieldValue(3, 0, endTimestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the EndTimestampMs field</summary>
- /// <returns>Returns nullable ushort representing the EndTimestampMs field</returns>
- public ushort? GetEndTimestampMs()
- {
- return (ushort?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set EndTimestampMs field</summary>
- /// <param name="endTimestampMs_">Nullable field value to be set</param>
- public void SetEndTimestampMs(ushort? endTimestampMs_)
- {
- SetFieldValue(4, 0, endTimestampMs_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the ClipStart field
- /// Units: ms
- /// Comment: Start of clip in video time</summary>
- /// <returns>Returns nullable uint representing the ClipStart field</returns>
- public uint? GetClipStart()
- {
- return (uint?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set ClipStart field
- /// Units: ms
- /// Comment: Start of clip in video time</summary>
- /// <param name="clipStart_">Nullable field value to be set</param>
- public void SetClipStart(uint? clipStart_)
- {
- SetFieldValue(6, 0, clipStart_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the ClipEnd field
- /// Units: ms
- /// Comment: End of clip in video time</summary>
- /// <returns>Returns nullable uint representing the ClipEnd field</returns>
- public uint? GetClipEnd()
- {
- return (uint?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set ClipEnd field
- /// Units: ms
- /// Comment: End of clip in video time</summary>
- /// <param name="clipEnd_">Nullable field value to be set</param>
- public void SetClipEnd(uint? clipEnd_)
- {
- SetFieldValue(7, 0, clipEnd_, Fit.SubfieldIndexMainField);
- }
-
- #endregion // Methods
- } // Class
- } // namespace
|