Conversation Class

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

An object representing a conversation between 2 or more people.

[Boost(1F)]
public class Conversation : Expando, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, ISpaceEntity, ITrashable, IHasAvatar, IStarrable, IFollowable, IEntity, ICloneable, IValidatableObject
Inheritance:
System.Object → ExpandoConversation
Attributes:
BoostAttribute
Implements:
IExpando, ISpaceEntity, ITrashable, IHasAvatar, IStarrable, IFollowable, IEntity

Constructors

Conversation() Initializes a new instance of the Conversation class.

Properties

ArchivedAt Gets the date and time (UTC) when the current user archived the conversation.
Avatar Gets the avatar image.
CreatedAt Gets or sets the time the conversation was created.
CreatedById Gets or sets the id of the user that created the conversation.
DeliveredAt Gets the date and time (UTC) when the current user last had a message delivered in the the conversation.
FollowedByIds Gets the ids of the users that follow the conversation.
Id Gets the id of the conversation.
IsMember Gets a value indicating whether the current user is a member of the conversation.
IsPinned Gets a value indicating if the current user has pinned the conversation.
IsRead Gets a value indicating if the current user has read all messages in the conversation.
IsRoom Gets a value indicating whether this is a chat room or a conversation between just 2 people.
LastMessage Gets the last posted Message in the conversation.
MemberIds Gets the ids of the users that are members of the conversation.
Members Gets the list of users that are members of the conversation.
ModifiedAt Gets or sets the time (UTC) the conversation was last updated.
ModifiedById Gets or sets the id of the User that last updated the Conversation .
Name Gets or sets the name of the room.
NotifiedAt Gets the date and time (UTC) when the current user was notified (via email or push) about unread messages.
PinnedAt Gets or sets the time (UTC) when the current user pinned the conversation.
ReadAt Gets the date and time (UTC) when the current user viewed the conversation.
SpaceId Always returns ConversationsId
StarredByIds Gets the ids of the users that have starred the conversation.
Timestamp Gets the timestamp.
TrashedAt Gets the time (UTC) the Conversation was trashed.
TrashedById Gets the id of the user that trashed the Conversation.
Type Gets the type of the entity.

Methods

Clone() Creates a new object that is a copy of the current instance.
GetExcerpt(bool) Gets a snippet of the most recent message in the conversation.
GetIcon() Gets an icon suitable for display in the user interface.
GetTitle() Gets a title suitable for display in lists and search results.
Validate(ValidationContext) Performs custom validation.

Extension Methods

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.