mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-17 02:48:47 +01:00
82 lines
2.0 KiB
Dart
82 lines
2.0 KiB
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
import 'main.dart';
|
|
|
|
extension CommentEndpoint on V1 {
|
|
/// POST /comment
|
|
/// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#create-comment
|
|
String 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
|
|
String 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
|
|
String 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
|
|
String 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
|
|
String 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
|
|
String 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
|
|
String createCommentLike({
|
|
@required int commentId,
|
|
@required Vote score,
|
|
@required String auth,
|
|
}) {
|
|
throw UnimplementedError();
|
|
}
|
|
}
|