Exemplo n.º 1
0
 /// <summary>
 /// Constructor used to create the automatic "dismiss" action for notifications.
 /// </summary>
 /// <param name="name">Dism</param>
 /// <param name="iconClass"></param>
 /// <param name="action"></param>
 /// <param name="controller"></param>
 public NotificationAction(string name, string iconClass, string action, string controller)
 {
     Name      = name;
     IconClass = iconClass;
     MvcUrl    = new MvcUrl(action, controller);
     ViewAdminUserRolesRequired = new List <string>();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Default Constructor.
 /// </summary>
 public NotificationAction()
 {
     Name      = string.Empty;
     IconClass = string.Empty;
     MvcUrl    = new MvcUrl();
     ViewAdminUserRolesRequired = new List <string>();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Default Constructor.
 /// </summary>
 public Notification()
 {
     Id                         = string.Empty;
     EntityId                   = string.Empty;
     Description                = string.Empty;
     NotificationType           = NotificationType.STOCK_LEVEL;
     WarningLevel               = WarningLevelType.NEUTRAL;
     MvcUrl                     = new MvcUrl();
     ViewAdminUserRolesRequired = new List <string>();
     ActionList                 = new List <NotificationAction>();
     ActionList.Add(new NotificationAction("Dismiss", "glyphicon glyphicon-remove", "DismissNotification", "Dashboard"));
     CreatedDateUtc = DateTime.UtcNow;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Default Constructor.
 /// </summary>
 public Notification()
 {
     Id = string.Empty;
     EntityId = string.Empty;
     Description = string.Empty;
     NotificationType = NotificationType.STOCK_LEVEL;
     WarningLevel = WarningLevelType.NEUTRAL;
     MvcUrl = new MvcUrl();
     ViewAdminUserRolesRequired = new List<string>();
     ActionList = new List<NotificationAction>();
     ActionList.Add(new NotificationAction("Dismiss", "glyphicon glyphicon-remove", "DismissNotification", "Dashboard"));
     CreatedDateUtc = DateTime.UtcNow;
 }