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>, 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.
Description Gets a snippet of the most recent message in 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.
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.
LastMessageAt Gets the time (UTC) the last message was posted to the Conversation.
LastMessageBy Gets the User that modified the item.
LastMessageById Gets the id of the user that posted the last 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.
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(Boolean) Gets an excerpt or summary suitable for display in lists and search results.
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

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.