Show / Hide Table of Contents

Class NotificationsController

Inheritance
object
ServiceLocator<INotificationsController, NotificationsController>
NotificationsController
Implements
INotificationsController
Inherited Members
ServiceLocator<INotificationsController, NotificationsController>.SetTestableInstance(INotificationsController)
ServiceLocator<INotificationsController, NotificationsController>.ClearInstance()
ServiceLocator<INotificationsController, NotificationsController>.GetFactory()
ServiceLocator<INotificationsController, NotificationsController>.Instance
ServiceLocator<INotificationsController, NotificationsController>.Factory
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Services.Social.Notifications
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
Type Name Description
IDataService dataService
IDataService messagingDataService

Methods

CountNotifications(int, int)

Declaration
public virtual int CountNotifications(int userId, int portalId)
Parameters
Type Name Description
int userId
int portalId
Returns
Type Description
int

CreateNotificationType(NotificationType)

Declaration
public void CreateNotificationType(NotificationType notificationType)
Parameters
Type Name Description
NotificationType notificationType

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
Type Name Description
UserInfo user
Returns
Type Description
int

GetFactory()

Declaration
protected override Func<INotificationsController> GetFactory()
Returns
Type Description
Func<INotificationsController>
Overrides
ServiceLocator<INotificationsController, NotificationsController>.GetFactory()

GetNotification(int)

Declaration
public Notification GetNotification(int notificationId)
Parameters
Type Name Description
int notificationId
Returns
Type Description
Notification

GetNotificationByContext(int, string)

Declaration
public virtual IList<Notification> GetNotificationByContext(int notificationTypeId, string context)
Parameters
Type Name Description
int notificationTypeId
string context
Returns
Type Description
IList<Notification>

GetNotificationType(int)

Declaration
public virtual NotificationType GetNotificationType(int notificationTypeId)
Parameters
Type Name Description
int notificationTypeId
Returns
Type Description
NotificationType

GetNotificationType(string)

Declaration
public virtual NotificationType GetNotificationType(string name)
Parameters
Type Name Description
string name
Returns
Type Description
NotificationType

GetNotificationTypeAction(int)

Declaration
public virtual NotificationTypeAction GetNotificationTypeAction(int notificationTypeActionId)
Parameters
Type Name Description
int notificationTypeActionId
Returns
Type Description
NotificationTypeAction

GetNotificationTypeAction(int, string)

Declaration
public virtual NotificationTypeAction GetNotificationTypeAction(int notificationTypeId, string name)
Parameters
Type Name Description
int notificationTypeId
string name
Returns
Type Description
NotificationTypeAction

GetNotificationTypeActions(int)

Declaration
public virtual IList<NotificationTypeAction> GetNotificationTypeActions(int notificationTypeId)
Parameters
Type Name Description
int notificationTypeId
Returns
Type Description
IList<NotificationTypeAction>

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
Type Description
IList<Notification>

GetToasts(UserInfo)

Declaration
public IList<Notification> GetToasts(UserInfo userInfo)
Parameters
Type Name Description
UserInfo userInfo
Returns
Type Description
IList<Notification>

IsToastPending(int)

Declaration
public bool IsToastPending(int notificationId)
Parameters
Type Name Description
int notificationId
Returns
Type Description
bool

MarkReadyForToast(Notification, UserInfo)

Declaration
public void MarkReadyForToast(Notification notification, UserInfo userInfo)
Parameters
Type Name Description
Notification notification
UserInfo userInfo

MarkReadyForToast(Notification, int)

Declaration
public void MarkReadyForToast(Notification notification, int userId)
Parameters
Type Name Description
Notification notification
int userId

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
Type Name Description
Notification notification
int portalId
IList<RoleInfo> roles
IList<UserInfo> users

SetNotificationTypeActions(IList<NotificationTypeAction>, int)

Declaration
public void SetNotificationTypeActions(IList<NotificationTypeAction> actions, int notificationTypeId)
Parameters
Type Name Description
IList<NotificationTypeAction> actions
int notificationTypeId

Implements

INotificationsController

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS