Class NotificationsApiService.NotificationsApiServiceBase
Base class for server-side implementations of NotificationsApiService
Namespace: Google.Shopping.Merchant.Notifications.V1Beta
Assembly: Google.Shopping.Merchant.Notifications.V1Beta.dll
Syntax
[BindServiceMethod(typeof(NotificationsApiService), "BindService")]
public abstract class NotificationsApiService.NotificationsApiServiceBase
Methods
CreateNotificationSubscription(CreateNotificationSubscriptionRequest, ServerCallContext)
Creates a notification subscription for a merchant. We will allow the following types of notification subscriptions to exist together (per merchant as a subscriber per event type):
- Subscription for all managed accounts + subscription for self
- Multiple "partial" subscriptions for managed accounts + subscription for self
we will not allow (per merchant as a subscriber per event type):
- multiple self subscriptions.
- multiple "all managed accounts" subscriptions.
- all and partial subscriptions at the same time.
- multiple partial subscriptions for the same target account
Declaration
public virtual Task<NotificationSubscription> CreateNotificationSubscription(CreateNotificationSubscriptionRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
CreateNotificationSubscriptionRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<NotificationSubscription> | The response to send back to the client (wrapped by a task). |
DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest, ServerCallContext)
Deletes a notification subscription for a merchant.
Declaration
public virtual Task<Empty> DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
DeleteNotificationSubscriptionRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Empty> | The response to send back to the client (wrapped by a task). |
GetNotificationSubscription(GetNotificationSubscriptionRequest, ServerCallContext)
Gets notification subscriptions for an account.
Declaration
public virtual Task<NotificationSubscription> GetNotificationSubscription(GetNotificationSubscriptionRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetNotificationSubscriptionRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<NotificationSubscription> | The response to send back to the client (wrapped by a task). |
ListNotificationSubscriptions(ListNotificationSubscriptionsRequest, ServerCallContext)
Gets all the notification subscriptions for a merchant.
Declaration
public virtual Task<ListNotificationSubscriptionsResponse> ListNotificationSubscriptions(ListNotificationSubscriptionsRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListNotificationSubscriptionsRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListNotificationSubscriptionsResponse> | The response to send back to the client (wrapped by a task). |
UpdateNotificationSubscription(UpdateNotificationSubscriptionRequest, ServerCallContext)
Updates an existing notification subscription for a merchant.
Declaration
public virtual Task<NotificationSubscription> UpdateNotificationSubscription(UpdateNotificationSubscriptionRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
UpdateNotificationSubscriptionRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<NotificationSubscription> | The response to send back to the client (wrapped by a task). |