Canal VR - L'entree VR affiche VrScreen au lieu de « non configuree » : sous-onglet Configuration (AppConfigurationLinkScreen reutilise) et sous-onglet Casques (pincode d'appairage, etat, batterie, version, dernier vu). - Le dialogue de plan SuperAdmin porte aussi les canaux et les add-ons (assistant, contenu immersif). Activer un canal cree son ApplicationInstance s'il n'existe pas ; le desactiver ne supprime rien. Medias immersifs - Types Image360, Video360, Model3D : icones, libelles, extensions, apercu dans la Mediatheque et facettes. - Au depot, la pastille de type bascule Image <-> Image 360 et Video <-> Video 360 : rien dans un .jpg ne dit qu'il est equirectangulaire. Un .glb est reconnu seul. - ImageCompressor ne touche plus aux 360 ni aux GLB, sur les deux chemins d'upload : ramenee a 2560 px, une equirectangulaire devient illisible dans un casque. Scene3D - Nouveau type de section (famille des lieux) et son ecran de configuration : modele, mode objet/decor, points d'interet. - Fond immersif d'une configuration, visible si l'instance a l'add-on : le type est deduit de la ressource choisie, avec une image de repli. Client API edite a la main en miroir du backend : SectionScene3DApi, Scene3DDTO, ImmersiveBackgroundDTO, Position3D, AppType sur les devices, ResourceType etendu. Libelles FR/EN/NL. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
131 lines
3.8 KiB
Dart
131 lines
3.8 KiB
Dart
//
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
//
|
|
// @dart=2.18
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
// ignore_for_file: constant_identifier_names
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
part of openapi.api;
|
|
|
|
/// Le fond d'un lieu. Un seul type, deux porteurs : une `Configuration` le porte
|
|
/// pour le fond d'une visite, l'`ApplicationInstance` VR pour le fond du menu.
|
|
///
|
|
/// ⚠️ Le repli n'est pas decoratif : trois canaux sur quatre ne rendent pas un
|
|
/// panorama. Sans `fallbackResourceId`, activer un fond immersif noircirait
|
|
/// l'ecran partout ailleurs que dans le casque.
|
|
class ImmersiveBackgroundDTO {
|
|
ImmersiveBackgroundDTO({
|
|
this.resourceId,
|
|
this.kind,
|
|
this.fallbackResourceId,
|
|
this.resourceUrl,
|
|
this.fallbackUrl,
|
|
});
|
|
|
|
String? resourceId;
|
|
|
|
ImmersiveBackgroundKind? kind;
|
|
|
|
String? fallbackResourceId;
|
|
|
|
/// URL de la ressource, posee par le serveur a la lecture.
|
|
String? resourceUrl;
|
|
|
|
String? fallbackUrl;
|
|
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
other is ImmersiveBackgroundDTO &&
|
|
other.resourceId == resourceId &&
|
|
other.kind == kind &&
|
|
other.fallbackResourceId == fallbackResourceId;
|
|
|
|
@override
|
|
int get hashCode =>
|
|
(resourceId == null ? 0 : resourceId!.hashCode) +
|
|
(kind == null ? 0 : kind!.hashCode) +
|
|
(fallbackResourceId == null ? 0 : fallbackResourceId!.hashCode);
|
|
|
|
@override
|
|
String toString() =>
|
|
'ImmersiveBackgroundDTO[resourceId=$resourceId, kind=$kind, fallbackResourceId=$fallbackResourceId]';
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final json = <String, dynamic>{};
|
|
if (this.resourceId != null) {
|
|
json[r'resourceId'] = this.resourceId;
|
|
} else {
|
|
json[r'resourceId'] = null;
|
|
}
|
|
if (this.kind != null) {
|
|
json[r'kind'] = this.kind;
|
|
} else {
|
|
json[r'kind'] = null;
|
|
}
|
|
if (this.fallbackResourceId != null) {
|
|
json[r'fallbackResourceId'] = this.fallbackResourceId;
|
|
} else {
|
|
json[r'fallbackResourceId'] = null;
|
|
}
|
|
if (this.resourceUrl != null) {
|
|
json[r'resourceUrl'] = this.resourceUrl;
|
|
} else {
|
|
json[r'resourceUrl'] = null;
|
|
}
|
|
if (this.fallbackUrl != null) {
|
|
json[r'fallbackUrl'] = this.fallbackUrl;
|
|
} else {
|
|
json[r'fallbackUrl'] = null;
|
|
}
|
|
return json;
|
|
}
|
|
|
|
static ImmersiveBackgroundDTO? fromJson(dynamic value) {
|
|
if (value is Map) {
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
return ImmersiveBackgroundDTO(
|
|
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
|
kind: ImmersiveBackgroundKind.fromJson(json[r'kind']),
|
|
fallbackResourceId: mapValueOfType<String>(json, r'fallbackResourceId'),
|
|
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
|
fallbackUrl: mapValueOfType<String>(json, r'fallbackUrl'),
|
|
);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
static List<ImmersiveBackgroundDTO> listFromJson(dynamic json, {bool growable = false,}) {
|
|
final result = <ImmersiveBackgroundDTO>[];
|
|
if (json is List && json.isNotEmpty) {
|
|
for (final row in json) {
|
|
final value = ImmersiveBackgroundDTO.fromJson(row);
|
|
if (value != null) {
|
|
result.add(value);
|
|
}
|
|
}
|
|
}
|
|
return result.toList(growable: growable);
|
|
}
|
|
|
|
static Map<String, ImmersiveBackgroundDTO> mapFromJson(dynamic json) {
|
|
final map = <String, ImmersiveBackgroundDTO>{};
|
|
if (json is Map && json.isNotEmpty) {
|
|
json = json.cast<String, dynamic>();
|
|
for (final entry in json.entries) {
|
|
final value = ImmersiveBackgroundDTO.fromJson(entry.value);
|
|
if (value != null) {
|
|
map[entry.key] = value;
|
|
}
|
|
}
|
|
}
|
|
return map;
|
|
}
|
|
|
|
static const requiredKeys = <String>{};
|
|
}
|