#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 TimestampCorrelation profile message. /// public class TimestampCorrelationMesg : Mesg { #region Fields #endregion #region Constructors public TimestampCorrelationMesg() : base(Profile.GetMesg(MesgNum.TimestampCorrelation)) { } public TimestampCorrelationMesg(Mesg mesg) : base(mesg) { } #endregion // Constructors #region Methods /// /// Retrieves the Timestamp field /// Units: s /// Comment: Whole second part of UTC timestamp at the time the system timestamp was recorded. /// Returns DateTime representing the Timestamp field public DateTime GetTimestamp() { return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField)); } /// /// Set Timestamp field /// Units: s /// Comment: Whole second part of UTC timestamp at the time the system timestamp was recorded. /// Nullable field value to be set public void SetTimestamp(DateTime timestamp_) { SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField); } /// /// Retrieves the FractionalTimestamp field /// Units: s /// Comment: Fractional part of the UTC timestamp at the time the system timestamp was recorded. /// Returns nullable float representing the FractionalTimestamp field public float? GetFractionalTimestamp() { return (float?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField); } /// /// Set FractionalTimestamp field /// Units: s /// Comment: Fractional part of the UTC timestamp at the time the system timestamp was recorded. /// Nullable field value to be set public void SetFractionalTimestamp(float? fractionalTimestamp_) { SetFieldValue(0, 0, fractionalTimestamp_, Fit.SubfieldIndexMainField); } /// /// Retrieves the SystemTimestamp field /// Units: s /// Comment: Whole second part of the system timestamp /// Returns DateTime representing the SystemTimestamp field public DateTime GetSystemTimestamp() { return TimestampToDateTime((uint?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField)); } /// /// Set SystemTimestamp field /// Units: s /// Comment: Whole second part of the system timestamp /// Nullable field value to be set public void SetSystemTimestamp(DateTime systemTimestamp_) { SetFieldValue(1, 0, systemTimestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField); } /// /// Retrieves the FractionalSystemTimestamp field /// Units: s /// Comment: Fractional part of the system timestamp /// Returns nullable float representing the FractionalSystemTimestamp field public float? GetFractionalSystemTimestamp() { return (float?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField); } /// /// Set FractionalSystemTimestamp field /// Units: s /// Comment: Fractional part of the system timestamp /// Nullable field value to be set public void SetFractionalSystemTimestamp(float? fractionalSystemTimestamp_) { SetFieldValue(2, 0, fractionalSystemTimestamp_, Fit.SubfieldIndexMainField); } /// /// Retrieves the LocalTimestamp field /// Units: s /// Comment: timestamp epoch expressed in local time used to convert timestamps to local time /// Returns nullable uint representing the LocalTimestamp field public uint? GetLocalTimestamp() { return (uint?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField); } /// /// Set LocalTimestamp field /// Units: s /// Comment: timestamp epoch expressed in local time used to convert timestamps to local time /// Nullable field value to be set public void SetLocalTimestamp(uint? localTimestamp_) { SetFieldValue(3, 0, localTimestamp_, Fit.SubfieldIndexMainField); } /// /// Retrieves the TimestampMs field /// Units: ms /// Comment: Millisecond part of the UTC timestamp at the time the system timestamp was recorded. /// Returns nullable ushort representing the TimestampMs field public ushort? GetTimestampMs() { return (ushort?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField); } /// /// Set TimestampMs field /// Units: ms /// Comment: Millisecond part of the UTC timestamp at the time the system timestamp was recorded. /// Nullable field value to be set public void SetTimestampMs(ushort? timestampMs_) { SetFieldValue(4, 0, timestampMs_, Fit.SubfieldIndexMainField); } /// /// Retrieves the SystemTimestampMs field /// Units: ms /// Comment: Millisecond part of the system timestamp /// Returns nullable ushort representing the SystemTimestampMs field public ushort? GetSystemTimestampMs() { return (ushort?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField); } /// /// Set SystemTimestampMs field /// Units: ms /// Comment: Millisecond part of the system timestamp /// Nullable field value to be set public void SetSystemTimestampMs(ushort? systemTimestampMs_) { SetFieldValue(5, 0, systemTimestampMs_, Fit.SubfieldIndexMainField); } #endregion // Methods } // Class } // namespace