using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GreenTree.Nachtragsmanagement.Core.Domain.Misc
{
public class MailNotification : BaseEntity
{
#region Fields
///
/// Users related to the notification
///
private ICollection _users;
#endregion
///
/// The cron expression if the notification will be sent by time
///
public string CronExpression { get; set; }
///
/// The system name of the corresponding plugin generating the notification
///
public string NotificationPluginSystemName { get; set; }
///
/// The system name of the job that should be processed by the corresponding notification plugin
///
public string NotificationJobSystemName { get; set; }
///
/// Users assigned to the notification
///
public virtual ICollection Users
{
get { return _users ?? ( _users = new List()); }
protected set { _users = value; }
}
#region Helper
///
/// Adds missing users and removes not selected users
///
/// Site users.
public void SetUsers(ICollection users)
{
Users = users;
}
#endregion
}
}