#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 Hr profile message. /// public class HrMesg : Mesg { #region Fields #endregion #region Constructors public HrMesg() : base(Profile.GetMesg(MesgNum.Hr)) { } public HrMesg(Mesg mesg) : base(mesg) { } #endregion // Constructors #region Methods /// /// Retrieves the Timestamp field /// Returns DateTime representing the Timestamp field public DateTime GetTimestamp() { return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField)); } /// /// Set Timestamp field /// Nullable field value to be set public void SetTimestamp(DateTime timestamp_) { SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField); } /// /// Retrieves the FractionalTimestamp field /// Units: s /// Returns nullable float representing the FractionalTimestamp field public float? GetFractionalTimestamp() { return (float?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField); } /// /// Set FractionalTimestamp field /// Units: s /// Nullable field value to be set public void SetFractionalTimestamp(float? fractionalTimestamp_) { SetFieldValue(0, 0, fractionalTimestamp_, Fit.SubfieldIndexMainField); } /// /// Retrieves the Time256 field /// Units: s /// Returns nullable float representing the Time256 field public float? GetTime256() { return (float?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField); } /// /// Set Time256 field /// Units: s /// Nullable field value to be set public void SetTime256(float? time256_) { SetFieldValue(1, 0, time256_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field FilteredBpm public int GetNumFilteredBpm() { return GetNumFieldValues(6, Fit.SubfieldIndexMainField); } /// /// Retrieves the FilteredBpm field /// Units: bpm /// 0 based index of FilteredBpm element to retrieve /// Returns nullable byte representing the FilteredBpm field public byte? GetFilteredBpm(int index) { return (byte?)GetFieldValue(6, index, Fit.SubfieldIndexMainField); } /// /// Set FilteredBpm field /// Units: bpm /// 0 based index of filtered_bpm /// Nullable field value to be set public void SetFilteredBpm(int index, byte? filteredBpm_) { SetFieldValue(6, index, filteredBpm_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field EventTimestamp public int GetNumEventTimestamp() { return GetNumFieldValues(9, Fit.SubfieldIndexMainField); } /// /// Retrieves the EventTimestamp field /// Units: s /// 0 based index of EventTimestamp element to retrieve /// Returns nullable float representing the EventTimestamp field public float? GetEventTimestamp(int index) { return (float?)GetFieldValue(9, index, Fit.SubfieldIndexMainField); } /// /// Set EventTimestamp field /// Units: s /// 0 based index of event_timestamp /// Nullable field value to be set public void SetEventTimestamp(int index, float? eventTimestamp_) { SetFieldValue(9, index, eventTimestamp_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field EventTimestamp12 public int GetNumEventTimestamp12() { return GetNumFieldValues(10, Fit.SubfieldIndexMainField); } /// /// Retrieves the EventTimestamp12 field /// 0 based index of EventTimestamp12 element to retrieve /// Returns nullable byte representing the EventTimestamp12 field public byte? GetEventTimestamp12(int index) { return (byte?)GetFieldValue(10, index, Fit.SubfieldIndexMainField); } /// /// Set EventTimestamp12 field /// 0 based index of event_timestamp_12 /// Nullable field value to be set public void SetEventTimestamp12(int index, byte? eventTimestamp12_) { SetFieldValue(10, index, eventTimestamp12_, Fit.SubfieldIndexMainField); } #endregion // Methods } // Class } // namespace