CommentUpdateModel Class

Namespace:
Weavy.Web.Models
Assembly:
Weavy.Web.dll

public class CommentUpdateModel : IValidatableObject
Inheritance:
System.Object → CommentUpdateModel

Constructors

CommentUpdateModel()
CommentUpdateModel(Comment)

Properties

Blobs Gets or sets the blob ids.
Embeds Gets or sets the embed ids.
Files Gets or sets the attachments.
Id Gets or sets the comment id
RemovedAttachments Gets or sets the removed attachment ids.
Text Gets or sets the comment text.

Methods

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, 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.