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 → QueryOptionsQuery → Weavy.Core.Models.Query{Weavy.Core.Models.Notification} → NotificationQuery

Constructors

NotificationQuery() Initializes a new instance of the NotificationQuery class.
NotificationQuery(Query) Initializes a new instance of the NotificationQuery class with the specified Query.
NotificationQuery(QueryOptions) 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.
ContextId Gets or sets the context id for the associated LogEntry.
ContextType Gets or sets the context type for the associated LogEntry.
InvertLogEntryTypes Gets or sets a flag indicating if the event types should be inverted. All notifications except those specified in the event types are returned.
LinkedTo Gets or sets an entity. All notifications linked to the specified entity is returned.
LogEntryId Gets or sets the event id to search for.
SearchRead 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.
SubjectId Gets or sets the subject id for the associated LogEntry.
SubjectType Gets or sets the subject type for the associated LogEntry.
UserId Gets or sets the Id of the notification receiver, default is the Id of the current user.

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, Nullable, 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.