#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 Software profile message.
///
public class SoftwareMesg : Mesg
{
#region Fields
#endregion
#region Constructors
public SoftwareMesg() : base(Profile.GetMesg(MesgNum.Software))
{
}
public SoftwareMesg(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 Version field
/// Returns nullable float representing the Version field
public float? GetVersion()
{
return (float?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Version field
/// Nullable field value to be set
public void SetVersion(float? version_)
{
SetFieldValue(3, 0, version_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the PartNumber field
/// Returns byte[] representing the PartNumber field
public byte[] GetPartNumber()
{
return (byte[])GetFieldValue(5, 0, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the PartNumber field
/// Returns String representing the PartNumber field
public String GetPartNumberAsString()
{
return Encoding.UTF8.GetString((byte[])GetFieldValue(5, 0, Fit.SubfieldIndexMainField));
}
///
/// Set PartNumber field
/// field value to be set
public void SetPartNumber(String partNumber_)
{
SetFieldValue(5, 0, System.Text.Encoding.UTF8.GetBytes(partNumber_), Fit.SubfieldIndexMainField);
}
///
/// Set PartNumber field
/// field value to be set
public void SetPartNumber(byte[] partNumber_)
{
SetFieldValue(5, 0, partNumber_, Fit.SubfieldIndexMainField);
}
#endregion // Methods
} // Class
} // namespace