#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 DeviceSettings profile message. /// public class DeviceSettingsMesg : Mesg { #region Fields #endregion #region Constructors public DeviceSettingsMesg() : base(Profile.GetMesg(MesgNum.DeviceSettings)) { } public DeviceSettingsMesg(Mesg mesg) : base(mesg) { } #endregion // Constructors #region Methods /// /// Retrieves the ActiveTimeZone field /// Comment: Index into time zone arrays. /// Returns nullable byte representing the ActiveTimeZone field public byte? GetActiveTimeZone() { return (byte?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField); } /// /// Set ActiveTimeZone field /// Comment: Index into time zone arrays. /// Nullable field value to be set public void SetActiveTimeZone(byte? activeTimeZone_) { SetFieldValue(0, 0, activeTimeZone_, Fit.SubfieldIndexMainField); } /// /// Retrieves the UtcOffset field /// Comment: Offset from system time. Required to convert timestamp from system time to UTC. /// Returns nullable uint representing the UtcOffset field public uint? GetUtcOffset() { return (uint?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField); } /// /// Set UtcOffset field /// Comment: Offset from system time. Required to convert timestamp from system time to UTC. /// Nullable field value to be set public void SetUtcOffset(uint? utcOffset_) { SetFieldValue(1, 0, utcOffset_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field TimeOffset public int GetNumTimeOffset() { return GetNumFieldValues(2, Fit.SubfieldIndexMainField); } /// /// Retrieves the TimeOffset field /// Units: s /// Comment: Offset from system time. /// 0 based index of TimeOffset element to retrieve /// Returns nullable uint representing the TimeOffset field public uint? GetTimeOffset(int index) { return (uint?)GetFieldValue(2, index, Fit.SubfieldIndexMainField); } /// /// Set TimeOffset field /// Units: s /// Comment: Offset from system time. /// 0 based index of time_offset /// Nullable field value to be set public void SetTimeOffset(int index, uint? timeOffset_) { SetFieldValue(2, index, timeOffset_, Fit.SubfieldIndexMainField); } /// /// /// /// returns number of elements in field TimeZoneOffset public int GetNumTimeZoneOffset() { return GetNumFieldValues(5, Fit.SubfieldIndexMainField); } /// /// Retrieves the TimeZoneOffset field /// Units: hr /// Comment: timezone offset in 1/4 hour increments /// 0 based index of TimeZoneOffset element to retrieve /// Returns nullable float representing the TimeZoneOffset field public float? GetTimeZoneOffset(int index) { return (float?)GetFieldValue(5, index, Fit.SubfieldIndexMainField); } /// /// Set TimeZoneOffset field /// Units: hr /// Comment: timezone offset in 1/4 hour increments /// 0 based index of time_zone_offset /// Nullable field value to be set public void SetTimeZoneOffset(int index, float? timeZoneOffset_) { SetFieldValue(5, index, timeZoneOffset_, Fit.SubfieldIndexMainField); } #endregion // Methods } // Class } // namespace