Class HealthProfileService.HealthProfileServiceBase
Base class for server-side implementations of HealthProfileService
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
[BindServiceMethod(typeof(HealthProfileService), "BindService")]
public abstract class HealthProfileService.HealthProfileServiceBase
Methods
GetIdentity(GetIdentityRequest, ServerCallContext)
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 virtual Task<Identity> GetIdentity(GetIdentityRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIdentityRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Identity> | The response to send back to the client (wrapped by a task). |
GetProfile(GetProfileRequest, ServerCallContext)
Returns user Profile details.
Declaration
public virtual Task<Profile> GetProfile(GetProfileRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProfileRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Profile> | The response to send back to the client (wrapped by a task). |
GetSettings(GetSettingsRequest, ServerCallContext)
Returns user settings details.
Declaration
public virtual Task<Settings> GetSettings(GetSettingsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSettingsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Settings> | The response to send back to the client (wrapped by a task). |
UpdateProfile(UpdateProfileRequest, ServerCallContext)
Updates the user's profile details.
Declaration
public virtual Task<Profile> UpdateProfile(UpdateProfileRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProfileRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Profile> | The response to send back to the client (wrapped by a task). |
UpdateSettings(UpdateSettingsRequest, ServerCallContext)
Updates the user's settings details.
Declaration
public virtual Task<Settings> UpdateSettings(UpdateSettingsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSettingsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Settings> | The response to send back to the client (wrapped by a task). |