Class Notification
Represents a notification subscription for a user on an entity.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class Notification
Constructors
View SourceNotification(int, int, string, Guid)
Initializes a new instance of the Notification class.
Declaration
public Notification(int entityId, int userId, string action, Guid entityType)
Parameters
| Type | Name | Description |
|---|---|---|
| int | entityId | The identifier of the entity being watched. |
| int | userId | The identifier of the user subscribing to the notification. |
| string | action | The action that triggers the notification. |
| Guid | entityType | The type of entity being watched. |
Properties
View SourceAction
Gets the action that triggers the notification.
Declaration
public string Action { get; }
Property Value
| Type | Description |
|---|---|
| string |
EntityId
Gets the identifier of the entity being watched.
Declaration
public int EntityId { get; }
Property Value
| Type | Description |
|---|---|
| int |
EntityType
Gets the type of entity being watched.
Declaration
public Guid EntityType { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
UserId
Gets the identifier of the user subscribing to the notification.
Declaration
public int UserId { get; }
Property Value
| Type | Description |
|---|---|
| int |