// Copyright (c) Arlo Godfrey. All Rights Reserved.
// Licensed under the GNU Lesser General Public License, Version 3.0 with additional terms.
// See the LICENSE, LICENSE.LESSER and LICENSE.ADDITIONAL files in the project root for more information.
using System;
using OwlCore.AbstractUI.Models;
using OwlCore.Remoting;
namespace StrixMusic.Sdk.AppModels
{
///
/// Represents a notification containing basic ui elements that can be dismissed.
///
public sealed class Notification
{
///
/// Raised when the Notification is dismissed.
///
public event EventHandler? Dismissed;
///
/// Initializes a new instance of the class.
///
/// The to display for the notification content.
public Notification(AbstractUICollection abstractUIElementGroup)
{
AbstractUICollection = abstractUIElementGroup;
}
///
/// The to be displayed for the notification.
///
public AbstractUICollection AbstractUICollection { get; }
///
/// Raises the event.
///
public void Dismiss()
{
Dismissed?.Invoke(this, EventArgs.Empty);
}
}
}