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.label,
|
||||||
this.url,
|
this.url,
|
||||||
this.dateCreation,
|
this.dateCreation,
|
||||||
|
this.dateUpdate,
|
||||||
this.instanceId,
|
this.instanceId,
|
||||||
this.sizeBytes,
|
this.sizeBytes,
|
||||||
});
|
});
|
||||||
@ -44,6 +45,11 @@ class ResourceDTO {
|
|||||||
///
|
///
|
||||||
DateTime? dateCreation;
|
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;
|
String? instanceId;
|
||||||
|
|
||||||
int? sizeBytes;
|
int? sizeBytes;
|
||||||
@ -100,6 +106,11 @@ class ResourceDTO {
|
|||||||
} else {
|
} else {
|
||||||
json[r'dateCreation'] = null;
|
json[r'dateCreation'] = null;
|
||||||
}
|
}
|
||||||
|
if (this.dateUpdate != null) {
|
||||||
|
json[r'dateUpdate'] = this.dateUpdate!.toUtc().toIso8601String();
|
||||||
|
} else {
|
||||||
|
json[r'dateUpdate'] = null;
|
||||||
|
}
|
||||||
if (this.instanceId != null) {
|
if (this.instanceId != null) {
|
||||||
json[r'instanceId'] = this.instanceId;
|
json[r'instanceId'] = this.instanceId;
|
||||||
} else {
|
} else {
|
||||||
@ -137,6 +148,7 @@ class ResourceDTO {
|
|||||||
label: mapValueOfType<String>(json, r'label'),
|
label: mapValueOfType<String>(json, r'label'),
|
||||||
url: mapValueOfType<String>(json, r'url'),
|
url: mapValueOfType<String>(json, r'url'),
|
||||||
dateCreation: mapDateTime(json, r'dateCreation', r''),
|
dateCreation: mapDateTime(json, r'dateCreation', r''),
|
||||||
|
dateUpdate: mapDateTime(json, r'dateUpdate', r''),
|
||||||
instanceId: mapValueOfType<String>(json, r'instanceId'),
|
instanceId: mapValueOfType<String>(json, r'instanceId'),
|
||||||
sizeBytes: mapValueOfType<int>(json, r'sizeBytes'),
|
sizeBytes: mapValueOfType<int>(json, r'sizeBytes'),
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user