Interface INotificationService
Connects to a service to receive Notification.
Namespace: Unity.DigitalTwins.Live.Sdk.Services.Interfaces
Assembly: solution.dll
Syntax
public interface INotificationService
Methods
CreateNotificationsAsync(IEnumerable<NotificationRequestResource>)
Implement this method to create a list of notifications.
Declaration
Task<Optional<IEnumerable<NotificationResource>>> CreateNotificationsAsync(IEnumerable<NotificationRequestResource> notificationResources)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<NotificationRequestResource> | notificationResources | List of resources containing details for notifications you want to create. |
Returns
Type | Description |
---|---|
Task<Optional<IEnumerable<NotificationResource>>> | Returns a list of objects containing notification details if successful. |
GetNotifications()
Retrieves a list of Notification.
Declaration
IEnumerable<Notification> GetNotifications()
Returns
Type | Description |
---|---|
IEnumerable<Notification> | The list of Notification. |