Interface IPendingNotificationsSerializer
Responsible for the serialization and deserialization of pending notifications for a GameNotificationsManager that is in RescheduleAfterClearing mode.
Namespace: NotificationSamples
Syntax
public interface IPendingNotificationsSerializer
Methods
Deserialize(IGameNotificationsPlatform)
Retrieve a saved list of pending notifications.
Declaration
IList<IGameNotification> Deserialize(IGameNotificationsPlatform platform)
Parameters
| Type | Name | Description |
|---|---|---|
| IGameNotificationsPlatform | platform |
Returns
| Type | Description |
|---|---|
| IList<IGameNotification> | The deserialized collection of pending notifications, or null if the file did not exist. |
Serialize(IList<PendingNotification>)
Save a list of pending notifications.
Declaration
void Serialize(IList<PendingNotification> notifications)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<PendingNotification> | notifications | The collection notifications to save. |