Class Identity
Represents details about the Google user's identity.
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class Identity : IMessage<Identity>, IEquatable<Identity>, IDeepCloneable<Identity>, IBufferMessage, IMessage
Constructors
Identity()
Declaration
public Identity()
Identity(Identity)
Declaration
public Identity(Identity other)
Parameters
| Type | Name | Description |
|---|---|---|
| Identity | other |
Properties
HealthUserId
Output only. The Google User Identifier in the Google Health APIs. It
matches the
{user} resource ID segment in the resource name paths, e.g.
users/{user}/dataTypes/steps.
Valid values are strings of 1-63 characters, and valid characters are lowercase and uppercase letters, numbers, and hyphens.
Declaration
public string HealthUserId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IdentityName
IdentityName-typed view over the Name resource name property.
Declaration
public IdentityName IdentityName { get; set; }
Property Value
| Type | Description |
|---|---|
| IdentityName |
LegacyUserId
Output only. The legacy Fitbit User identifier. This is the Fitbit ID used in the legacy Fitbit APIs (v1-v3). It can be referenced by clients migrating from the legacy Fitbit APIs to map their existing identifiers to the new Google user ID.
It must not be used for any other purpose. It is not of any use for new clients using only the Google Health APIs.
Valid values are strings of 1-63 characters, and valid characters are lowercase and uppercase letters, numbers, and hyphens.
Declaration
public string LegacyUserId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Identifier. The resource name of this Identity resource.
Format: users/me/identity
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |