using System; namespace NotificationSamples { /// /// Represents a notification that was scheduled with . /// public class PendingNotification { /// /// Whether to reschedule this event if it hasn't displayed once the app is foregrounded again. /// /// /// /// Only valid if the 's /// flag is set to . /// /// /// Will not function for any notifications that are using a delivery scheduling method that isn't time /// based, such as iOS location notifications. /// /// public bool Reschedule; /// /// The scheduled notification. /// public readonly IGameNotification Notification; /// /// Instantiate a new instance of from a . /// /// The notification to create from. public PendingNotification(IGameNotification notification) { Notification = notification ?? throw new ArgumentNullException(nameof(notification)); } } }