123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- #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
- {
- /// <summary>
- /// Implements the Capabilities profile message.
- /// </summary>
- public class CapabilitiesMesg : Mesg
- {
- #region Fields
- #endregion
- #region Constructors
- public CapabilitiesMesg() : base(Profile.GetMesg(MesgNum.Capabilities))
- {
- }
- public CapabilitiesMesg(Mesg mesg) : base(mesg)
- {
- }
- #endregion // Constructors
- #region Methods
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field Languages</returns>
- public int GetNumLanguages()
- {
- return GetNumFieldValues(0, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the Languages field
- /// Comment: Use language_bits_x types where x is index of array.</summary>
- /// <param name="index">0 based index of Languages element to retrieve</param>
- /// <returns>Returns nullable byte representing the Languages field</returns>
- public byte? GetLanguages(int index)
- {
- return (byte?)GetFieldValue(0, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set Languages field
- /// Comment: Use language_bits_x types where x is index of array.</summary>
- /// <param name="index">0 based index of languages</param>
- /// <param name="languages_">Nullable field value to be set</param>
- public void SetLanguages(int index, byte? languages_)
- {
- SetFieldValue(0, index, languages_, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- ///
- /// </summary>
- /// <returns>returns number of elements in field Sports</returns>
- public int GetNumSports()
- {
- return GetNumFieldValues(1, Fit.SubfieldIndexMainField);
- }
- ///<summary>
- /// Retrieves the Sports field
- /// Comment: Use sport_bits_x types where x is index of array.</summary>
- /// <param name="index">0 based index of Sports element to retrieve</param>
- /// <returns>Returns nullable byte representing the Sports field</returns>
- public byte? GetSports(int index)
- {
- return (byte?)GetFieldValue(1, index, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set Sports field
- /// Comment: Use sport_bits_x types where x is index of array.</summary>
- /// <param name="index">0 based index of sports</param>
- /// <param name="sports_">Nullable field value to be set</param>
- public void SetSports(int index, byte? sports_)
- {
- SetFieldValue(1, index, sports_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the WorkoutsSupported field</summary>
- /// <returns>Returns nullable uint representing the WorkoutsSupported field</returns>
- public uint? GetWorkoutsSupported()
- {
- return (uint?)GetFieldValue(21, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set WorkoutsSupported field</summary>
- /// <param name="workoutsSupported_">Nullable field value to be set</param>
- public void SetWorkoutsSupported(uint? workoutsSupported_)
- {
- SetFieldValue(21, 0, workoutsSupported_, Fit.SubfieldIndexMainField);
- }
-
- ///<summary>
- /// Retrieves the ConnectivitySupported field</summary>
- /// <returns>Returns nullable uint representing the ConnectivitySupported field</returns>
- public uint? GetConnectivitySupported()
- {
- return (uint?)GetFieldValue(23, 0, Fit.SubfieldIndexMainField);
- }
-
-
- /// <summary>
- /// Set ConnectivitySupported field</summary>
- /// <param name="connectivitySupported_">Nullable field value to be set</param>
- public void SetConnectivitySupported(uint? connectivitySupported_)
- {
- SetFieldValue(23, 0, connectivitySupported_, Fit.SubfieldIndexMainField);
- }
-
- #endregion // Methods
- } // Class
- } // namespace
|