Notification Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

An object representing a notification.

public class Notification : Expando, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IEntity, ICloneable
Inheritance:
System.Object → ExpandoNotification
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

CreatedAt Gets or sets the time (UTC) the notification was initially created.
CreatedById 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
IsRead 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.
LinkUrl Gets or sets the (relative) url where a click on the notification would take someone.
LogEntries Gets the list of related event log entries.
LogEntry Gets the associated LogEntry.
LogEntryId Gets or sets the id of the (last) associated LogEntry.
LogEntryIds Gets the ids of all related event log entries for the entity.
ModifiedAt Gets or sets the time (UTC) the notification was last modified.
ModifiedById Gets or sets the id of the user that modified the notification.
ReadAt Gets the time when this notification was read.
Text Gets or sets the notification text.
Timestamp Gets the timestamp.
TrashedAt Gets the time (UTC) the notification was trashed.
TrashedById 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.
UserId 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.
GetExcerpt(bool) Gets an excerpt or summary suitable for display in lists and search results.
GetIcon() Gets an icon suitable for display in the user interface.
GetTitle() Gets a title suitable for display in lists and search results.

Extension Methods

IsNullOrDefault(T) 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.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
AvatarImg(Notification, int, bool, Color?, bool, object, int?, int?)