Skip to content

Commit

Permalink
fix(nextcloud): Add missing nids and delete-multiple fields to Decryp…
Browse files Browse the repository at this point in the history
…tedSubject

Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Oct 28, 2024
1 parent 7cffea0 commit daadc14
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import 'dart:convert';

import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import 'package:built_value/standard_json_plugin.dart';
Expand Down Expand Up @@ -35,9 +36,12 @@ abstract class DecryptedSubject implements Built<DecryptedSubject, DecryptedSubj
// ignore: public_member_api_docs
static Serializer<DecryptedSubject> get serializer => _$decryptedSubjectSerializer;

/// ID if the notification.
/// ID of the notification.
int? get nid;

/// IDs of multiple notifications.
BuiltList<int>? get nids;

/// App that sent the notification.
String? get app;

Expand All @@ -53,12 +57,17 @@ abstract class DecryptedSubject implements Built<DecryptedSubject, DecryptedSubj
/// Delete the notification.
bool? get delete;

/// Delete multiple notifications.
@BuiltValueField(wireName: 'delete-multiple')
bool? get deleteMultiple;

/// Delete all notifications.
@BuiltValueField(wireName: 'delete-all')
bool? get deleteAll;
}

final Serializers _serializers = (Serializers().toBuilder()
..add(DecryptedSubject.serializer)
..addBuilderFactory(const FullType(BuiltList, [FullType(int)]), ListBuilder<int>.new)
..addPlugin(StandardJsonPlugin()))
.build();

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit daadc14

Please sign in to comment.