ConversationQuery Class

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

Defines a query used to find matching conversations.

public class ConversationQuery : Query<Conversation>, ICloneable
Inheritance:
System.Object → QueryOptionsQuery → Weavy.Core.Models.Query{Weavy.Core.Models.Conversation} → ConversationQuery

Constructors

ConversationQuery() Initializes a new instance of the ConversationQuery class.
ConversationQuery(Query) Initializes a new instance of the ConversationQuery class with the specified Query.
ConversationQuery(QueryOptions) Initializes a new instance of the ConversationQuery class with the specified QueryOptions.

Properties

FollowerId Gets or sets a user id. Can be used to find the conversations that a user is following.
LastMessageAfter Gets or sets a date that limits the result to conversations that have new messages on or after this date.
SearchArchived Gets or sets a value indicating wheather to return archived conversations. true returns only archived conversations, false returns only non-archived conversations and null ignores the archived field. Default is null.
SearchEmpty Gets or sets a value indicating whether empty conversations should be included. true returns only empty conversations, false returns only conversations with messages and null returns all conversations. Default is null.
SearchRead Gets or sets a value indicating whether already read conversations should be included. true returns only read conversations, false returns only unread conversations and null returns all conversations. Default is null.
StarredById Gets or sets a user id. Can be used to find all conversations the user has starred.
UserId Gets or sets the id of the conversation member, default is the id of the current user, null returns all conversations.

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.