#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 FieldCapabilities profile message.
///
public class FieldCapabilitiesMesg : Mesg
{
#region Fields
#endregion
#region Constructors
public FieldCapabilitiesMesg() : base(Profile.GetMesg(MesgNum.FieldCapabilities))
{
}
public FieldCapabilitiesMesg(Mesg mesg) : base(mesg)
{
}
#endregion // Constructors
#region Methods
///
/// Retrieves the MessageIndex field
/// Returns nullable ushort representing the MessageIndex field
public ushort? GetMessageIndex()
{
return (ushort?)GetFieldValue(254, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MessageIndex field
/// Nullable field value to be set
public void SetMessageIndex(ushort? messageIndex_)
{
SetFieldValue(254, 0, messageIndex_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the File field
/// Returns nullable File enum representing the File field
public File? GetFile()
{
object obj = GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
File? value = obj == null ? (File?)null : (File)obj;
return value;
}
///
/// Set File field
/// Nullable field value to be set
public void SetFile(File? file_)
{
SetFieldValue(0, 0, file_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MesgNum field
/// Returns nullable ushort representing the MesgNum field
public ushort? GetMesgNum()
{
return (ushort?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MesgNum field
/// Nullable field value to be set
public void SetMesgNum(ushort? mesgNum_)
{
SetFieldValue(1, 0, mesgNum_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the FieldNum field
/// Returns nullable byte representing the FieldNum field
public byte? GetFieldNum()
{
return (byte?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
}
///
/// Set FieldNum field
/// Nullable field value to be set
public void SetFieldNum(byte? fieldNum_)
{
SetFieldValue(2, 0, fieldNum_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Count field
/// Returns nullable ushort representing the Count field
public ushort? GetCount()
{
return (ushort?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Count field
/// Nullable field value to be set
public void SetCount(ushort? count_)
{
SetFieldValue(3, 0, count_, Fit.SubfieldIndexMainField);
}
#endregion // Methods
} // Class
} // namespace