using GreenTree.Nachtragsmanagement.Core.Domain.Misc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GreenTree.Nachtragsmanagement.Core.Plugins
{
    public interface INotificationPlugin
    {
        /// <summary>
        /// Id
        /// </summary>
        Guid Id { get; }

        /// <summary>
        /// System name
        /// </summary>
        string SystemName { get; }

        /// <summary>
        /// List of available notification jobs
        /// </summary>
        List<NotificationJob> AvailableNotificationJobs { get; }

        /// <summary>
        /// Displayed name
        /// </summary>
        string Name { get; }

        /// <summary>
        /// Further description on how this plugin works
        /// </summary>
        string Description { get; }

        /// <summary>
        /// Process all mail notifications registered for that plugin
        /// </summary>
        /// <param name="mailNotifications">The notifications which shall be generated.</param>
        void ProcessNotifications(IEnumerable<MailNotification> mailNotifications);
    }
}
