Notification Class
- Namespace:
- Weavy.Core.Models
- Assembly:
- Weavy.Core.dll
An object representing a notification.
public class Notification : Expando, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, IEntity, ICloneable
- Inheritance:
- System.Object → Expando → Notification
- Implements:
- IExpando, IEntity
Constructors
Notification() | Initializes a new instance of the Notification class. |
Notification(Int32) | Initializes a new instance of the Notification class. |
Notification(Int32, Int32, String) | Initializes a new instance of the Notification class. |
Notification(Int32, String) | Initializes a new instance of the Notification class. |
Properties
Created |
Gets or sets the time (UTC) the notification was initially created. |
Created |
Gets or sets the id of the user that created the notification. |
Html | Gets or sets the notification text as html. |
Id | Gets the id of the notification |
Is |
Gets a value indicating whether the notification has been read or not. |
Link | Gets or sets the entity where a click on the notification would take someone. |
Link |
Gets or sets the (relative) url where a click on the notification would take someone. |
Log |
Gets the list of related event log entries. |
Log |
Gets the associated LogEntry. |
Log |
Gets or sets the id of the (last) associated LogEntry. |
Log |
Gets the ids of all related event log entries for the entity. |
Modified |
Gets or sets the time (UTC) the notification was last modified. |
Modified |
Gets or sets the id of the user that modified the notification. |
Read |
Gets the time when this notification was read. |
Text | Gets or sets the notification text. |
Timestamp | Gets the timestamp. |
Trashed |
Gets the time (UTC) the notification was trashed. |
Trashed |
Gets the id of the User that trashed this notification. |
Type | Gets the type of the entity. |
User | Gets the User that should receive the Notification. |
User |
Gets or sets the id of the User that should receive the Notification. |
Methods
Clone() | Creates a new object that is a copy of the current instance. |
Get |
Gets an excerpt or summary suitable for display in lists and search results. |
Get |
Gets an icon suitable for display in the user interface. |
Get |
Gets a title suitable for display in lists and search results. |
Extension Methods
Is |
Gets a value indicating if the specified value has the default value of the generic type. |
Serialize(Object) | Serializes an object, or graph of connected objects, to a byte array. |
Serialize |
Serializes an object, or graph of connected objects, to a json string. |
Is |
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type. |
Avatar |