#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 MesgCapabilities profile message.
///
public class MesgCapabilitiesMesg : Mesg
{
#region Fields
static class CountSubfield
{
public static ushort NumPerFile = 0;
public static ushort MaxPerFile = 1;
public static ushort MaxPerFileType = 2;
public static ushort Subfields = 3;
public static ushort Active = Fit.SubfieldIndexActiveSubfield;
public static ushort MainField = Fit.SubfieldIndexMainField;
}
#endregion
#region Constructors
public MesgCapabilitiesMesg() : base(Profile.GetMesg(MesgNum.MesgCapabilities))
{
}
public MesgCapabilitiesMesg(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 CountType field
/// Returns nullable MesgCount enum representing the CountType field
public MesgCount? GetCountType()
{
object obj = GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
MesgCount? value = obj == null ? (MesgCount?)null : (MesgCount)obj;
return value;
}
///
/// Set CountType field
/// Nullable field value to be set
public void SetCountType(MesgCount? countType_)
{
SetFieldValue(2, 0, countType_, 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);
}
///
/// Retrieves the NumPerFile subfield
/// Nullable ushort representing the NumPerFile subfield
public ushort? GetNumPerFile()
{
return (ushort?)GetFieldValue(3, 0, CountSubfield.NumPerFile);
}
///
///
/// Set NumPerFile subfield
/// Subfield value to be set
public void SetNumPerFile(ushort? numPerFile)
{
SetFieldValue(3, 0, numPerFile, CountSubfield.NumPerFile);
}
///
/// Retrieves the MaxPerFile subfield
/// Nullable ushort representing the MaxPerFile subfield
public ushort? GetMaxPerFile()
{
return (ushort?)GetFieldValue(3, 0, CountSubfield.MaxPerFile);
}
///
///
/// Set MaxPerFile subfield
/// Subfield value to be set
public void SetMaxPerFile(ushort? maxPerFile)
{
SetFieldValue(3, 0, maxPerFile, CountSubfield.MaxPerFile);
}
///
/// Retrieves the MaxPerFileType subfield
/// Nullable ushort representing the MaxPerFileType subfield
public ushort? GetMaxPerFileType()
{
return (ushort?)GetFieldValue(3, 0, CountSubfield.MaxPerFileType);
}
///
///
/// Set MaxPerFileType subfield
/// Subfield value to be set
public void SetMaxPerFileType(ushort? maxPerFileType)
{
SetFieldValue(3, 0, maxPerFileType, CountSubfield.MaxPerFileType);
}
#endregion // Methods
} // Class
} // namespace