NotificationQuery Class
- Namespace:
- Weavy.Core.Models
- Assembly:
- Weavy.Core.dll
Defines a query used to find matching Notification items.
public class NotificationQuery : Query, ICloneable
- Inheritance:
- System.Object → QueryOptions → Query → Weavy.Core.Models.Query{Weavy.Core.Models.Notification} → NotificationQuery
Constructors
Notification |
Initializes a new instance of the NotificationQuery class. |
Notification |
Initializes a new instance of the NotificationQuery class with the specified Query. |
Notification |
Initializes a new instance of the NotificationQuery class with the specified QueryOptions. |
Properties
Actions | Gets or sets the type of actions to include in the search. |
Context |
Gets or sets the context id for the associated LogEntry. |
Context |
Gets or sets the context type for the associated LogEntry. |
Invert |
Gets or sets a flag indicating if the event types should be inverted. All notifications except those specified in the event types are returned. |
Linked |
Gets or sets an entity. All notifications linked to the specified entity is returned. |
Log |
Gets or sets the event id to search for. |
Search |
Gets or sets a value indicating whether already read notifications should be included.
true returns only read notifications, false returns only unread notifications and null ignores the IsRead property.
Default is false .
|
Subject |
Gets or sets the subject id for the associated LogEntry. |
Subject |
Gets or sets the subject type for the associated LogEntry. |
User |
Gets or sets the Id of the notification receiver, default is the Id of the current user. |
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. |