#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 MonitoringInfo profile message. /// public class MonitoringInfoMesg : Mesg { #region Fields #endregion #region Constructors public MonitoringInfoMesg() : base(Profile.GetMesg(MesgNum.MonitoringInfo)) { } public MonitoringInfoMesg(Mesg mesg) : base(mesg) { } #endregion // Constructors #region Methods /// /// Retrieves the Timestamp field /// Units: s /// Returns DateTime representing the Timestamp field public DateTime GetTimestamp() { return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField)); } /// /// Set Timestamp field /// Units: s /// Nullable field value to be set public void SetTimestamp(DateTime timestamp_) { SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField); } /// /// Retrieves the LocalTimestamp field /// Units: s /// Comment: Use to convert activity timestamps to local time if device does not support time zone and daylight savings time correction. /// Returns nullable uint representing the LocalTimestamp field public uint? GetLocalTimestamp() { return (uint?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField); } /// /// Set LocalTimestamp field /// Units: s /// Comment: Use to convert activity timestamps to local time if device does not support time zone and daylight savings time correction. /// Nullable field value to be set public void SetLocalTimestamp(uint? localTimestamp_) { SetFieldValue(0, 0, localTimestamp_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field ActivityType public int GetNumActivityType() { return GetNumFieldValues(1, Fit.SubfieldIndexMainField); } /// /// Retrieves the ActivityType field /// 0 based index of ActivityType element to retrieve /// Returns nullable ActivityType enum representing the ActivityType field public ActivityType? GetActivityType(int index) { object obj = GetFieldValue(1, index, Fit.SubfieldIndexMainField); ActivityType? value = obj == null ? (ActivityType?)null : (ActivityType)obj; return value; } /// /// Set ActivityType field /// 0 based index of activity_type /// Nullable field value to be set public void SetActivityType(int index, ActivityType? activityType_) { SetFieldValue(1, index, activityType_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field CyclesToDistance public int GetNumCyclesToDistance() { return GetNumFieldValues(3, Fit.SubfieldIndexMainField); } /// /// Retrieves the CyclesToDistance field /// Units: m/cycle /// Comment: Indexed by activity_type /// 0 based index of CyclesToDistance element to retrieve /// Returns nullable float representing the CyclesToDistance field public float? GetCyclesToDistance(int index) { return (float?)GetFieldValue(3, index, Fit.SubfieldIndexMainField); } /// /// Set CyclesToDistance field /// Units: m/cycle /// Comment: Indexed by activity_type /// 0 based index of cycles_to_distance /// Nullable field value to be set public void SetCyclesToDistance(int index, float? cyclesToDistance_) { SetFieldValue(3, index, cyclesToDistance_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field CyclesToCalories public int GetNumCyclesToCalories() { return GetNumFieldValues(4, Fit.SubfieldIndexMainField); } /// /// Retrieves the CyclesToCalories field /// Units: kcal/cycle /// Comment: Indexed by activity_type /// 0 based index of CyclesToCalories element to retrieve /// Returns nullable float representing the CyclesToCalories field public float? GetCyclesToCalories(int index) { return (float?)GetFieldValue(4, index, Fit.SubfieldIndexMainField); } /// /// Set CyclesToCalories field /// Units: kcal/cycle /// Comment: Indexed by activity_type /// 0 based index of cycles_to_calories /// Nullable field value to be set public void SetCyclesToCalories(int index, float? cyclesToCalories_) { SetFieldValue(4, index, cyclesToCalories_, Fit.SubfieldIndexMainField); } /// /// Retrieves the RestingMetabolicRate field /// Units: kcal / day /// Returns nullable ushort representing the RestingMetabolicRate field public ushort? GetRestingMetabolicRate() { return (ushort?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField); } /// /// Set RestingMetabolicRate field /// Units: kcal / day /// Nullable field value to be set public void SetRestingMetabolicRate(ushort? restingMetabolicRate_) { SetFieldValue(5, 0, restingMetabolicRate_, Fit.SubfieldIndexMainField); } #endregion // Methods } // Class } // namespace