ExerciseSamplesData ExerciseSamplesData ExerciseSamplesData Class

Definition

The ExerciseSamplesData class is used to store and retrieve samples data for the ExerciseSamples class. It handles converting from a sample data format to the comma-separated format.

public class ExerciseSamplesData : Microsoft.Health.ItemTypes.Csv.OtherItemDataCsv
type ExerciseSamplesData = class
    inherit OtherItemDataCsv
Public Class ExerciseSamplesData
Inherits OtherItemDataCsv
Inheritance

Remarks

Data is represented as either an array of samples with a single value (such as heart rate), or an array of samples with two values (such as a GPS position). The SingleValuedSamples or TwoValuedSamples properties should be used as appropriate based on the stored data type.

The underlying format allows the sampling interval to be changed in the middle of a sample set. This class will detect sampling intervals that have changed, and insert appropriate escape values into the resulting data.

Constructors

ExerciseSamplesData() ExerciseSamplesData() ExerciseSamplesData()

Creates a new instance of the ExerciseSamplesData class.

ExerciseSamplesData(String, String, String) ExerciseSamplesData(String, String, String) ExerciseSamplesData(String, String, String)

Creates a new instance of the ExerciseSamplesData class with the specified data, encoding, and content type.

Properties

ContentEncoding ContentEncoding ContentEncoding

Gets or sets the content encoding of other data for the health record item.

(Inherited from OtherItemData)
ContentType ContentType ContentType

Gets or sets the MIME content type of other data for the health record item.

(Inherited from OtherItemData)
Data Data Data

Gets or sets the data.

(Inherited from OtherItemData)
SamplingInterval SamplingInterval SamplingInterval

Gets or sets the initial sampling interval for the set of samples.

SingleValuedSamples SingleValuedSamples SingleValuedSamples

Gets the sample data as a collection of single values.

TwoValuedSamples TwoValuedSamples TwoValuedSamples

Gets the sample data as a collection of two-valued samples.

Methods

GetAsDouble() GetAsDouble() GetAsDouble()

Parses the comma-delimited data into a series of double values.

(Inherited from OtherItemDataCsv)
GetAsString() GetAsString() GetAsString()

Parse the comma-separated representation into an array of strings.

(Inherited from OtherItemDataCsv)
ParseXml(XPathNavigator) ParseXml(XPathNavigator) ParseXml(XPathNavigator)

Populate the OtherItemData instance from the supplied XPathNavigator.

(Inherited from OtherItemData)
SetOtherData(IList<OtherItemDataCsvItem>) SetOtherData(IList<OtherItemDataCsvItem>) SetOtherData(IList<OtherItemDataCsvItem>)

Create the comma-delimited representation of a set of data and escapes.

(Inherited from OtherItemDataCsv)
WriteXml(XmlWriter) WriteXml(XmlWriter) WriteXml(XmlWriter)

Writes the exercise samples to the specified XmlWriter.

Applies to