mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-16 00:12:31 -06:00
added initial draft of inbox
This commit is contained in:
@@ -120,15 +120,6 @@ class LabelRepositoryImpl implements LabelRepository {
|
||||
throw const ErrorMessage(ErrorCode.tagCreateFailed);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<int> getStatistics() async {
|
||||
final response = await httpClient.get(Uri.parse('/api/statistics/'));
|
||||
if (response.statusCode == 200) {
|
||||
return jsonDecode(utf8.decode(response.bodyBytes))['documents_total'];
|
||||
}
|
||||
throw const ErrorMessage(ErrorCode.unknown);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<int> deleteCorrespondent(Correspondent correspondent) async {
|
||||
assert(correspondent.id != null);
|
||||
|
||||
Reference in New Issue
Block a user