mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] updated public_url.dart to store additional information of public links
This commit is contained in:
parent
add3278c89
commit
fd3991bab6
@ -5,6 +5,9 @@ class PublicURL {
|
||||
bool enableDownload;
|
||||
bool enableCollect;
|
||||
bool passwordEnabled;
|
||||
String? nonce;
|
||||
int? opsLimit;
|
||||
int? memLimit;
|
||||
|
||||
PublicURL({
|
||||
required this.url,
|
||||
@ -13,6 +16,9 @@ class PublicURL {
|
||||
this.enableDownload = true,
|
||||
this.passwordEnabled = false,
|
||||
this.enableCollect = false,
|
||||
this.nonce,
|
||||
this.opsLimit,
|
||||
this.memLimit,
|
||||
});
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
@ -23,6 +29,9 @@ class PublicURL {
|
||||
'enableDownload': enableDownload,
|
||||
'passwordEnabled': passwordEnabled,
|
||||
'enableCollect': enableCollect,
|
||||
'nonce': nonce,
|
||||
'memLimit': memLimit,
|
||||
'opsLimit': opsLimit,
|
||||
};
|
||||
}
|
||||
|
||||
@ -42,6 +51,9 @@ class PublicURL {
|
||||
enableDownload: map['enableDownload'] ?? true,
|
||||
passwordEnabled: map['passwordEnabled'] ?? false,
|
||||
enableCollect: map['enableCollect'] ?? false,
|
||||
nonce: map['nonce'],
|
||||
opsLimit: map['opsLimit'],
|
||||
memLimit: map['memLimit'],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user