Remove flutter chat (#26)
Had to squash merge manually as Forgejo was erroring
This commit is contained in:
parent
bd1d5ea745
commit
16cf126df4
111 changed files with 3162 additions and 2366 deletions
23
lib/models/content/encryption.dart
Normal file
23
lib/models/content/encryption.dart
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/content/content.dart";
|
||||
part "encryption.freezed.dart";
|
||||
part "encryption.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class EncryptionContent extends Content with _$EncryptionContent {
|
||||
EncryptionContent._();
|
||||
factory EncryptionContent({
|
||||
required String algorithm,
|
||||
|
||||
@JsonKey(name: "rotation_period_ms")
|
||||
@Default(604800000)
|
||||
int rotationPeriodMS,
|
||||
|
||||
@JsonKey(name: "rotation_period_msgs")
|
||||
@Default(100)
|
||||
int rotationPeriodMessages,
|
||||
}) = _EncryptionContent;
|
||||
|
||||
factory EncryptionContent.fromJson(Map<String, Object?> json) =>
|
||||
_$EncryptionContentFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue