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