mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 06:07:57 -06:00
added initial draft of inbox
This commit is contained in:
@@ -4,12 +4,14 @@ class ErrorMessage implements Exception {
|
||||
final StackTrace? stackTrace;
|
||||
final int? httpStatusCode;
|
||||
|
||||
const ErrorMessage(this.code,
|
||||
{this.details, this.stackTrace, this.httpStatusCode});
|
||||
const ErrorMessage(
|
||||
this.code, {
|
||||
this.details,
|
||||
this.stackTrace,
|
||||
this.httpStatusCode,
|
||||
});
|
||||
|
||||
factory ErrorMessage.unknown() {
|
||||
return const ErrorMessage(ErrorCode.unknown);
|
||||
}
|
||||
const ErrorMessage.unknown() : this(ErrorCode.unknown);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
||||
15
lib/core/model/paperless_statistics.dart
Normal file
15
lib/core/model/paperless_statistics.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:paperless_mobile/core/type/types.dart';
|
||||
|
||||
class PaperlessStatistics {
|
||||
final int documentsTotal;
|
||||
final int documentsInInbox;
|
||||
|
||||
PaperlessStatistics({
|
||||
required this.documentsTotal,
|
||||
required this.documentsInInbox,
|
||||
});
|
||||
|
||||
PaperlessStatistics.fromJson(JSON json)
|
||||
: documentsTotal = json['documents_total'],
|
||||
documentsInInbox = json['documents_inbox'];
|
||||
}
|
||||
Reference in New Issue
Block a user