Show / Hide Table of Contents

Class DataSource

Data Source definition to track the origin of data.

Each health data point, regardless of the complexity or data model (whether a simple step count or a detailed sleep session) must retain information about its source of origin (e.g. the device or app that collected it).

Inheritance
object
DataSource
Implements
IMessage<DataSource>
IEquatable<DataSource>
IDeepCloneable<DataSource>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class DataSource : IMessage<DataSource>, IEquatable<DataSource>, IDeepCloneable<DataSource>, IBufferMessage, IMessage

Constructors

DataSource()

Declaration
public DataSource()

DataSource(DataSource)

Declaration
public DataSource(DataSource other)
Parameters
Type Name Description
DataSource other

Properties

Application

Output only. Captures metadata for the application that provided this data.

Declaration
public DataSource.Types.Application Application { get; set; }
Property Value
Type Description
DataSource.Types.Application

Device

Optional. Captures metadata for raw data points originating from devices. We expect this data source to be used for data points written on device sync.

Declaration
public DataSource.Types.Device Device { get; set; }
Property Value
Type Description
DataSource.Types.Device

Platform

Output only. Captures the platform that uploaded the data.

Declaration
public DataSource.Types.Platform Platform { get; set; }
Property Value
Type Description
DataSource.Types.Platform

RecordingMethod

Optional. Captures how the data was recorded.

Declaration
public DataSource.Types.RecordingMethod RecordingMethod { get; set; }
Property Value
Type Description
DataSource.Types.RecordingMethod
In this article
Back to top Generated by DocFX