MessengerModel Class


View model for the messenger.

public class MessengerModel
System.Object → MessengerModel




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