Comment Class

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

An object representing Comments.

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

Constructors

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

Properties

AttachmentIds Gets the ids of all Attachments attached to the Comment.
CreatedAt Gets or sets the time (UTC) the Comment was created.
CreatedById Gets or sets the id of the user that created the Comment.
EmbedIds Gets the ids of all Embeds attached to the Comment
Html Gets the html version of the Comment text.
Id Gets the id.
LikedByIds Gets the ids of the Users that like the Comment.
ModifiedAt Gets or sets the time (UTC) the Comment was last updated.
ModifiedById Gets or sets the id of the User that last updated the Comment.
Parent Gets the commented entity, i.e. Content, Post etc.
SpaceId Gets the id of the space where the Comment exists.
StarredByIds Gets the ids of the users that have starred the Comment.
Tags Gets the list of unique tags in this Comment.
Text Gets or sets the Comment text.
Timestamp Gets the timestamp.
TrashedAt Gets the time (UTC) the Comment was trashed.
TrashedById Gets the id of the User that trashed this Comment.
Type Gets the type of the entity.

Methods

Clone() Create a deep copy of the current object.
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.