Class DataSubscriptionService
Data Subscription Service that allows clients (e.g., Fitbit 3P applications, internal Fitbit Services) to manage their subscriber endpoints. This service provides CRUD APIs for subscribers, and also offers functionalities for subscriber verification and statistics.
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public static class DataSubscriptionService
Methods
BindService(DataSubscriptionServiceBase)
Creates service definition that can be registered with a server
Declaration
public static ServerServiceDefinition BindService(DataSubscriptionService.DataSubscriptionServiceBase serviceImpl)
Parameters
| Type | Name | Description |
|---|---|---|
| DataSubscriptionService.DataSubscriptionServiceBase | serviceImpl | An object implementing the server-side handling logic. |
Returns
| Type | Description |
|---|---|
| ServerServiceDefinition |
BindService(ServiceBinderBase, DataSubscriptionServiceBase)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. Note: this method is part of an experimental API that can change or be removed without any prior notice.
Declaration
public static void BindService(ServiceBinderBase serviceBinder, DataSubscriptionService.DataSubscriptionServiceBase serviceImpl)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceBinderBase | serviceBinder | Service methods will be bound by calling |
| DataSubscriptionService.DataSubscriptionServiceBase | serviceImpl | An object implementing the server-side handling logic. |