1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-17 19:09:07 +01:00
lemmur-app-android/lib/client/v1/main.dart
krawieck 19c10d27f9 Move endponts to separate files to reduce clutter
Move `v1` endpoint to it's own directory, and `PostEndpoint`and `UserEndpoint` to their own files
2020-08-05 23:21:26 +02:00

35 lines
764 B
Dart

import 'package:flutter/foundation.dart';
import 'post_endpoint.dart';
import 'user_endpoint.dart';
class V1 {
String instanceUrl;
UserEndpoint user;
PostEndpoint post;
V1(this.instanceUrl)
: user = UserEndpoint(instanceUrl),
post = PostEndpoint(instanceUrl);
/// GET /categories
/// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#list-categories
String listCategories() {
throw UnimplementedError();
}
/// POST /search
/// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#search
String search({
@required String q,
@required String type,
String communityId,
@required String sort,
int page,
int limit,
String auth,
}) {
throw UnimplementedError();
}
}