Class HealthProfileServiceClientImpl
HealthProfileService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class HealthProfileServiceClientImpl : HealthProfileServiceClient
Remarks
Health Profile Service
Constructors
HealthProfileServiceClientImpl(HealthProfileServiceClient, HealthProfileServiceSettings, ILogger)
Constructs a client wrapper for the HealthProfileService service, with the specified gRPC client and settings.
Declaration
public HealthProfileServiceClientImpl(HealthProfileService.HealthProfileServiceClient grpcClient, HealthProfileServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| HealthProfileService.HealthProfileServiceClient | grpcClient | The underlying gRPC client. |
| HealthProfileServiceSettings | settings | The base HealthProfileServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC HealthProfileService client
Declaration
public override HealthProfileService.HealthProfileServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| HealthProfileService.HealthProfileServiceClient |
Overrides
Methods
GetIdentity(GetIdentityRequest, CallSettings)
Gets the user's identity.
It includes the legacy Fitbit user ID and the Google user ID and it can be used by migrating clients to map identifiers between the two systems.
Declaration
public override Identity GetIdentity(GetIdentityRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIdentityRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Identity | The RPC response. |
Overrides
GetIdentityAsync(GetIdentityRequest, CallSettings)
Gets the user's identity.
It includes the legacy Fitbit user ID and the Google user ID and it can be used by migrating clients to map identifiers between the two systems.
Declaration
public override Task<Identity> GetIdentityAsync(GetIdentityRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIdentityRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Identity> | A Task containing the RPC response. |
Overrides
GetProfile(GetProfileRequest, CallSettings)
Returns user Profile details.
Declaration
public override Profile GetProfile(GetProfileRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProfileRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Profile | The RPC response. |
Overrides
GetProfileAsync(GetProfileRequest, CallSettings)
Returns user Profile details.
Declaration
public override Task<Profile> GetProfileAsync(GetProfileRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProfileRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Profile> | A Task containing the RPC response. |
Overrides
GetSettings(GetSettingsRequest, CallSettings)
Returns user settings details.
Declaration
public override Settings GetSettings(GetSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSettingsRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Settings | The RPC response. |
Overrides
GetSettingsAsync(GetSettingsRequest, CallSettings)
Returns user settings details.
Declaration
public override Task<Settings> GetSettingsAsync(GetSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSettingsRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Settings> | A Task containing the RPC response. |
Overrides
UpdateProfile(UpdateProfileRequest, CallSettings)
Updates the user's profile details.
Declaration
public override Profile UpdateProfile(UpdateProfileRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProfileRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Profile | The RPC response. |
Overrides
UpdateProfileAsync(UpdateProfileRequest, CallSettings)
Updates the user's profile details.
Declaration
public override Task<Profile> UpdateProfileAsync(UpdateProfileRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProfileRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Profile> | A Task containing the RPC response. |
Overrides
UpdateSettings(UpdateSettingsRequest, CallSettings)
Updates the user's settings details.
Declaration
public override Settings UpdateSettings(UpdateSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSettingsRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Settings | The RPC response. |
Overrides
UpdateSettingsAsync(UpdateSettingsRequest, CallSettings)
Updates the user's settings details.
Declaration
public override Task<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSettingsRequest | request | The request object containing all of the parameters for the API call. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<Settings> | A Task containing the RPC response. |