#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 SegmentPoint profile message.
///
public class SegmentPointMesg : Mesg
{
#region Fields
#endregion
#region Constructors
public SegmentPointMesg() : base(Profile.GetMesg(MesgNum.SegmentPoint))
{
}
public SegmentPointMesg(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 PositionLat field
/// Units: semicircles
/// Returns nullable int representing the PositionLat field
public int? GetPositionLat()
{
return (int?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
}
///
/// Set PositionLat field
/// Units: semicircles
/// Nullable field value to be set
public void SetPositionLat(int? positionLat_)
{
SetFieldValue(1, 0, positionLat_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the PositionLong field
/// Units: semicircles
/// Returns nullable int representing the PositionLong field
public int? GetPositionLong()
{
return (int?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
}
///
/// Set PositionLong field
/// Units: semicircles
/// Nullable field value to be set
public void SetPositionLong(int? positionLong_)
{
SetFieldValue(2, 0, positionLong_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Distance field
/// Units: m
/// Comment: Accumulated distance along the segment at the described point
/// Returns nullable float representing the Distance field
public float? GetDistance()
{
return (float?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Distance field
/// Units: m
/// Comment: Accumulated distance along the segment at the described point
/// Nullable field value to be set
public void SetDistance(float? distance_)
{
SetFieldValue(3, 0, distance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Altitude field
/// Units: m
/// Comment: Accumulated altitude along the segment at the described point
/// Returns nullable float representing the Altitude field
public float? GetAltitude()
{
return (float?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Altitude field
/// Units: m
/// Comment: Accumulated altitude along the segment at the described point
/// Nullable field value to be set
public void SetAltitude(float? altitude_)
{
SetFieldValue(4, 0, altitude_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field LeaderTime
public int GetNumLeaderTime()
{
return GetNumFieldValues(5, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LeaderTime field
/// Units: s
/// Comment: Accumualted time each leader board member required to reach the described point. This value is zero for all leader board members at the starting point of the segment.
/// 0 based index of LeaderTime element to retrieve
/// Returns nullable float representing the LeaderTime field
public float? GetLeaderTime(int index)
{
return (float?)GetFieldValue(5, index, Fit.SubfieldIndexMainField);
}
///
/// Set LeaderTime field
/// Units: s
/// Comment: Accumualted time each leader board member required to reach the described point. This value is zero for all leader board members at the starting point of the segment.
/// 0 based index of leader_time
/// Nullable field value to be set
public void SetLeaderTime(int index, float? leaderTime_)
{
SetFieldValue(5, index, leaderTime_, Fit.SubfieldIndexMainField);
}
#endregion // Methods
} // Class
} // namespace