#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 BloodPressure profile message.
///
public class BloodPressureMesg : Mesg
{
#region Fields
#endregion
#region Constructors
public BloodPressureMesg() : base(Profile.GetMesg(MesgNum.BloodPressure))
{
}
public BloodPressureMesg(Mesg mesg) : base(mesg)
{
}
#endregion // Constructors
#region Methods
///
/// Retrieves the Timestamp field
/// Units: s
/// Returns DateTime representing the Timestamp field
public DateTime GetTimestamp()
{
return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField));
}
///
/// Set Timestamp field
/// Units: s
/// Nullable field value to be set
public void SetTimestamp(DateTime timestamp_)
{
SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SystolicPressure field
/// Units: mmHg
/// Returns nullable ushort representing the SystolicPressure field
public ushort? GetSystolicPressure()
{
return (ushort?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
}
///
/// Set SystolicPressure field
/// Units: mmHg
/// Nullable field value to be set
public void SetSystolicPressure(ushort? systolicPressure_)
{
SetFieldValue(0, 0, systolicPressure_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the DiastolicPressure field
/// Units: mmHg
/// Returns nullable ushort representing the DiastolicPressure field
public ushort? GetDiastolicPressure()
{
return (ushort?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
}
///
/// Set DiastolicPressure field
/// Units: mmHg
/// Nullable field value to be set
public void SetDiastolicPressure(ushort? diastolicPressure_)
{
SetFieldValue(1, 0, diastolicPressure_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MeanArterialPressure field
/// Units: mmHg
/// Returns nullable ushort representing the MeanArterialPressure field
public ushort? GetMeanArterialPressure()
{
return (ushort?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MeanArterialPressure field
/// Units: mmHg
/// Nullable field value to be set
public void SetMeanArterialPressure(ushort? meanArterialPressure_)
{
SetFieldValue(2, 0, meanArterialPressure_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Map3SampleMean field
/// Units: mmHg
/// Returns nullable ushort representing the Map3SampleMean field
public ushort? GetMap3SampleMean()
{
return (ushort?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Map3SampleMean field
/// Units: mmHg
/// Nullable field value to be set
public void SetMap3SampleMean(ushort? map3SampleMean_)
{
SetFieldValue(3, 0, map3SampleMean_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MapMorningValues field
/// Units: mmHg
/// Returns nullable ushort representing the MapMorningValues field
public ushort? GetMapMorningValues()
{
return (ushort?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MapMorningValues field
/// Units: mmHg
/// Nullable field value to be set
public void SetMapMorningValues(ushort? mapMorningValues_)
{
SetFieldValue(4, 0, mapMorningValues_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MapEveningValues field
/// Units: mmHg
/// Returns nullable ushort representing the MapEveningValues field
public ushort? GetMapEveningValues()
{
return (ushort?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MapEveningValues field
/// Units: mmHg
/// Nullable field value to be set
public void SetMapEveningValues(ushort? mapEveningValues_)
{
SetFieldValue(5, 0, mapEveningValues_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the HeartRate field
/// Units: bpm
/// Returns nullable byte representing the HeartRate field
public byte? GetHeartRate()
{
return (byte?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
}
///
/// Set HeartRate field
/// Units: bpm
/// Nullable field value to be set
public void SetHeartRate(byte? heartRate_)
{
SetFieldValue(6, 0, heartRate_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the HeartRateType field
/// Returns nullable HrType enum representing the HeartRateType field
public HrType? GetHeartRateType()
{
object obj = GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
HrType? value = obj == null ? (HrType?)null : (HrType)obj;
return value;
}
///
/// Set HeartRateType field
/// Nullable field value to be set
public void SetHeartRateType(HrType? heartRateType_)
{
SetFieldValue(7, 0, heartRateType_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Status field
/// Returns nullable BpStatus enum representing the Status field
public BpStatus? GetStatus()
{
object obj = GetFieldValue(8, 0, Fit.SubfieldIndexMainField);
BpStatus? value = obj == null ? (BpStatus?)null : (BpStatus)obj;
return value;
}
///
/// Set Status field
/// Nullable field value to be set
public void SetStatus(BpStatus? status_)
{
SetFieldValue(8, 0, status_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the UserProfileIndex field
/// Comment: Associates this blood pressure message to a user. This corresponds to the index of the user profile message in the blood pressure file.
/// Returns nullable ushort representing the UserProfileIndex field
public ushort? GetUserProfileIndex()
{
return (ushort?)GetFieldValue(9, 0, Fit.SubfieldIndexMainField);
}
///
/// Set UserProfileIndex field
/// Comment: Associates this blood pressure message to a user. This corresponds to the index of the user profile message in the blood pressure file.
/// Nullable field value to be set
public void SetUserProfileIndex(ushort? userProfileIndex_)
{
SetFieldValue(9, 0, userProfileIndex_, Fit.SubfieldIndexMainField);
}
#endregion // Methods
} // Class
} // namespace