#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
{
///
/// Implements the VideoClip profile message.
///
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
///
/// Retrieves the ClipNumber field
/// Returns nullable ushort representing the ClipNumber field
public ushort? GetClipNumber()
{
return (ushort?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
}
///
/// Set ClipNumber field
/// Nullable field value to be set
public void SetClipNumber(ushort? clipNumber_)
{
SetFieldValue(0, 0, clipNumber_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StartTimestamp field
/// Returns DateTime representing the StartTimestamp field
public DateTime GetStartTimestamp()
{
return TimestampToDateTime((uint?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField));
}
///
/// Set StartTimestamp field
/// Nullable field value to be set
public void SetStartTimestamp(DateTime startTimestamp_)
{
SetFieldValue(1, 0, startTimestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StartTimestampMs field
/// Returns nullable ushort representing the StartTimestampMs field
public ushort? GetStartTimestampMs()
{
return (ushort?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
}
///
/// Set StartTimestampMs field
/// Nullable field value to be set
public void SetStartTimestampMs(ushort? startTimestampMs_)
{
SetFieldValue(2, 0, startTimestampMs_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EndTimestamp field
/// Returns DateTime representing the EndTimestamp field
public DateTime GetEndTimestamp()
{
return TimestampToDateTime((uint?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField));
}
///
/// Set EndTimestamp field
/// Nullable field value to be set
public void SetEndTimestamp(DateTime endTimestamp_)
{
SetFieldValue(3, 0, endTimestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EndTimestampMs field
/// Returns nullable ushort representing the EndTimestampMs field
public ushort? GetEndTimestampMs()
{
return (ushort?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EndTimestampMs field
/// Nullable field value to be set
public void SetEndTimestampMs(ushort? endTimestampMs_)
{
SetFieldValue(4, 0, endTimestampMs_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the ClipStart field
/// Units: ms
/// Comment: Start of clip in video time
/// Returns nullable uint representing the ClipStart field
public uint? GetClipStart()
{
return (uint?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
}
///
/// Set ClipStart field
/// Units: ms
/// Comment: Start of clip in video time
/// Nullable field value to be set
public void SetClipStart(uint? clipStart_)
{
SetFieldValue(6, 0, clipStart_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the ClipEnd field
/// Units: ms
/// Comment: End of clip in video time
/// Returns nullable uint representing the ClipEnd field
public uint? GetClipEnd()
{
return (uint?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
}
///
/// Set ClipEnd field
/// Units: ms
/// Comment: End of clip in video time
/// Nullable field value to be set
public void SetClipEnd(uint? clipEnd_)
{
SetFieldValue(7, 0, clipEnd_, Fit.SubfieldIndexMainField);
}
#endregion // Methods
} // Class
} // namespace