Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Refactor

ashilknddcf4568500d
diff --git a/mobile/lib/models/api/collection/public_url.dart b/mobile/lib/models/api/collection/public_url.dart
index a8a31740d9..6c72bda8d7 100644
--- a/mobile/lib/models/api/collection/public_url.dart
+++ b/mobile/lib/models/api/collection/public_url.dart
@@ -1,33 +1,3 @@
-class SharedPublicURL {
- String? nonce;
- int? opsLimit;
- int? memLimit;
-
- SharedPublicURL({
- this.nonce,
- this.opsLimit,
- this.memLimit,
- });
-
- Map<String, dynamic> toMap() {
- return {
- 'nonce': nonce,
- 'opsLimit': opsLimit,
- 'memLimit': memLimit,
- };
- }
-
- static SharedPublicURL? fromMap(Map<String, dynamic>? map) {
- if (map == null) return null;
-
- return SharedPublicURL(
- nonce: map['nonce'],
- opsLimit: map['opsLimit'],
- memLimit: map['memLimit'],
- );
- }
-}
-
class PublicURL {
String url;
int deviceLimit;
@@ -38,7 +8,6 @@ class PublicURL {
String? nonce;
int? opsLimit;
int? memLimit;
- SharedPublicURL? sharedPublicURL;
PublicURL({
required this.url,
@@ -50,7 +19,6 @@ class PublicURL {
this.nonce,
this.opsLimit,
this.memLimit,
- this.sharedPublicURL,
});
Map<String, dynamic> toMap() {
@@ -64,7 +32,6 @@ class PublicURL {
'nonce': nonce,
'memLimit': memLimit,
'opsLimit': opsLimit,
- 'sharedPublicURL': sharedPublicURL?.toMap(),
};
}
@@ -87,7 +54,6 @@ class PublicURL {
nonce: map['nonce'],
opsLimit: map['opsLimit'],
memLimit: map['memLimit'],
- sharedPublicURL: SharedPublicURL.fromMap(map),
);
}
}