MessengerModel Class

Namespace:
Weavy.Web.Models
Assembly:
Weavy.Web.dll

View model for the messenger.

public class MessengerModel
Inheritance:
System.Object → MessengerModel

Constructors

MessengerModel()

Properties

Archive Gets or sets a value indicating whether we are listing archived conversations or not.
Attachments Gets or sets files posted in the active conversation.
Conversation The currently active conversation
Conversations A list of all active conversations.
Messages A list of messages in the active conversation.
Other Gets the other person in a one-to-one conversation.
Settings Gets or sets the user settings for the current user.
UnreadConversations Gets the number of unread 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.