View Source
Class NotificationsRepository
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class NotificationsRepository : INotificationsRepository, IRepository
Constructors
View Source
NotificationsRepository(IScopeAccessor)
Declaration
public NotificationsRepository(IScopeAccessor scopeAccessor)
Parameters
Methods
View Source
CreateNotification(IUser, IEntity, String)
Declaration
public Notification CreateNotification(IUser user, IEntity entity, string action)
Parameters
| Type |
Name |
Description |
| IUser |
user |
|
| IEntity |
entity |
|
| System.String |
action |
|
Returns
View Source
DeleteNotifications(IEntity)
Declaration
public int DeleteNotifications(IEntity entity)
Parameters
| Type |
Name |
Description |
| IEntity |
entity |
|
Returns
| Type |
Description |
| System.Int32 |
|
View Source
DeleteNotifications(IUser)
Declaration
public int DeleteNotifications(IUser user)
Parameters
| Type |
Name |
Description |
| IUser |
user |
|
Returns
| Type |
Description |
| System.Int32 |
|
View Source
DeleteNotifications(IUser, IEntity)
Declaration
public int DeleteNotifications(IUser user, IEntity entity)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
View Source
GetEntityNotifications(IEntity)
Declaration
public IEnumerable<Notification>? GetEntityNotifications(IEntity entity)
Parameters
| Type |
Name |
Description |
| IEntity |
entity |
|
Returns
View Source
GetUserNotifications(IUser)
Declaration
public IEnumerable<Notification>? GetUserNotifications(IUser user)
Parameters
| Type |
Name |
Description |
| IUser |
user |
|
Returns
View Source
GetUsersNotifications(IEnumerable<Int32>, String, IEnumerable<Int32>, Guid)
Declaration
public IEnumerable<Notification>? GetUsersNotifications(IEnumerable<int> userIds, string action, IEnumerable<int> nodeIds, Guid objectType)
Parameters
| Type |
Name |
Description |
| IEnumerable<System.Int32> |
userIds |
|
| System.String |
action |
|
| IEnumerable<System.Int32> |
nodeIds |
|
| Guid |
objectType |
|
Returns
View Source
SetNotifications(IUser, IEntity, String[])
Declaration
public IEnumerable<Notification> SetNotifications(IUser user, IEntity entity, string[] actions)
Parameters
| Type |
Name |
Description |
| IUser |
user |
|
| IEntity |
entity |
|
| System.String[] |
actions |
|
Returns