mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-15 12:12:30 -06:00
WIP - Add system notifications for document upload progress/status
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'open_created_document_notification_payload.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class CreateDocumentSuccessNotificationResponsePayload {
|
||||
final int documentId;
|
||||
|
||||
CreateDocumentSuccessNotificationResponsePayload(this.documentId);
|
||||
|
||||
factory CreateDocumentSuccessNotificationResponsePayload.fromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$CreateDocumentSuccessNotificationResponsePayloadFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
_$CreateDocumentSuccessNotificationResponsePayloadToJson(this);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'open_created_document_notification_payload.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
CreateDocumentSuccessNotificationResponsePayload
|
||||
_$CreateDocumentSuccessNotificationResponsePayloadFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
CreateDocumentSuccessNotificationResponsePayload(
|
||||
json['documentId'] as int,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$CreateDocumentSuccessNotificationResponsePayloadToJson(
|
||||
CreateDocumentSuccessNotificationResponsePayload instance) =>
|
||||
<String, dynamic>{
|
||||
'documentId': instance.documentId,
|
||||
};
|
||||
Reference in New Issue
Block a user