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<KeyValuePair<string, object>>, IEnumerable, ITrashable, IHasAttachments, IHasEmbeds, ISpaceEntity, ILikeable, IStarrable, IEntity, ICloneable, ITaggable, IValidatableObject
- Attributes:
- BoostAttribute
- Implements:
- IExpando, ITrashable, IHasAttachments, IHasEmbeds, ISpaceEntity, ILikeable, IStarrable, IEntity, ITaggable
Constructors
Message() | Initializes a new instance of the Message class. |
Properties
Attachment |
Gets the ids of all files attached to the Message. |
Conversation | Gets a reference to the Conversation where the message is posted. |
Created |
Gets or sets the time (UTC) the message was initially created. |
Created |
Gets or sets the id of the User that posted the Message. |
Embed |
Gets the ids of all Embeds attached to the Message. |
Html | Gets the message text as html. |
Id | Gets the message id. |
Liked |
Gets the ids of the Users that like the Message. |
Modified |
Gets or sets the time (UTC) the Message was last updated. |
Modified |
Gets or sets the id of the User that last updated the Message. |
Space |
Always returns ConversationsId |
Starred |
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. |
Trashed |
Gets the time (UTC) the Message was trashed. |
Trashed |
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. |
Get |
Gets an excerpt or summary suitable for display in lists and search results. |
Get |
Gets an icon suitable for display in the user interface. |
Get |
Gets a title suitable for display in lists and search results. |
To |
|
Validate(Validation |
Performs custom validation. |
Extension Methods
Is |
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. |
Serialize |
Serializes an object, or graph of connected objects, to a json string. |
Messenger |
Returns the url to the messenger |
Is |
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type. |