CommentsController Class

Namespace:
Weavy.Web.Api.Controllers
Assembly:
Weavy.Web.dll

Comments are made by users on different objects such as posts or items. Comments are very similar to posts and messages, they can have attachments, be liked etc.

public class CommentsController : WeavyApiController
Inheritance:
System.Object → WeavyApiControllerCommentsController

Constructors

CommentsController()

Methods

Delete(Int32) Delete the Comment with the specified id.
Get(Int32) Get the Comment with the specified id.
GetContentComments(Int32) Retrieves the comments for a Content item.
GetPostComments(Int32) Retrieves the comments for a Post.
InsertContentComment(Int32, CommentIn) Insert a new Comment for the specified Content item.
InsertPostComment(Int32, CommentIn) Insert a new Comment for the specified Post.
Like(Int32) Mark a Comment as liked by the current user.
Restore(Int32) Restores the Comment with the specified id.
Star(Int32) Mark a Comment as starred by the current user.
Trash(Int32) Trashes the Comment with the specified id.
Unlike(Int32) Mark a Comment as unliked by the current user.
Unstar(Int32) Mark a Comment as unstarred by the current user.
Update(Int32, CommentUp) Updates a Comment.

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.