Message Class

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

An individual message in a conversation.

[Boost(0.9F)]
public class Message : Expando, IExpando, IDynamicMetaObjectProvider, IEnumerable>, IEnumerable, ITrashable, IHasAttachments, IHasEmbeds, ISpaceEntity, ILikeable, IStarrable, IEntity, ICloneable, ITaggable, IValidatableObject
Inheritance:
System.Object → ExpandoMessage
Attributes:
BoostAttribute
Implements:
IExpando, ITrashable, IHasAttachments, IHasEmbeds, ISpaceEntity, ILikeable, IStarrable, IEntity, ITaggable

Constructors

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

Properties

AttachmentIds Gets the ids of all files attached to the Message.
Conversation Gets a reference to the Conversation where the message is posted.
CreatedAt Gets or sets the time (UTC) the message was initially created.
CreatedById Gets or sets the id of the User that posted the Message.
EmbedIds Gets the ids of all Embeds attached to the Message.
Html Gets the message text as html.
Id Gets the message id.
LikedByIds Gets the ids of the Users that like the Message.
ModifiedAt Gets or sets the time (UTC) the Message was last updated.
ModifiedById Gets or sets the id of the User that last updated the Message.
SpaceId Always returns ConversationsId
StarredByIds Gets the ids of the users that have starred the Message.
Tags Gets the list of unique tags in this Message.
Text Gets or sets the message text.
Timestamp Gets the timestamp.
TrashedAt Gets the time (UTC) the Message was trashed.
TrashedById Gets the id of the User that trashed this Message.
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.
ToString()
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.
MessengerUrl(Message, Boolean) Returns the url to the messenger
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.