D2 : dateUpdate ajouté à la main dans le client généré
Miroir de ResourceDTO côté serveur. Édition manuelle, conformément à la règle du projet : manager_api_new ne se régénère pas, la génération écraserait les patches déjà accumulés dans ce client. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
608231f71c
commit
3429153135
@ -18,6 +18,7 @@ class ResourceDTO {
|
||||
this.label,
|
||||
this.url,
|
||||
this.dateCreation,
|
||||
this.dateUpdate,
|
||||
this.instanceId,
|
||||
this.sizeBytes,
|
||||
});
|
||||
@ -44,6 +45,11 @@ class ResourceDTO {
|
||||
///
|
||||
DateTime? dateCreation;
|
||||
|
||||
/// Estampillé par le serveur à chaque SaveChanges. C'est le seul signal de
|
||||
/// fraîcheur d'une ressource : le filtre incrémental de la visite hors ligne
|
||||
/// s'en sert pour décider si le fichier déjà présent sur le device est périmé.
|
||||
DateTime? dateUpdate;
|
||||
|
||||
String? instanceId;
|
||||
|
||||
int? sizeBytes;
|
||||
@ -100,6 +106,11 @@ class ResourceDTO {
|
||||
} else {
|
||||
json[r'dateCreation'] = null;
|
||||
}
|
||||
if (this.dateUpdate != null) {
|
||||
json[r'dateUpdate'] = this.dateUpdate!.toUtc().toIso8601String();
|
||||
} else {
|
||||
json[r'dateUpdate'] = null;
|
||||
}
|
||||
if (this.instanceId != null) {
|
||||
json[r'instanceId'] = this.instanceId;
|
||||
} else {
|
||||
@ -137,6 +148,7 @@ class ResourceDTO {
|
||||
label: mapValueOfType<String>(json, r'label'),
|
||||
url: mapValueOfType<String>(json, r'url'),
|
||||
dateCreation: mapDateTime(json, r'dateCreation', r''),
|
||||
dateUpdate: mapDateTime(json, r'dateUpdate', r''),
|
||||
instanceId: mapValueOfType<String>(json, r'instanceId'),
|
||||
sizeBytes: mapValueOfType<int>(json, r'sizeBytes'),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user