Class NotificationsController
Inheritance
NotificationsController
Assembly: DotNetNuke.dll
Syntax
public class NotificationsController : ServiceLocator<INotificationsController, NotificationsController>, INotificationsController
Constructors
NotificationsController()
Declaration
public NotificationsController()
NotificationsController(IDataService, IDataService)
Declaration
public NotificationsController(IDataService dataService, IDataService messagingDataService)
Parameters
Methods
CountNotifications(int, int)
Declaration
public virtual int CountNotifications(int userId, int portalId)
Parameters
Type |
Name |
Description |
int |
userId |
|
int |
portalId |
|
Returns
CreateNotificationType(NotificationType)
Declaration
public void CreateNotificationType(NotificationType notificationType)
Parameters
DeleteAllNotificationRecipients(int)
Declaration
public virtual void DeleteAllNotificationRecipients(int notificationId)
Parameters
Type |
Name |
Description |
int |
notificationId |
|
DeleteNotification(int)
Declaration
public virtual void DeleteNotification(int notificationId)
Parameters
Type |
Name |
Description |
int |
notificationId |
|
DeleteNotificationRecipient(int, int)
Declaration
public virtual void DeleteNotificationRecipient(int notificationId, int userId)
Parameters
Type |
Name |
Description |
int |
notificationId |
|
int |
userId |
|
DeleteNotificationRecipient(int, string, int)
Declaration
public virtual void DeleteNotificationRecipient(int notificationTypeId, string context, int userId)
Parameters
Type |
Name |
Description |
int |
notificationTypeId |
|
string |
context |
|
int |
userId |
|
DeleteNotificationType(int)
Declaration
public virtual void DeleteNotificationType(int notificationTypeId)
Parameters
Type |
Name |
Description |
int |
notificationTypeId |
|
DeleteNotificationTypeAction(int)
Declaration
public virtual void DeleteNotificationTypeAction(int notificationTypeActionId)
Parameters
Type |
Name |
Description |
int |
notificationTypeActionId |
|
DeleteUserNotifications(UserInfo)
Declaration
public int DeleteUserNotifications(UserInfo user)
Parameters
Returns
GetFactory()
Declaration
protected override Func<INotificationsController> GetFactory()
Returns
Overrides
GetNotification(int)
Declaration
public Notification GetNotification(int notificationId)
Parameters
Type |
Name |
Description |
int |
notificationId |
|
Returns
GetNotificationByContext(int, string)
Declaration
public virtual IList<Notification> GetNotificationByContext(int notificationTypeId, string context)
Parameters
Type |
Name |
Description |
int |
notificationTypeId |
|
string |
context |
|
Returns
GetNotificationType(int)
Declaration
public virtual NotificationType GetNotificationType(int notificationTypeId)
Parameters
Type |
Name |
Description |
int |
notificationTypeId |
|
Returns
GetNotificationType(string)
Declaration
public virtual NotificationType GetNotificationType(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetNotificationTypeAction(int)
Declaration
public virtual NotificationTypeAction GetNotificationTypeAction(int notificationTypeActionId)
Parameters
Type |
Name |
Description |
int |
notificationTypeActionId |
|
Returns
GetNotificationTypeAction(int, string)
Declaration
public virtual NotificationTypeAction GetNotificationTypeAction(int notificationTypeId, string name)
Parameters
Type |
Name |
Description |
int |
notificationTypeId |
|
string |
name |
|
Returns
GetNotificationTypeActions(int)
Declaration
public virtual IList<NotificationTypeAction> GetNotificationTypeActions(int notificationTypeId)
Parameters
Type |
Name |
Description |
int |
notificationTypeId |
|
Returns
GetNotifications(int, int, int, int)
Declaration
public virtual IList<Notification> GetNotifications(int userId, int portalId, int afterNotificationId, int numberOfRecords)
Parameters
Type |
Name |
Description |
int |
userId |
|
int |
portalId |
|
int |
afterNotificationId |
|
int |
numberOfRecords |
|
Returns
GetToasts(UserInfo)
Declaration
public IList<Notification> GetToasts(UserInfo userInfo)
Parameters
Returns
IsToastPending(int)
Declaration
public bool IsToastPending(int notificationId)
Parameters
Type |
Name |
Description |
int |
notificationId |
|
Returns
MarkReadyForToast(Notification, UserInfo)
Declaration
public void MarkReadyForToast(Notification notification, UserInfo userInfo)
Parameters
MarkReadyForToast(Notification, int)
Declaration
public void MarkReadyForToast(Notification notification, int userId)
Parameters
MarkToastSent(int, int)
Declaration
public void MarkToastSent(int notificationId, int userId)
Parameters
Type |
Name |
Description |
int |
notificationId |
|
int |
userId |
|
SendNotification(Notification, int, IList<RoleInfo>, IList<UserInfo>)
Declaration
public virtual void SendNotification(Notification notification, int portalId, IList<RoleInfo> roles, IList<UserInfo> users)
Parameters
SetNotificationTypeActions(IList<NotificationTypeAction>, int)
Declaration
public void SetNotificationTypeActions(IList<NotificationTypeAction> actions, int notificationTypeId)
Parameters
Implements
Extension Methods