import 'package:flutter/foundation.dart'; import '../models/comment.dart'; import 'main.dart'; extension CommentEndpoint on V1 { /// POST /comment /// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#create-comment Future createComment({ @required String content, int parentId, @required int postId, int formId, @required String auth, }) { throw UnimplementedError(); } /// PUT /comment /// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#edit-comment Future editComment({ @required String content, @required int editId, String formId, @required String auth, }) { throw UnimplementedError(); } /// POST /comment/delete /// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#delete-comment /// Only the creator can delete the comment Future deleteComment({ @required int editId, @required bool deleted, @required String auth, }) { throw UnimplementedError(); } /// POST /comment/remove /// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#remove-comment /// Only a mod or admin can remove the comment Future removeComment({ @required int editId, @required bool removed, String reason, @required String auth, }) { throw UnimplementedError(); } /// POST /comment/mark_as_read /// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#mark-comment-as-read Future markCommentAsRead({ @required int editId, @required bool read, @required String auth, }) { throw UnimplementedError(); } /// POST /comment/save /// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#save-comment Future saveComment({ @required int commentId, @required bool save, @required String auth, }) { throw UnimplementedError(); } /// POST /comment/like /// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#create-comment-like Future createCommentLike({ @required int commentId, @required Vote score, @required String auth, }) { throw UnimplementedError(); } }