CommentResource class

Constructors

CommentResource(APIHttpClient httpClient)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
httpClient → APIHttpClient
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addComment<T extends APIModel>({required CommentType type, required T parent, required String content, String? token}) Future<Comment>
Add a comment. Parameters
deleteComment({required Comment comment, String? token}) Future<void>
Delete a comment. Parameters
editComment({required Comment comment, required String content, String? token}) Future<Comment>
Edit a comment. Parameters
getComment(String uuid) Future<Comment>
Get a comment by uuid.
listComment<T extends APIModel>({required CommentType type, required T parent, Comment? replyComment, int limit = 50, dynamic skip = 0}) Future<ListModelResponse<Comment>>
List all comment Parameters
listCommentInternal({required CommentType type, required String parentUUID, Comment? replyComment, int limit = 50, dynamic skip = 0}) Future<ListModelResponse<Comment>>
List all comment Parameters
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replyComment({required Comment comment, required String content, String? token}) Future<Comment>
Reply to a comment. Parameters
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited