mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 16:41:19 +00:00
WIP Version 3.0
This commit is contained in:
parent
a045fe51e9
commit
0cd2b47211
@ -3,7 +3,7 @@ import 'dart:typed_data';
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/audio_player.dart';
|
import 'package:tablet_app/Components/audio_player.dart';
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import 'dart:io';
|
|||||||
|
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/cached_custom_resource.dart';
|
import 'package:tablet_app/Components/cached_custom_resource.dart';
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import 'dart:typed_data';
|
|||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:tablet_app/Components/audio_player.dart';
|
import 'package:tablet_app/Components/audio_player.dart';
|
||||||
import 'package:tablet_app/Components/video_viewer.dart';
|
import 'package:tablet_app/Components/video_viewer.dart';
|
||||||
import 'package:tablet_app/Components/video_viewer_youtube.dart';
|
import 'package:tablet_app/Components/video_viewer_youtube.dart';
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import 'dart:convert';
|
|||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:tablet_app/constants.dart';
|
import 'package:tablet_app/constants.dart';
|
||||||
import 'package:youtube_player_iframe/youtube_player_iframe.dart' as iframe;
|
import 'package:youtube_player_iframe/youtube_player_iframe.dart' as iframe;
|
||||||
//import 'package:youtube_player_flutter/youtube_player_flutter.dart';
|
//import 'package:youtube_player_flutter/youtube_player_flutter.dart';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:path/path.dart';
|
import 'package:path/path.dart';
|
||||||
import 'package:sqflite/sqflite.dart';
|
import 'package:sqflite/sqflite.dart';
|
||||||
import 'package:tablet_app/Models/tabletContext.dart';
|
import 'package:tablet_app/Models/tabletContext.dart';
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import 'dart:convert';
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
//import 'package:mqtt_client/mqtt_browser_client.dart';
|
//import 'package:mqtt_client/mqtt_browser_client.dart';
|
||||||
import 'package:mqtt_client/mqtt_client.dart';
|
import 'package:mqtt_client/mqtt_client.dart';
|
||||||
import 'package:mqtt_client/mqtt_server_client.dart';
|
import 'package:mqtt_client/mqtt_server_client.dart';
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:tablet_app/Helpers/translations.dart';
|
import 'package:tablet_app/Helpers/translations.dart';
|
||||||
import 'package:tablet_app/Models/tabletContext.dart';
|
import 'package:tablet_app/Models/tabletContext.dart';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
|
|
||||||
class ResponseSubDTO {
|
class ResponseSubDTO {
|
||||||
List<TranslationAndResourceDTO>? label;
|
List<TranslationAndResourceDTO>? label;
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
|
|
||||||
class MapMarker {
|
class MapMarker {
|
||||||
int? id;
|
int? id;
|
||||||
String? title;
|
String? title;
|
||||||
String? description;
|
String? description;
|
||||||
List<ContentGeoPoint>? contents;
|
List<ContentDTO>? contents;
|
||||||
String? latitude;
|
String? latitude;
|
||||||
String? longitude;
|
String? longitude;
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ class MapMarker {
|
|||||||
id: json['id'] as int,
|
id: json['id'] as int,
|
||||||
title: json['title'] as String,
|
title: json['title'] as String,
|
||||||
description: json['description'] as String,
|
description: json['description'] as String,
|
||||||
contents: json['contents'] as List<ContentGeoPoint>,
|
contents: json['contents'] as List<ContentDTO>,
|
||||||
latitude: json['latitude'] as String,
|
latitude: json['latitude'] as String,
|
||||||
longitude: json['longitude'] as String,
|
longitude: json['longitude'] as String,
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
//import 'package:mqtt_client/mqtt_browser_client.dart';
|
//import 'package:mqtt_client/mqtt_browser_client.dart';
|
||||||
import 'package:mqtt_client/mqtt_server_client.dart';
|
import 'package:mqtt_client/mqtt_server_client.dart';
|
||||||
import 'package:tablet_app/client.dart';
|
import 'package:tablet_app/client.dart';
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
|
|
||||||
class Translation {
|
class Translation {
|
||||||
String? language = "";
|
String? language = "";
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import 'dart:ui' as ui;
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/loading_common.dart';
|
import 'package:tablet_app/Components/loading_common.dart';
|
||||||
import 'package:tablet_app/Models/agenda.dart';
|
import 'package:tablet_app/Models/agenda.dart';
|
||||||
@ -20,8 +20,8 @@ import 'package:tablet_app/constants.dart';
|
|||||||
|
|
||||||
|
|
||||||
class AgendaView extends StatefulWidget {
|
class AgendaView extends StatefulWidget {
|
||||||
final SectionDTO? section;
|
final AgendaDTO section;
|
||||||
AgendaView({this.section});
|
AgendaView({required this.section});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_AgendaView createState() => _AgendaView();
|
_AgendaView createState() => _AgendaView();
|
||||||
@ -35,9 +35,10 @@ class _AgendaView extends State<AgendaView> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
print(widget.section!.data);
|
/*print(widget.section!.data);
|
||||||
agendaDTO = AgendaDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
agendaDTO = AgendaDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
||||||
print(agendaDTO);
|
print(agendaDTO);*/
|
||||||
|
agendaDTO = widget.section;
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,7 +153,7 @@ class _AgendaView extends State<AgendaView> {
|
|||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return EventPopup(eventAgenda: eventAgenda, mapProvider: agendaDTO.mapProvider ?? MapProvider.Google, mapIcon: mapIcon);
|
return EventPopup(eventAgenda: eventAgenda, mapProvider: agendaDTO.agendaMapProvider ?? MapProvider.Google, mapIcon: mapIcon);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import 'package:flutter/widgets.dart';
|
|||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||||
import 'package:mapbox_maps_flutter/mapbox_maps_flutter.dart' as mapBox;
|
import 'package:mapbox_maps_flutter/mapbox_maps_flutter.dart' as mapBox;
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:qr_flutter/qr_flutter.dart';
|
import 'package:qr_flutter/qr_flutter.dart';
|
||||||
import 'package:tablet_app/Components/loading_common.dart';
|
import 'package:tablet_app/Components/loading_common.dart';
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import 'dart:ui' as ui;
|
|||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:tablet_app/Components/loading_common.dart';
|
import 'package:tablet_app/Components/loading_common.dart';
|
||||||
|
|
||||||
@ -20,13 +20,14 @@ class ArticleView extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _ArticleView extends State<ArticleView> {
|
class _ArticleView extends State<ArticleView> {
|
||||||
AgendaDTO agendaDTO = AgendaDTO();
|
ArticleDTO articleDTO = ArticleDTO();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
print(widget.section!.data);
|
/*print(widget.section!.data);
|
||||||
agendaDTO = AgendaDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
agendaDTO = AgendaDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
||||||
print(agendaDTO);
|
print(agendaDTO);*/
|
||||||
|
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +41,7 @@ class _ArticleView extends State<ArticleView> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return new Center(
|
return new Center(
|
||||||
child: Text("TODO Agenda"),
|
child: Text("TODO Article"),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} //_webView
|
} //_webView
|
||||||
@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
//import 'package:mqtt_client/mqtt_browser_client.dart';
|
//import 'package:mqtt_client/mqtt_browser_client.dart';
|
||||||
import 'package:mqtt_client/mqtt_server_client.dart';
|
import 'package:mqtt_client/mqtt_server_client.dart';
|
||||||
import 'package:permission_handler/permission_handler.dart';
|
import 'package:permission_handler/permission_handler.dart';
|
||||||
@ -36,7 +36,7 @@ class ConfigViewWidget extends StatefulWidget {
|
|||||||
class _ConfigViewWidget extends State<ConfigViewWidget> {
|
class _ConfigViewWidget extends State<ConfigViewWidget> {
|
||||||
Size sizeScreen = new Size(1080.0, 1920.0); // Tablet resolution
|
Size sizeScreen = new Size(1080.0, 1920.0); // Tablet resolution
|
||||||
String url = "https://api.myinfomate.be"; //DEV "http://192.168.31.96" http://192.168.31.140:8089 // PROD MDLF "http://192.168.1.19"
|
String url = "https://api.myinfomate.be"; //DEV "http://192.168.31.96" http://192.168.31.140:8089 // PROD MDLF "http://192.168.1.19"
|
||||||
int? pinCode;
|
String? pinCode;
|
||||||
bool configOk = false;
|
bool configOk = false;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -188,7 +188,7 @@ class _ConfigViewWidget extends State<ConfigViewWidget> {
|
|||||||
hintText: "PIN",
|
hintText: "PIN",
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
pinCode = int.tryParse(value);
|
pinCode = value;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: Icons.pin,
|
icon: Icons.pin,
|
||||||
@ -329,7 +329,7 @@ class _ConfigViewWidget extends State<ConfigViewWidget> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<InstanceDTO?> getInstanceIdByPinCode(Client client, int pinCode) async {
|
Future<InstanceDTO?> getInstanceIdByPinCode(Client client, String pinCode) async {
|
||||||
try {
|
try {
|
||||||
var instance = await client.instanceApi!.instanceGetInstanceByPinCode(pinCode: pinCode);
|
var instance = await client.instanceApi!.instanceGetInstanceByPinCode(pinCode: pinCode);
|
||||||
return instance;
|
return instance;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/app_context.dart';
|
import 'package:tablet_app/app_context.dart';
|
||||||
import 'package:tablet_app/constants.dart';
|
import 'package:tablet_app/constants.dart';
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import 'package:flutter/rendering.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:package_info_plus/package_info_plus.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
@ -63,6 +63,8 @@ class _MainViewWidget extends State<MainViewWidget> {
|
|||||||
bool isImageBackground = false;
|
bool isImageBackground = false;
|
||||||
|
|
||||||
List<SectionDTO>? sectionsLocal;
|
List<SectionDTO>? sectionsLocal;
|
||||||
|
late List<dynamic> rawSectionsData;
|
||||||
|
|
||||||
bool isInit = true; // Use to make it faster and to load resource at init
|
bool isInit = true; // Use to make it faster and to load resource at init
|
||||||
bool isDialogOpen = false;
|
bool isDialogOpen = false;
|
||||||
|
|
||||||
@ -279,11 +281,20 @@ class _MainViewWidget extends State<MainViewWidget> {
|
|||||||
|
|
||||||
if(isInit) {
|
if(isInit) {
|
||||||
try {
|
try {
|
||||||
List<SectionDTO>? sections = await tabletAppContext.clientAPI!.sectionApi!.sectionGetFromConfiguration(tabletAppContext.configuration!.id!);
|
|
||||||
sections!.sort((a, b) => a.order!.compareTo(b.order!));
|
final rawList = await tabletAppContext.clientAPI!.sectionApi!.sectionGetFromConfigurationDetail(tabletAppContext.configuration!.id!);
|
||||||
sectionsLocal = sections;
|
//var sections = rawList.map((json) => SectionDTO.fromJson(json)).toList();
|
||||||
|
rawSectionsData = jsonDecode(jsonEncode(rawList));
|
||||||
|
rawSectionsData = rawSectionsData.map((json) => SectionDTO.fromJson(json)).toList();
|
||||||
|
List<SectionDTO> sectionList = rawSectionsData.whereType<SectionDTO>().toList();
|
||||||
|
sectionList.sort((a, b) => a.order!.compareTo(b.order!));
|
||||||
|
|
||||||
|
/*List<SectionDTO>? sections = await tabletAppContext.clientAPI!.sectionApi!.sectionGetFromConfiguration(tabletAppContext.configuration!.id!);
|
||||||
|
sections!.sort((a, b) => a.order!.compareTo(b.order!));*/
|
||||||
|
|
||||||
|
sectionsLocal = sectionList;
|
||||||
isInit = false;
|
isInit = false;
|
||||||
return sections;
|
return sectionList;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(e);
|
print(e);
|
||||||
print("IN CATCH");
|
print("IN CATCH");
|
||||||
@ -324,7 +335,7 @@ class _MainViewWidget extends State<MainViewWidget> {
|
|||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return SectionPageDetail(configurationDTO: configurationDTO, sectionDTO: sectionsLocal![index], textColor: textColor, isImageBackground: isImageBackground, elementToShow: getContent(tabletAppContext, sectionsLocal![index], isImageBackground), isFromMenu: false);
|
return SectionPageDetail(configurationDTO: configurationDTO, sectionDTO: sectionsLocal![index], textColor: textColor, isImageBackground: isImageBackground, elementToShow: getContent(tabletAppContext, sectionsLocal![index], isImageBackground, rawSectionsData[index]), isFromMenu: false);
|
||||||
},
|
},
|
||||||
),// For pushAndRemoveUntil
|
),// For pushAndRemoveUntil
|
||||||
);
|
);
|
||||||
@ -426,11 +437,11 @@ boxDecoration(AppContext appContext, SectionDTO section, bool isSelected) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<List<Map<String, dynamic>>> getByteIcons(TabletAppContext tabletAppContext, SectionDTO section) async {
|
Future<List<Map<String, dynamic>>> getByteIcons(TabletAppContext tabletAppContext, MapDTO mapDTO) async {
|
||||||
var mapDTO = MapDTO.fromJson(jsonDecode(section.data!));
|
//var mapDTO = MapDTO.fromJson(jsonDecode(section.data!));
|
||||||
var selectedMarkerIcon;
|
var selectedMarkerIcon;
|
||||||
|
|
||||||
if (mapDTO != null && mapDTO.iconSource != null) {
|
if (mapDTO.iconSource != null) {
|
||||||
if (kIsWeb) {
|
if (kIsWeb) {
|
||||||
Uint8List fileData = await http.readBytes(Uri.parse(mapDTO.iconSource!));
|
Uint8List fileData = await http.readBytes(Uri.parse(mapDTO.iconSource!));
|
||||||
selectedMarkerIcon = resizeImage(fileData, 40);
|
selectedMarkerIcon = resizeImage(fileData, 40);
|
||||||
@ -456,14 +467,14 @@ Future<List<Map<String, dynamic>>> getByteIcons(TabletAppContext tabletAppContex
|
|||||||
|
|
||||||
// Utiliser Future.forEach() pour itérer de manière asynchrone sur la liste des catégories
|
// Utiliser Future.forEach() pour itérer de manière asynchrone sur la liste des catégories
|
||||||
await Future.forEach(mapDTO!.categories!, (cat) async {
|
await Future.forEach(mapDTO!.categories!, (cat) async {
|
||||||
if (cat.iconUrl != null && cat.iconResourceId != null) {
|
if (cat.resourceDTO != null && cat.resourceDTO!.url != null && cat.resourceDTO!.id != null) {
|
||||||
Uint8List categoryIcon;
|
Uint8List categoryIcon;
|
||||||
if (kIsWeb) {
|
if (kIsWeb) {
|
||||||
categoryIcon = await http.readBytes(Uri.parse(cat.iconUrl!));
|
categoryIcon = await http.readBytes(Uri.parse(cat.resourceDTO!.url!));
|
||||||
} else {
|
} else {
|
||||||
File? localIcon = await _checkIfLocalResourceExists(tabletAppContext, cat.iconResourceId!);
|
File? localIcon = await _checkIfLocalResourceExists(tabletAppContext, cat.resourceDTO!.id!);
|
||||||
if(localIcon == null) {
|
if(localIcon == null) {
|
||||||
final ByteData imageData = await NetworkAssetBundle(Uri.parse(cat.iconUrl!)).load("");
|
final ByteData imageData = await NetworkAssetBundle(Uri.parse(cat.resourceDTO!.url!)).load("");
|
||||||
categoryIcon = await getBytesFromAsset(imageData, 50);
|
categoryIcon = await getBytesFromAsset(imageData, 50);
|
||||||
} else {
|
} else {
|
||||||
Uint8List bytes = await localIcon.readAsBytes();
|
Uint8List bytes = await localIcon.readAsBytes();
|
||||||
@ -510,17 +521,18 @@ Uint8List resizeImage(Uint8List data, int width) {
|
|||||||
return resizedData;
|
return resizedData;
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget getContent(TabletAppContext tabletAppContext, SectionDTO sectionSelected, bool isImageBackground) {
|
Widget getContent(TabletAppContext tabletAppContext, SectionDTO sectionSelected, bool isImageBackground, Object rawSectionData) {
|
||||||
switch (sectionSelected.type) {
|
switch (sectionSelected.type) {
|
||||||
case SectionType.Map : // MAP
|
case SectionType.Map : // MAP
|
||||||
|
MapDTO mapDTO = MapDTO.fromJson(rawSectionData)!;
|
||||||
return ChangeNotifierProvider<MapContext>(
|
return ChangeNotifierProvider<MapContext>(
|
||||||
create: (_) =>
|
create: (_) =>
|
||||||
MapContext(null),
|
MapContext(null),
|
||||||
child: FutureBuilder(
|
child: FutureBuilder(
|
||||||
future: getByteIcons(tabletAppContext, sectionSelected),
|
future: getByteIcons(tabletAppContext, mapDTO),
|
||||||
builder: (context, AsyncSnapshot<dynamic> snapshot) {
|
builder: (context, AsyncSnapshot<dynamic> snapshot) {
|
||||||
if (snapshot.connectionState == ConnectionState.done) {
|
if (snapshot.connectionState == ConnectionState.done) {
|
||||||
return MapViewWidget(section: sectionSelected, icons: snapshot.data);
|
return MapView(section: sectionSelected, icons: snapshot.data);
|
||||||
} else if (snapshot.connectionState == ConnectionState.none) {
|
} else if (snapshot.connectionState == ConnectionState.none) {
|
||||||
return Text("No data");
|
return Text("No data");
|
||||||
} else {
|
} else {
|
||||||
@ -538,26 +550,35 @@ Widget getContent(TabletAppContext tabletAppContext, SectionDTO sectionSelected,
|
|||||||
: CircularProgressIndicator()),*/
|
: CircularProgressIndicator()),*/
|
||||||
);
|
);
|
||||||
case SectionType.Web : // WEB
|
case SectionType.Web : // WEB
|
||||||
return WebView(section: sectionSelected);
|
WebDTO webDTO = WebDTO.fromJson(rawSectionData)!;
|
||||||
|
return WebView(section: webDTO);
|
||||||
case SectionType.Video : // Video
|
case SectionType.Video : // Video
|
||||||
return VideoView(section: sectionSelected);
|
VideoDTO videoDTO = VideoDTO.fromJson(rawSectionData)!;
|
||||||
|
return VideoView(section: videoDTO);
|
||||||
case SectionType.Slider :
|
case SectionType.Slider :
|
||||||
return SliderView(section: sectionSelected);
|
SliderDTO sliderDTO = SliderDTO.fromJson(rawSectionData)!;
|
||||||
|
return SliderView(section: sliderDTO);
|
||||||
case SectionType.Menu :
|
case SectionType.Menu :
|
||||||
return MenuView(section: sectionSelected, isImageBackground: isImageBackground);
|
MenuDTO menuDTO = MenuDTO.fromJson(rawSectionData)!;
|
||||||
case SectionType.Quizz :
|
return MenuView(section: menuDTO, isImageBackground: isImageBackground);
|
||||||
return QuizzView(section: sectionSelected);
|
case SectionType.Quiz :
|
||||||
|
QuizDTO quizDTO = QuizDTO.fromJson(rawSectionData)!;
|
||||||
|
return QuizzView(section: quizDTO);
|
||||||
case SectionType.Pdf :
|
case SectionType.Pdf :
|
||||||
return PDFViewWidget(section: sectionSelected);
|
PdfDTO pdfDTO = PdfDTO.fromJson(rawSectionData)!;
|
||||||
|
return PDFViewWidget(section: pdfDTO);
|
||||||
case SectionType.Puzzle :
|
case SectionType.Puzzle :
|
||||||
return PuzzleView(section: sectionSelected);
|
PuzzleDTO puzzleDTO = PuzzleDTO.fromJson(rawSectionData)!;
|
||||||
|
return PuzzleView(section: puzzleDTO);
|
||||||
case SectionType.Agenda :
|
case SectionType.Agenda :
|
||||||
return AgendaView(section: sectionSelected);
|
AgendaDTO agendaDTO = AgendaDTO.fromJson(rawSectionData)!;
|
||||||
|
return AgendaView(section: agendaDTO);
|
||||||
/*case SectionType.article : // TODO
|
/*case SectionType.article : // TODO
|
||||||
elementToShow = ArticleView(section: sectionSelected);
|
elementToShow = ArticleView(section: sectionSelected);
|
||||||
break;*/
|
break;*/
|
||||||
case SectionType.Weather :
|
case SectionType.Weather :
|
||||||
return WeatherView(section: sectionSelected);
|
WeatherDTO weatherDTO = WeatherDTO.fromJson(rawSectionData)!;
|
||||||
|
return WeatherView(section: weatherDTO);
|
||||||
default:
|
default:
|
||||||
return Text("Ce type n'est pas supporté");
|
return Text("Ce type n'est pas supporté");
|
||||||
};
|
};
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import 'package:flutter/foundation.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/loading_common.dart';
|
import 'package:tablet_app/Components/loading_common.dart';
|
||||||
import 'package:tablet_app/Components/multi_select_container.dart';
|
import 'package:tablet_app/Components/multi_select_container.dart';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_map/flutter_map.dart';
|
import 'package:flutter_map/flutter_map.dart';
|
||||||
import 'package:latlong2/latlong.dart';
|
import 'package:latlong2/latlong.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Models/tabletContext.dart';
|
import 'package:tablet_app/Models/tabletContext.dart';
|
||||||
import 'package:tablet_app/Screens/Map/map_context.dart';
|
import 'package:tablet_app/Screens/Map/map_context.dart';
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
|
|||||||
|
|
||||||
//import 'package:generate_tree/generate_tree.dart';
|
//import 'package:generate_tree/generate_tree.dart';
|
||||||
//import 'package:generate_tree/treeNode.dart';
|
//import 'package:generate_tree/treeNode.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Helpers/translationHelper.dart';
|
import 'package:tablet_app/Helpers/translationHelper.dart';
|
||||||
import 'package:tablet_app/Models/tabletContext.dart';
|
import 'package:tablet_app/Models/tabletContext.dart';
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import 'dart:async';
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Models/tabletContext.dart';
|
import 'package:tablet_app/Models/tabletContext.dart';
|
||||||
import 'package:tablet_app/Screens/Map/map_context.dart';
|
import 'package:tablet_app/Screens/Map/map_context.dart';
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:mapbox_maps_flutter/mapbox_maps_flutter.dart' as mapBox;
|
import 'package:mapbox_maps_flutter/mapbox_maps_flutter.dart' as mapBox;
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Models/tabletContext.dart';
|
import 'package:tablet_app/Models/tabletContext.dart';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
|
|
||||||
class MapContext with ChangeNotifier {
|
class MapContext with ChangeNotifier {
|
||||||
GeoPointDTO? _selectedPoint;
|
GeoPointDTO? _selectedPoint;
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import 'package:flutter/foundation.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
// 'package:flutter/services.dart';
|
// 'package:flutter/services.dart';
|
||||||
//import 'package:google_maps_flutter/google_maps_flutter.dart';
|
//import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
/*import 'package:tablet_app/Components/loading.dart';
|
/*import 'package:tablet_app/Components/loading.dart';
|
||||||
import 'package:tablet_app/Components/loading_common.dart';*/
|
import 'package:tablet_app/Components/loading_common.dart';*/
|
||||||
@ -26,16 +26,16 @@ import 'google_map_view.dart';
|
|||||||
//Set<Marker> markers = {};
|
//Set<Marker> markers = {};
|
||||||
List<GeoPointDTO> markersList = [];
|
List<GeoPointDTO> markersList = [];
|
||||||
|
|
||||||
class MapViewWidget extends StatefulWidget {
|
class MapView extends StatefulWidget {
|
||||||
final SectionDTO section;
|
final MapDTO section;
|
||||||
final List<Map<String, dynamic>> icons;
|
final List<Map<String, dynamic>> icons;
|
||||||
MapViewWidget({Key? key, required this.section, required this.icons}) : super(key: key);
|
MapView({Key? key, required this.section, required this.icons}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_MapViewWidget createState() => _MapViewWidget();
|
_MapView createState() => _MapView();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _MapViewWidget extends State<MapViewWidget> {
|
class _MapView extends State<MapView> {
|
||||||
MapDTO? mapDTO;
|
MapDTO? mapDTO;
|
||||||
//Completer<GoogleMapController> _controller = Completer();
|
//Completer<GoogleMapController> _controller = Completer();
|
||||||
//Uint8List? selectedMarkerIcon;
|
//Uint8List? selectedMarkerIcon;
|
||||||
@ -53,7 +53,8 @@ class _MapViewWidget extends State<MapViewWidget> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
mapDTO = MapDTO.fromJson(jsonDecode(widget.section.data!));
|
//mapDTO = MapDTO.fromJson(jsonDecode(widget.section.data!));
|
||||||
|
mapDTO = widget.section;
|
||||||
_geoPoints.value = mapDTO!.points!;
|
_geoPoints.value = mapDTO!.points!;
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
@ -101,7 +102,7 @@ class _MapViewWidget extends State<MapViewWidget> {
|
|||||||
case MapProvider.MapBox:
|
case MapProvider.MapBox:
|
||||||
return MapBoxView(language: appContext.getContext().language, geoPoints: value, mapDTO: mapDTO, icons: widget.icons);
|
return MapBoxView(language: appContext.getContext().language, geoPoints: value, mapDTO: mapDTO, icons: widget.icons);
|
||||||
// If mapbox bug as 3.24 flutter, we can test via this new widget
|
// If mapbox bug as 3.24 flutter, we can test via this new widget
|
||||||
//return FlutterMapView(language: appContext.getContext().language, geoPoints: value, mapDTO: mapDTO, icons: widget.icons);
|
return FlutterMapView(language: appContext.getContext().language, geoPoints: value, mapDTO: mapDTO, icons: widget.icons);
|
||||||
default:
|
default:
|
||||||
// By default google
|
// By default google
|
||||||
return GoogleMapView(language: appContext.getContext().language, geoPoints: value, mapDTO: mapDTO!, icons: widget.icons);
|
return GoogleMapView(language: appContext.getContext().language, geoPoints: value, mapDTO: mapDTO!, icons: widget.icons);
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import 'package:flutter/cupertino.dart';
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:photo_view/photo_view.dart';
|
import 'package:photo_view/photo_view.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:qr_flutter/qr_flutter.dart';
|
import 'package:qr_flutter/qr_flutter.dart';
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import 'package:cached_network_image/cached_network_image.dart';
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/loading_common.dart';
|
import 'package:tablet_app/Components/loading_common.dart';
|
||||||
import 'package:tablet_app/Helpers/ImageCustomProvider.dart';
|
import 'package:tablet_app/Helpers/ImageCustomProvider.dart';
|
||||||
@ -25,7 +25,7 @@ import 'package:tablet_app/app_context.dart';
|
|||||||
import 'package:tablet_app/constants.dart';
|
import 'package:tablet_app/constants.dart';
|
||||||
|
|
||||||
class MenuView extends StatefulWidget {
|
class MenuView extends StatefulWidget {
|
||||||
final SectionDTO section;
|
final MenuDTO section;
|
||||||
final bool isImageBackground;
|
final bool isImageBackground;
|
||||||
MenuView({required this.section, required this.isImageBackground});
|
MenuView({required this.section, required this.isImageBackground});
|
||||||
|
|
||||||
@ -40,9 +40,11 @@ class _MenuView extends State<MenuView> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
print(widget.section.data);
|
/*print(widget.section.data);
|
||||||
menuDTO = MenuDTO.fromJson(jsonDecode(widget.section.data!))!;
|
menuDTO = MenuDTO.fromJson(jsonDecode(widget.section.data!))!;
|
||||||
print(menuDTO);
|
print(menuDTO);*/
|
||||||
|
menuDTO = widget.section;
|
||||||
|
menuDTO.sections!.sort((a, b) => a.order!.compareTo(b.order!)); // useless, we get these after that
|
||||||
|
|
||||||
isImageBackground = widget.isImageBackground;
|
isImageBackground = widget.isImageBackground;
|
||||||
|
|
||||||
|
|||||||
@ -2,14 +2,14 @@ import 'dart:ffi';
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Models/tabletContext.dart';
|
import 'package:tablet_app/Models/tabletContext.dart';
|
||||||
import 'package:tablet_app/app_context.dart';
|
import 'package:tablet_app/app_context.dart';
|
||||||
import 'package:tablet_app/constants.dart';
|
import 'package:tablet_app/constants.dart';
|
||||||
|
|
||||||
class PdfFilter extends StatefulWidget {
|
class PdfFilter extends StatefulWidget {
|
||||||
final List<PDFFileDTO> pdfsList;
|
final List<OrderedTranslationAndResourceDTO> pdfsList;
|
||||||
final Function(int?) onPDFSelected;
|
final Function(int?) onPDFSelected;
|
||||||
|
|
||||||
PdfFilter({required this.pdfsList, required this.onPDFSelected});
|
PdfFilter({required this.pdfsList, required this.onPDFSelected});
|
||||||
@ -35,7 +35,7 @@ class _PdfFilterState extends State<PdfFilter> {
|
|||||||
if (widget.pdfsList.isNotEmpty) {
|
if (widget.pdfsList.isNotEmpty) {
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: HtmlWidget(
|
title: HtmlWidget(
|
||||||
'${widget.pdfsList[index].pdfFilesAndTitles!.firstWhere((pfat) => pfat.language == currentLanguage).value}',
|
'${widget.pdfsList[index].translationAndResourceDTOs!.firstWhere((pfat) => pfat.language == currentLanguage).value}',
|
||||||
textStyle: TextStyle(
|
textStyle: TextStyle(
|
||||||
fontSize: 15.0,
|
fontSize: 15.0,
|
||||||
fontWeight: _selectedOrderPdf == widget.pdfsList[index].order ? FontWeight.bold : FontWeight.normal,
|
fontWeight: _selectedOrderPdf == widget.pdfsList[index].order ? FontWeight.bold : FontWeight.normal,
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import 'dart:ui' as ui;
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_pdfview/flutter_pdfview.dart';
|
import 'package:flutter_pdfview/flutter_pdfview.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/loading_common.dart';
|
import 'package:tablet_app/Components/loading_common.dart';
|
||||||
@ -18,8 +18,8 @@ import 'package:tablet_app/constants.dart';
|
|||||||
|
|
||||||
|
|
||||||
class PDFViewWidget extends StatefulWidget {
|
class PDFViewWidget extends StatefulWidget {
|
||||||
final SectionDTO? section;
|
final PdfDTO section;
|
||||||
PDFViewWidget({this.section});
|
PDFViewWidget({required this.section});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_PDFViewWidget createState() => _PDFViewWidget();
|
_PDFViewWidget createState() => _PDFViewWidget();
|
||||||
@ -33,14 +33,17 @@ class _PDFViewWidget extends State<PDFViewWidget> {
|
|||||||
int? currentPage = 0;
|
int? currentPage = 0;
|
||||||
bool isReady = false;
|
bool isReady = false;
|
||||||
String errorMessage = '';
|
String errorMessage = '';
|
||||||
late ValueNotifier<PDFFileDTO?> selectedPdf = ValueNotifier<PDFFileDTO?>(pdfDTO.pdfs!.first);
|
late ValueNotifier<OrderedTranslationAndResourceDTO?> selectedPdf = ValueNotifier<OrderedTranslationAndResourceDTO?>(pdfDTO.pdfs!.first);
|
||||||
ValueNotifier<Map<String, int>> currentState = ValueNotifier<Map<String, int>>({'page': 0, 'total': 1});
|
ValueNotifier<Map<String, int>> currentState = ValueNotifier<Map<String, int>>({'page': 0, 'total': 1});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
print(widget.section!.data);
|
/*print(widget.section!.data);
|
||||||
pdfDTO = PdfDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
pdfDTO = PdfDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
||||||
print(pdfDTO);
|
print(pdfDTO);*/
|
||||||
|
pdfDTO = widget.section;
|
||||||
|
pdfDTO.pdfs!.sort((a, b) => a.order!.compareTo(b.order!));
|
||||||
|
|
||||||
super.initState();
|
super.initState();
|
||||||
|
|
||||||
/*createFileOfPdfUrl(pdfDTO.source_!).then((f) {
|
/*createFileOfPdfUrl(pdfDTO.source_!).then((f) {
|
||||||
@ -52,20 +55,20 @@ class _PDFViewWidget extends State<PDFViewWidget> {
|
|||||||
});*/
|
});*/
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<File?> createFileOfPdfUrl(TabletAppContext tabletAppContext, PDFFileDTO pdfFileDTO) async {
|
Future<File?> createFileOfPdfUrl(TabletAppContext tabletAppContext, OrderedTranslationAndResourceDTO pdfFileDTO) async {
|
||||||
Completer<File?> completer = Completer();
|
Completer<File?> completer = Completer();
|
||||||
|
|
||||||
if(pdfFileDTO.pdfFilesAndTitles!.firstWhere((pfat) => pfat.language == tabletAppContext.language).resourceId == null) {
|
if(pdfFileDTO.translationAndResourceDTOs!.firstWhere((pfat) => pfat.language == tabletAppContext.language).resourceId == null) {
|
||||||
completer.complete(null);
|
completer.complete(null);
|
||||||
} else {
|
} else {
|
||||||
var file = await _checkIfLocalResourceExists(tabletAppContext, pdfFileDTO.pdfFilesAndTitles!.firstWhere((pfat) => pfat.language == tabletAppContext.language).resourceId!);
|
var file = await _checkIfLocalResourceExists(tabletAppContext, pdfFileDTO.translationAndResourceDTOs!.firstWhere((pfat) => pfat.language == tabletAppContext.language).resourceId!);
|
||||||
|
|
||||||
if(file == null) {
|
if(file == null) {
|
||||||
print("Start download file from internet!");
|
print("Start download file from internet!");
|
||||||
try {
|
try {
|
||||||
// "https://berlin2017.droidcon.cod.newthinking.net/sites/global.droidcon.cod.newthinking.net/files/media/documents/Flutter%20-%2060FPS%20UI%20of%20the%20future%20%20-%20DroidconDE%2017.pdf";
|
// "https://berlin2017.droidcon.cod.newthinking.net/sites/global.droidcon.cod.newthinking.net/files/media/documents/Flutter%20-%2060FPS%20UI%20of%20the%20future%20%20-%20DroidconDE%2017.pdf";
|
||||||
// final url = "https://pdfkit.org/docs/guide.pdf";
|
// final url = "https://pdfkit.org/docs/guide.pdf";
|
||||||
final url = pdfFileDTO.pdfFilesAndTitles!.firstWhere((pfat) => pfat.language == tabletAppContext.language).resourceUrl!;
|
final url = pdfFileDTO.translationAndResourceDTOs!.firstWhere((pfat) => pfat.language == tabletAppContext.language).resource!.url!;
|
||||||
final filename = url.substring(url.lastIndexOf("/") + 1);
|
final filename = url.substring(url.lastIndexOf("/") + 1);
|
||||||
var request = await HttpClient().getUrl(Uri.parse(url));
|
var request = await HttpClient().getUrl(Uri.parse(url));
|
||||||
var response = await request.close();
|
var response = await request.close();
|
||||||
@ -130,7 +133,7 @@ class _PDFViewWidget extends State<PDFViewWidget> {
|
|||||||
flex: 4,
|
flex: 4,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: ValueListenableBuilder<PDFFileDTO?>(
|
child: ValueListenableBuilder<OrderedTranslationAndResourceDTO?>(
|
||||||
valueListenable: selectedPdf,
|
valueListenable: selectedPdf,
|
||||||
builder: (context, value, _) {
|
builder: (context, value, _) {
|
||||||
return FutureBuilder(
|
return FutureBuilder(
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import 'dart:async';
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Models/map-marker.dart';
|
import 'package:tablet_app/Models/map-marker.dart';
|
||||||
import 'package:tablet_app/Screens/Map/map_context.dart';
|
import 'package:tablet_app/Screens/Map/map_context.dart';
|
||||||
@ -266,7 +266,7 @@ class _PreviousViewWidget extends State<PreviousViewWidget> with TickerProviderS
|
|||||||
child: ChangeNotifierProvider<MapContext>(
|
child: ChangeNotifierProvider<MapContext>(
|
||||||
create: (_) =>
|
create: (_) =>
|
||||||
MapContext(null),
|
MapContext(null),
|
||||||
child: MapViewWidget(section: SectionDTO(), icons: []) /*FutureBuilder(
|
child: MapView(section: SectionDTO(), icons: []) /*FutureBuilder(
|
||||||
future: _url,
|
future: _url,
|
||||||
builder: (BuildContext context, AsyncSnapshot snapshot) => snapshot.hasData
|
builder: (BuildContext context, AsyncSnapshot snapshot) => snapshot.hasData
|
||||||
? WebViewWidget(url: snapshot.data,)
|
? WebViewWidget(url: snapshot.data,)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:tablet_app/Components/show_element_for_resource.dart';
|
import 'package:tablet_app/Components/show_element_for_resource.dart';
|
||||||
import 'package:tablet_app/Models/tabletContext.dart';
|
import 'package:tablet_app/Models/tabletContext.dart';
|
||||||
import 'package:tablet_app/app_context.dart';
|
import 'package:tablet_app/app_context.dart';
|
||||||
@ -33,7 +33,7 @@ void showMessage(TranslationAndResourceDTO translationAndResourceDTO, AppContext
|
|||||||
borderRadius: BorderRadius.circular(tabletAppContext.configuration!.roundedValue?.toDouble() ?? 30),
|
borderRadius: BorderRadius.circular(tabletAppContext.configuration!.roundedValue?.toDouble() ?? 30),
|
||||||
//border: Border.all(width: 3, color: Colors.black)
|
//border: Border.all(width: 3, color: Colors.black)
|
||||||
),
|
),
|
||||||
child: showElementForResource(ResourceDTO(id: translationAndResourceDTO.resourceId, type: translationAndResourceDTO.resourceType, url: translationAndResourceDTO.resourceUrl), appContext, true, false),
|
child: showElementForResource(ResourceDTO(id: translationAndResourceDTO.resourceId, type: translationAndResourceDTO.resource!.type, url: translationAndResourceDTO.resource!.url), appContext, true, false),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import 'dart:io';
|
|||||||
|
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/loading_common.dart';
|
import 'package:tablet_app/Components/loading_common.dart';
|
||||||
import 'package:tablet_app/Models/tabletContext.dart';
|
import 'package:tablet_app/Models/tabletContext.dart';
|
||||||
@ -16,8 +16,8 @@ import 'puzzle_piece.dart';
|
|||||||
const IMAGE_PATH = 'image_path';
|
const IMAGE_PATH = 'image_path';
|
||||||
|
|
||||||
class PuzzleView extends StatefulWidget {
|
class PuzzleView extends StatefulWidget {
|
||||||
final SectionDTO? section;
|
final PuzzleDTO section;
|
||||||
PuzzleView({this.section});
|
PuzzleView({required this.section});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_PuzzleView createState() => _PuzzleView();
|
_PuzzleView createState() => _PuzzleView();
|
||||||
@ -36,8 +36,8 @@ class _PuzzleView extends State<PuzzleView> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
puzzleDTO = PuzzleDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
//puzzleDTO = PuzzleDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
||||||
|
puzzleDTO = widget.section;
|
||||||
puzzleDTO.rows = puzzleDTO.rows != null ? puzzleDTO.rows : 3;
|
puzzleDTO.rows = puzzleDTO.rows != null ? puzzleDTO.rows : 3;
|
||||||
puzzleDTO.cols = puzzleDTO.cols != null ? puzzleDTO.cols : 3;
|
puzzleDTO.cols = puzzleDTO.cols != null ? puzzleDTO.cols : 3;
|
||||||
|
|
||||||
@ -55,10 +55,10 @@ class _PuzzleView extends State<PuzzleView> {
|
|||||||
|
|
||||||
getRealWidgetSize();
|
getRealWidgetSize();
|
||||||
|
|
||||||
if(puzzleDTO.image != null && puzzleDTO.image!.resourceUrl != null) {
|
if(puzzleDTO.puzzleImage != null && puzzleDTO.puzzleImage!.url != null) {
|
||||||
//splitImage(Image.network(puzzleDTO.image!.resourceUrl!));
|
//splitImage(Image.network(puzzleDTO.image!.resourceUrl!));
|
||||||
splitImage(CachedNetworkImage(
|
splitImage(CachedNetworkImage(
|
||||||
imageUrl: puzzleDTO.image!.resourceUrl!,
|
imageUrl: puzzleDTO.puzzleImage!.url!,
|
||||||
fit: BoxFit.fill,
|
fit: BoxFit.fill,
|
||||||
errorWidget: (context, url, error) => Icon(Icons.error),
|
errorWidget: (context, url, error) => Icon(Icons.error),
|
||||||
));
|
));
|
||||||
@ -211,7 +211,7 @@ class _PuzzleView extends State<PuzzleView> {
|
|||||||
key: _widgetKey,
|
key: _widgetKey,
|
||||||
padding: const EdgeInsets.all(0.0),
|
padding: const EdgeInsets.all(0.0),
|
||||||
child: isSplittingImage ? Center(child: LoadingCommon()) :
|
child: isSplittingImage ? Center(child: LoadingCommon()) :
|
||||||
puzzleDTO.image == null || puzzleDTO.image!.resourceUrl == null || realWidgetSize == null
|
puzzleDTO.puzzleImage == null || puzzleDTO.puzzleImage!.url == null || realWidgetSize == null
|
||||||
? Center(child: Text("Aucune image à afficher", style: TextStyle(fontSize: kNoneInfoOrIncorrect)))
|
? Center(child: Text("Aucune image à afficher", style: TextStyle(fontSize: kNoneInfoOrIncorrect)))
|
||||||
: Center(
|
: Center(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import 'package:flutter/gestures.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:photo_view/photo_view.dart';
|
import 'package:photo_view/photo_view.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/Buttons/rounded_button.dart';
|
import 'package:tablet_app/Components/Buttons/rounded_button.dart';
|
||||||
@ -27,9 +27,9 @@ import 'drawStrawberry.dart';
|
|||||||
|
|
||||||
|
|
||||||
class QuizzView extends StatefulWidget {
|
class QuizzView extends StatefulWidget {
|
||||||
final SectionDTO? section;
|
final QuizDTO section;
|
||||||
GlobalKey<ScaffoldState>? key;
|
GlobalKey<ScaffoldState>? key;
|
||||||
QuizzView({this.section, this.key});
|
QuizzView({required this.section, this.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_QuizzView createState() => _QuizzView();
|
_QuizzView createState() => _QuizzView();
|
||||||
@ -37,7 +37,7 @@ class QuizzView extends StatefulWidget {
|
|||||||
|
|
||||||
class _QuizzView extends State<QuizzView> {
|
class _QuizzView extends State<QuizzView> {
|
||||||
ConfettiController? _controllerCenter;
|
ConfettiController? _controllerCenter;
|
||||||
QuizzDTO quizzDTO = QuizzDTO();
|
QuizDTO quizzDTO = QuizDTO();
|
||||||
List<QuestionSubDTO> _questionsSubDTO = <QuestionSubDTO>[];
|
List<QuestionSubDTO> _questionsSubDTO = <QuestionSubDTO>[];
|
||||||
cs.CarouselController? sliderController;
|
cs.CarouselController? sliderController;
|
||||||
int currentIndex = 1;
|
int currentIndex = 1;
|
||||||
@ -52,7 +52,8 @@ class _QuizzView extends State<QuizzView> {
|
|||||||
|
|
||||||
sliderController = cs.CarouselController();
|
sliderController = cs.CarouselController();
|
||||||
|
|
||||||
quizzDTO = QuizzDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
//quizzDTO = QuizzDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
||||||
|
quizzDTO = widget.section;
|
||||||
|
|
||||||
quizzDTO.questions!.sort((a, b) => a.order!.compareTo(b.order!));
|
quizzDTO.questions!.sort((a, b) => a.order!.compareTo(b.order!));
|
||||||
_questionsSubDTO = QuestionSubDTO().fromJSON(quizzDTO.questions!);
|
_questionsSubDTO = QuestionSubDTO().fromJSON(quizzDTO.questions!);
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import 'package:flutter/foundation.dart';
|
|||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/Carousel/carousel_slider.dart' as cs;
|
import 'package:tablet_app/Components/Carousel/carousel_slider.dart' as cs;
|
||||||
import 'package:tablet_app/Helpers/ImageCustomProvider.dart';
|
import 'package:tablet_app/Helpers/ImageCustomProvider.dart';
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import 'package:flutter/foundation.dart';
|
|||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Components/Carousel/carousel_slider.dart' as cs;
|
import 'package:tablet_app/Components/Carousel/carousel_slider.dart' as cs;
|
||||||
@ -18,8 +18,8 @@ import 'package:tablet_app/constants.dart';
|
|||||||
import 'package:photo_view/photo_view.dart';
|
import 'package:photo_view/photo_view.dart';
|
||||||
|
|
||||||
class SliderView extends StatefulWidget {
|
class SliderView extends StatefulWidget {
|
||||||
final SectionDTO? section;
|
final SliderDTO section;
|
||||||
SliderView({this.section});
|
SliderView({required this.section});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_SliderView createState() => _SliderView();
|
_SliderView createState() => _SliderView();
|
||||||
@ -35,8 +35,8 @@ class _SliderView extends State<SliderView> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
sliderController = cs.CarouselController();
|
sliderController = cs.CarouselController();
|
||||||
sliderDTO = SliderDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
//sliderDTO = SliderDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
||||||
|
sliderDTO = widget.section;
|
||||||
sliderDTO.contents!.sort((a, b) => a.order!.compareTo(b.order!));
|
sliderDTO.contents!.sort((a, b) => a.order!.compareTo(b.order!));
|
||||||
|
|
||||||
super.initState();
|
super.initState();
|
||||||
@ -256,10 +256,10 @@ class _SliderView extends State<SliderView> {
|
|||||||
var widgetToInclude;
|
var widgetToInclude;
|
||||||
TabletAppContext tabletAppContext = appContext.getContext() as TabletAppContext;
|
TabletAppContext tabletAppContext = appContext.getContext() as TabletAppContext;
|
||||||
|
|
||||||
switch(i.resourceType) {
|
switch(i.resource!.type) {
|
||||||
case ResourceType.Image:
|
case ResourceType.Image:
|
||||||
widgetToInclude = PhotoView(
|
widgetToInclude = PhotoView(
|
||||||
imageProvider: ImageCustomProvider.getImageProvider(appContext, i.resourceId!, i.resourceUrl!),
|
imageProvider: ImageCustomProvider.getImageProvider(appContext, i.resourceId!, i.resource!.url!),
|
||||||
minScale: PhotoViewComputedScale.contained * 0.8,
|
minScale: PhotoViewComputedScale.contained * 0.8,
|
||||||
maxScale: PhotoViewComputedScale.contained * 3.0,
|
maxScale: PhotoViewComputedScale.contained * 3.0,
|
||||||
backgroundDecoration: BoxDecoration(
|
backgroundDecoration: BoxDecoration(
|
||||||
@ -271,7 +271,7 @@ class _SliderView extends State<SliderView> {
|
|||||||
break;
|
break;
|
||||||
case ResourceType.ImageUrl:
|
case ResourceType.ImageUrl:
|
||||||
widgetToInclude = PhotoView(
|
widgetToInclude = PhotoView(
|
||||||
imageProvider: CachedNetworkImageProvider(i.resourceUrl!),
|
imageProvider: CachedNetworkImageProvider(i.resource!.url!),
|
||||||
minScale: PhotoViewComputedScale.contained * 0.8,
|
minScale: PhotoViewComputedScale.contained * 0.8,
|
||||||
maxScale: PhotoViewComputedScale.contained * 3.0,
|
maxScale: PhotoViewComputedScale.contained * 3.0,
|
||||||
backgroundDecoration: BoxDecoration(
|
backgroundDecoration: BoxDecoration(
|
||||||
@ -290,7 +290,7 @@ class _SliderView extends State<SliderView> {
|
|||||||
//shape: BoxShape.rectangle,
|
//shape: BoxShape.rectangle,
|
||||||
borderRadius: BorderRadius.circular(tabletAppContext.configuration!.roundedValue?.toDouble() ?? 15.0),
|
borderRadius: BorderRadius.circular(tabletAppContext.configuration!.roundedValue?.toDouble() ?? 15.0),
|
||||||
),
|
),
|
||||||
child: showElementForResource(ResourceDTO(id: i.resourceId, url: i.resourceUrl, type: i.resourceType), appContext, false, true),
|
child: showElementForResource(ResourceDTO(id: i.resourceId, url: i.resource!.url, type: i.resource!.type), appContext, false, true),
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,15 +2,15 @@ import 'dart:convert';
|
|||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:tablet_app/constants.dart';
|
import 'package:tablet_app/constants.dart';
|
||||||
import 'package:youtube_player_flutter/youtube_player_flutter.dart';
|
import 'package:youtube_player_flutter/youtube_player_flutter.dart';
|
||||||
import 'package:youtube_player_iframe/youtube_player_iframe.dart' as iframe;
|
import 'package:youtube_player_iframe/youtube_player_iframe.dart' as iframe;
|
||||||
//import 'package:youtube_player_flutter/youtube_player_flutter.dart';
|
//import 'package:youtube_player_flutter/youtube_player_flutter.dart';
|
||||||
|
|
||||||
class VideoView extends StatefulWidget {
|
class VideoView extends StatefulWidget {
|
||||||
final SectionDTO? section;
|
final VideoDTO section;
|
||||||
VideoView({this.section});
|
VideoView({required this.section});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_VideoView createState() => _VideoView();
|
_VideoView createState() => _VideoView();
|
||||||
@ -23,9 +23,10 @@ class _VideoView extends State<VideoView> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
print(widget.section!.data);
|
//print(widget.section!.data);
|
||||||
videoDTO = VideoDTO.fromJson(jsonDecode(widget.section!.data!));
|
//videoDTO = VideoDTO.fromJson(jsonDecode(widget.section!.data!));
|
||||||
print(videoDTO);
|
//print(videoDTO);
|
||||||
|
videoDTO= widget.section;
|
||||||
|
|
||||||
String? videoId;
|
String? videoId;
|
||||||
if (videoDTO!.source_ != null && videoDTO!.source_!.length > 0 ) {
|
if (videoDTO!.source_ != null && videoDTO!.source_!.length > 0 ) {
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import 'package:cached_network_image/cached_network_image.dart';
|
|||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:tablet_app/Helpers/translationHelper.dart';
|
import 'package:tablet_app/Helpers/translationHelper.dart';
|
||||||
import 'package:tablet_app/Models/WeatherData.dart';
|
import 'package:tablet_app/Models/WeatherData.dart';
|
||||||
@ -15,7 +15,7 @@ import 'package:tablet_app/constants.dart';
|
|||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
|
|
||||||
class WeatherView extends StatefulWidget {
|
class WeatherView extends StatefulWidget {
|
||||||
final SectionDTO? section;
|
final WeatherDTO section;
|
||||||
WeatherView({required this.section});
|
WeatherView({required this.section});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -29,9 +29,10 @@ class _WeatherViewState extends State<WeatherView> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
print(widget.section!.data);
|
/*print(widget.section!.data);
|
||||||
weatherDTO = WeatherDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
weatherDTO = WeatherDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
||||||
print(weatherDTO);
|
print(weatherDTO);*/
|
||||||
|
weatherDTO = widget.section;
|
||||||
if(weatherDTO.result != null) {
|
if(weatherDTO.result != null) {
|
||||||
Map<String, dynamic> weatherResultInJson = jsonDecode(weatherDTO.result!);
|
Map<String, dynamic> weatherResultInJson = jsonDecode(weatherDTO.result!);
|
||||||
weatherData = WeatherData.fromJson(weatherResultInJson);
|
weatherData = WeatherData.fromJson(weatherResultInJson);
|
||||||
|
|||||||
@ -4,15 +4,15 @@ import 'dart:ui' as ui;
|
|||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:tablet_app/constants.dart';
|
import 'package:tablet_app/constants.dart';
|
||||||
import 'package:webview_flutter/webview_flutter.dart';
|
import 'package:webview_flutter/webview_flutter.dart';
|
||||||
import 'package:webview_flutter_platform_interface/webview_flutter_platform_interface.dart';
|
import 'package:webview_flutter_platform_interface/webview_flutter_platform_interface.dart';
|
||||||
//import 'package:webview_flutter_web/webview_flutter_web.dart';
|
//import 'package:webview_flutter_web/webview_flutter_web.dart';
|
||||||
|
|
||||||
class WebView extends StatefulWidget {
|
class WebView extends StatefulWidget {
|
||||||
final SectionDTO? section;
|
final WebDTO section;
|
||||||
WebView({this.section});
|
WebView({required this.section});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_WebView createState() => _WebView();
|
_WebView createState() => _WebView();
|
||||||
@ -27,8 +27,9 @@ class _WebView extends State<WebView> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
print(widget.section!.data);
|
//print(widget.section!.data);
|
||||||
webDTO = WebDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
webDTO = widget.section;
|
||||||
|
//webDTO = WebDTO.fromJson(jsonDecode(widget.section!.data!))!;
|
||||||
print(webDTO);
|
print(webDTO);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import 'dart:io';
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
//import 'package:ota_update/ota_update.dart';
|
//import 'package:ota_update/ota_update.dart';
|
||||||
//import 'package:package_info/package_info.dart';
|
//import 'package:package_info/package_info.dart';
|
||||||
//import 'package:package_info_plus/package_info_plus.dart';
|
//import 'package:package_info_plus/package_info_plus.dart';
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
|
// Openapi Generator last run: : 2025-05-23T15:19:19.419517
|
||||||
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart';
|
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart';
|
||||||
|
|
||||||
@Openapi(
|
@Openapi(
|
||||||
additionalProperties: AdditionalProperties(pubName: 'manager_api', pubAuthor: 'Fransolet Thomas'),
|
additionalProperties:
|
||||||
inputSpecFile: 'lib/api/swagger.yaml',
|
AdditionalProperties(pubName: 'manager_api_new', pubAuthor: 'Fransolet Thomas', useEnumExtension: true),
|
||||||
|
inputSpec: InputSpec(path: 'lib/api/swagger.yaml'),
|
||||||
generatorName: Generator.dart,
|
generatorName: Generator.dart,
|
||||||
alwaysRun: true,
|
outputDirectory: 'manager_api_new')
|
||||||
outputDirectory: 'manager_api')
|
|
||||||
class Example extends OpenapiGeneratorConfig {}
|
class Example extends OpenapiGeneratorConfig {}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
7770
lib/api/swagger.yaml
7770
lib/api/swagger.yaml
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
//import 'package:openapi_dart_common/openapi.dart';
|
//import 'package:openapi_dart_common/openapi.dart';
|
||||||
|
|
||||||
class Client {
|
class Client {
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import 'dart:io';
|
|||||||
import 'package:firebase_core/firebase_core.dart';
|
import 'package:firebase_core/firebase_core.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
import 'package:mapbox_maps_flutter/mapbox_maps_flutter.dart';
|
import 'package:mapbox_maps_flutter/mapbox_maps_flutter.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
unset
|
|
||||||
@ -1,192 +0,0 @@
|
|||||||
# manager_api
|
|
||||||
API Manager Service
|
|
||||||
|
|
||||||
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
||||||
|
|
||||||
- API version: Version Alpha
|
|
||||||
- Build package: org.openapitools.codegen.languages.DartClientCodegen
|
|
||||||
|
|
||||||
## Requirements
|
|
||||||
|
|
||||||
Dart 2.12 or later
|
|
||||||
|
|
||||||
## Installation & Usage
|
|
||||||
|
|
||||||
### Github
|
|
||||||
If this Dart package is published to Github, add the following dependency to your pubspec.yaml
|
|
||||||
```
|
|
||||||
dependencies:
|
|
||||||
manager_api:
|
|
||||||
git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
||||||
```
|
|
||||||
|
|
||||||
### Local
|
|
||||||
To use the package in your local drive, add the following dependency to your pubspec.yaml
|
|
||||||
```
|
|
||||||
dependencies:
|
|
||||||
manager_api:
|
|
||||||
path: /path/to/manager_api
|
|
||||||
```
|
|
||||||
|
|
||||||
## Tests
|
|
||||||
|
|
||||||
TODO
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
||||||
|
|
||||||
```dart
|
|
||||||
import 'package:manager_api/api.dart';
|
|
||||||
|
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
||||||
|
|
||||||
final api_instance = AuthenticationApi();
|
|
||||||
final grantType = grantType_example; // String |
|
|
||||||
final username = username_example; // String |
|
|
||||||
final password = password_example; // String |
|
|
||||||
final clientId = clientId_example; // String |
|
|
||||||
final clientSecret = clientSecret_example; // String |
|
|
||||||
|
|
||||||
try {
|
|
||||||
final result = api_instance.authenticationAuthenticateWithForm(grantType, username, password, clientId, clientSecret);
|
|
||||||
print(result);
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling AuthenticationApi->authenticationAuthenticateWithForm: $e\n');
|
|
||||||
}
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
## Documentation for API Endpoints
|
|
||||||
|
|
||||||
All URIs are relative to *https://api.myinfomate.be*
|
|
||||||
|
|
||||||
Class | Method | HTTP request | Description
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
*AuthenticationApi* | [**authenticationAuthenticateWithForm**](doc\/AuthenticationApi.md#authenticationauthenticatewithform) | **POST** /api/Authentication/Token |
|
|
||||||
*AuthenticationApi* | [**authenticationAuthenticateWithJson**](doc\/AuthenticationApi.md#authenticationauthenticatewithjson) | **POST** /api/Authentication/Authenticate |
|
|
||||||
*ConfigurationApi* | [**configurationCreate**](doc\/ConfigurationApi.md#configurationcreate) | **POST** /api/Configuration |
|
|
||||||
*ConfigurationApi* | [**configurationDelete**](doc\/ConfigurationApi.md#configurationdelete) | **DELETE** /api/Configuration/{id} |
|
|
||||||
*ConfigurationApi* | [**configurationExport**](doc\/ConfigurationApi.md#configurationexport) | **GET** /api/Configuration/{id}/export |
|
|
||||||
*ConfigurationApi* | [**configurationGet**](doc\/ConfigurationApi.md#configurationget) | **GET** /api/Configuration |
|
|
||||||
*ConfigurationApi* | [**configurationGetConfigurationsByPinCode**](doc\/ConfigurationApi.md#configurationgetconfigurationsbypincode) | **GET** /api/Configuration/byPin |
|
|
||||||
*ConfigurationApi* | [**configurationGetDetail**](doc\/ConfigurationApi.md#configurationgetdetail) | **GET** /api/Configuration/{id} |
|
|
||||||
*ConfigurationApi* | [**configurationImport**](doc\/ConfigurationApi.md#configurationimport) | **POST** /api/Configuration/import |
|
|
||||||
*ConfigurationApi* | [**configurationUpdate**](doc\/ConfigurationApi.md#configurationupdate) | **PUT** /api/Configuration |
|
|
||||||
*DeviceApi* | [**deviceCreate**](doc\/DeviceApi.md#devicecreate) | **POST** /api/Device |
|
|
||||||
*DeviceApi* | [**deviceDelete**](doc\/DeviceApi.md#devicedelete) | **DELETE** /api/Device/{id} |
|
|
||||||
*DeviceApi* | [**deviceGet**](doc\/DeviceApi.md#deviceget) | **GET** /api/Device |
|
|
||||||
*DeviceApi* | [**deviceGetDetail**](doc\/DeviceApi.md#devicegetdetail) | **GET** /api/Device/{id}/detail |
|
|
||||||
*DeviceApi* | [**deviceUpdate**](doc\/DeviceApi.md#deviceupdate) | **PUT** /api/Device |
|
|
||||||
*DeviceApi* | [**deviceUpdateMainInfos**](doc\/DeviceApi.md#deviceupdatemaininfos) | **PUT** /api/Device/mainInfos |
|
|
||||||
*InstanceApi* | [**instanceCreateInstance**](doc\/InstanceApi.md#instancecreateinstance) | **POST** /api/Instance |
|
|
||||||
*InstanceApi* | [**instanceDeleteInstance**](doc\/InstanceApi.md#instancedeleteinstance) | **DELETE** /api/Instance/{id} |
|
|
||||||
*InstanceApi* | [**instanceGet**](doc\/InstanceApi.md#instanceget) | **GET** /api/Instance |
|
|
||||||
*InstanceApi* | [**instanceGetDetail**](doc\/InstanceApi.md#instancegetdetail) | **GET** /api/Instance/{id} |
|
|
||||||
*InstanceApi* | [**instanceGetInstanceByPinCode**](doc\/InstanceApi.md#instancegetinstancebypincode) | **GET** /api/Instance/byPin |
|
|
||||||
*InstanceApi* | [**instanceUpdateinstance**](doc\/InstanceApi.md#instanceupdateinstance) | **PUT** /api/Instance |
|
|
||||||
*ResourceApi* | [**resourceCreate**](doc\/ResourceApi.md#resourcecreate) | **POST** /api/Resource |
|
|
||||||
*ResourceApi* | [**resourceDelete**](doc\/ResourceApi.md#resourcedelete) | **DELETE** /api/Resource/{id} |
|
|
||||||
*ResourceApi* | [**resourceGet**](doc\/ResourceApi.md#resourceget) | **GET** /api/Resource |
|
|
||||||
*ResourceApi* | [**resourceGetDetail**](doc\/ResourceApi.md#resourcegetdetail) | **GET** /api/Resource/{id}/detail |
|
|
||||||
*ResourceApi* | [**resourceShow**](doc\/ResourceApi.md#resourceshow) | **GET** /api/Resource/{id} |
|
|
||||||
*ResourceApi* | [**resourceUpdate**](doc\/ResourceApi.md#resourceupdate) | **PUT** /api/Resource |
|
|
||||||
*ResourceApi* | [**resourceUpload**](doc\/ResourceApi.md#resourceupload) | **POST** /api/Resource/upload |
|
|
||||||
*SectionApi* | [**sectionCreate**](doc\/SectionApi.md#sectioncreate) | **POST** /api/Section |
|
|
||||||
*SectionApi* | [**sectionDelete**](doc\/SectionApi.md#sectiondelete) | **DELETE** /api/Section/{id} |
|
|
||||||
*SectionApi* | [**sectionDeleteAllForConfiguration**](doc\/SectionApi.md#sectiondeleteallforconfiguration) | **DELETE** /api/Section/configuration/{id} |
|
|
||||||
*SectionApi* | [**sectionGet**](doc\/SectionApi.md#sectionget) | **GET** /api/Section |
|
|
||||||
*SectionApi* | [**sectionGetAgendaDTO**](doc\/SectionApi.md#sectiongetagendadto) | **GET** /api/Section/AgendaDTO |
|
|
||||||
*SectionApi* | [**sectionGetAllBeaconsForInstance**](doc\/SectionApi.md#sectiongetallbeaconsforinstance) | **GET** /api/Section/beacons/{instanceId} |
|
|
||||||
*SectionApi* | [**sectionGetAllSectionSubSections**](doc\/SectionApi.md#sectiongetallsectionsubsections) | **GET** /api/Section/{id}/subsections |
|
|
||||||
*SectionApi* | [**sectionGetArticleDTO**](doc\/SectionApi.md#sectiongetarticledto) | **GET** /api/Section/ArticleDTO |
|
|
||||||
*SectionApi* | [**sectionGetDetail**](doc\/SectionApi.md#sectiongetdetail) | **GET** /api/Section/{id} |
|
|
||||||
*SectionApi* | [**sectionGetFromConfiguration**](doc\/SectionApi.md#sectiongetfromconfiguration) | **GET** /api/Section/configuration/{id} |
|
|
||||||
*SectionApi* | [**sectionGetMapDTO**](doc\/SectionApi.md#sectiongetmapdto) | **GET** /api/Section/MapDTO |
|
|
||||||
*SectionApi* | [**sectionGetMenuDTO**](doc\/SectionApi.md#sectiongetmenudto) | **GET** /api/Section/MenuDTO |
|
|
||||||
*SectionApi* | [**sectionGetPdfDTO**](doc\/SectionApi.md#sectiongetpdfdto) | **GET** /api/Section/PdfDTO |
|
|
||||||
*SectionApi* | [**sectionGetPuzzleDTO**](doc\/SectionApi.md#sectiongetpuzzledto) | **GET** /api/Section/PuzzleDTO |
|
|
||||||
*SectionApi* | [**sectionGetQuizzDTO**](doc\/SectionApi.md#sectiongetquizzdto) | **GET** /api/Section/QuizzDTO |
|
|
||||||
*SectionApi* | [**sectionGetSliderDTO**](doc\/SectionApi.md#sectiongetsliderdto) | **GET** /api/Section/SliderDTO |
|
|
||||||
*SectionApi* | [**sectionGetVideoDTO**](doc\/SectionApi.md#sectiongetvideodto) | **GET** /api/Section/VideoDTO |
|
|
||||||
*SectionApi* | [**sectionGetWeatherDTO**](doc\/SectionApi.md#sectiongetweatherdto) | **GET** /api/Section/WeatherDTO |
|
|
||||||
*SectionApi* | [**sectionGetWebDTO**](doc\/SectionApi.md#sectiongetwebdto) | **GET** /api/Section/WebDTO |
|
|
||||||
*SectionApi* | [**sectionPlayerMessageDTO**](doc\/SectionApi.md#sectionplayermessagedto) | **GET** /api/Section/PlayerMessageDTO |
|
|
||||||
*SectionApi* | [**sectionUpdate**](doc\/SectionApi.md#sectionupdate) | **PUT** /api/Section |
|
|
||||||
*SectionApi* | [**sectionUpdateOrder**](doc\/SectionApi.md#sectionupdateorder) | **PUT** /api/Section/order |
|
|
||||||
*UserApi* | [**userCreateUser**](doc\/UserApi.md#usercreateuser) | **POST** /api/User |
|
|
||||||
*UserApi* | [**userDeleteUser**](doc\/UserApi.md#userdeleteuser) | **DELETE** /api/User/{id} |
|
|
||||||
*UserApi* | [**userGet**](doc\/UserApi.md#userget) | **GET** /api/User |
|
|
||||||
*UserApi* | [**userGetDetail**](doc\/UserApi.md#usergetdetail) | **GET** /api/User/{id} |
|
|
||||||
*UserApi* | [**userUpdateUser**](doc\/UserApi.md#userupdateuser) | **PUT** /api/User |
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Models
|
|
||||||
|
|
||||||
- [AgendaDTO](doc\/AgendaDTO.md)
|
|
||||||
- [ArticleDTO](doc\/ArticleDTO.md)
|
|
||||||
- [CategorieDTO](doc\/CategorieDTO.md)
|
|
||||||
- [ConfigurationDTO](doc\/ConfigurationDTO.md)
|
|
||||||
- [ContentDTO](doc\/ContentDTO.md)
|
|
||||||
- [ContentGeoPoint](doc\/ContentGeoPoint.md)
|
|
||||||
- [DeviceDTO](doc\/DeviceDTO.md)
|
|
||||||
- [DeviceDetailDTO](doc\/DeviceDetailDTO.md)
|
|
||||||
- [DeviceDetailDTOAllOf](doc\/DeviceDetailDTOAllOf.md)
|
|
||||||
- [ExportConfigurationDTO](doc\/ExportConfigurationDTO.md)
|
|
||||||
- [ExportConfigurationDTOAllOf](doc\/ExportConfigurationDTOAllOf.md)
|
|
||||||
- [GeoPointDTO](doc\/GeoPointDTO.md)
|
|
||||||
- [GeoPointDTOCategorie](doc\/GeoPointDTOCategorie.md)
|
|
||||||
- [Instance](doc\/Instance.md)
|
|
||||||
- [InstanceDTO](doc\/InstanceDTO.md)
|
|
||||||
- [LevelDTO](doc\/LevelDTO.md)
|
|
||||||
- [LoginDTO](doc\/LoginDTO.md)
|
|
||||||
- [MapDTO](doc\/MapDTO.md)
|
|
||||||
- [MapDTOMapProvider](doc\/MapDTOMapProvider.md)
|
|
||||||
- [MapDTOMapType](doc\/MapDTOMapType.md)
|
|
||||||
- [MapDTOMapTypeMapbox](doc\/MapDTOMapTypeMapbox.md)
|
|
||||||
- [MapProvider](doc\/MapProvider.md)
|
|
||||||
- [MapTypeApp](doc\/MapTypeApp.md)
|
|
||||||
- [MapTypeMapBox](doc\/MapTypeMapBox.md)
|
|
||||||
- [MenuDTO](doc\/MenuDTO.md)
|
|
||||||
- [PDFFileDTO](doc\/PDFFileDTO.md)
|
|
||||||
- [PdfDTO](doc\/PdfDTO.md)
|
|
||||||
- [PlayerMessageDTO](doc\/PlayerMessageDTO.md)
|
|
||||||
- [PuzzleDTO](doc\/PuzzleDTO.md)
|
|
||||||
- [PuzzleDTOImage](doc\/PuzzleDTOImage.md)
|
|
||||||
- [QuestionDTO](doc\/QuestionDTO.md)
|
|
||||||
- [QuizzDTO](doc\/QuizzDTO.md)
|
|
||||||
- [QuizzDTOBadLevel](doc\/QuizzDTOBadLevel.md)
|
|
||||||
- [ResourceDTO](doc\/ResourceDTO.md)
|
|
||||||
- [ResourceType](doc\/ResourceType.md)
|
|
||||||
- [ResponseDTO](doc\/ResponseDTO.md)
|
|
||||||
- [SectionDTO](doc\/SectionDTO.md)
|
|
||||||
- [SectionType](doc\/SectionType.md)
|
|
||||||
- [SliderDTO](doc\/SliderDTO.md)
|
|
||||||
- [TokenDTO](doc\/TokenDTO.md)
|
|
||||||
- [TranslationAndResourceDTO](doc\/TranslationAndResourceDTO.md)
|
|
||||||
- [TranslationDTO](doc\/TranslationDTO.md)
|
|
||||||
- [User](doc\/User.md)
|
|
||||||
- [UserDetailDTO](doc\/UserDetailDTO.md)
|
|
||||||
- [VideoDTO](doc\/VideoDTO.md)
|
|
||||||
- [WeatherDTO](doc\/WeatherDTO.md)
|
|
||||||
- [WebDTO](doc\/WebDTO.md)
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Authorization
|
|
||||||
|
|
||||||
|
|
||||||
Authentication schemes defined for the API:
|
|
||||||
### bearer
|
|
||||||
|
|
||||||
- **Type**: OAuth
|
|
||||||
- **Flow**: password
|
|
||||||
- **Authorization URL**: /authentication/Token
|
|
||||||
- **Scopes**:
|
|
||||||
- **Manager-api**: Manager WebAPI
|
|
||||||
|
|
||||||
|
|
||||||
## Author
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
# manager_api.model.ArticleDTO
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:manager_api/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**content** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
|
||||||
**isContentTop** | **bool** | | [optional]
|
|
||||||
**audioIds** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
|
||||||
**isReadAudioAuto** | **bool** | | [optional]
|
|
||||||
**contents** | [**List<ContentDTO>**](ContentDTO.md) | | [optional] [default to const []]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
# manager_api.model.MapDTO
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:manager_api/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**zoom** | **int** | | [optional]
|
|
||||||
**mapType** | [**MapDTOMapType**](MapDTOMapType.md) | | [optional]
|
|
||||||
**mapTypeMapbox** | [**MapDTOMapTypeMapbox**](MapDTOMapTypeMapbox.md) | | [optional]
|
|
||||||
**mapProvider** | [**MapDTOMapProvider**](MapDTOMapProvider.md) | | [optional]
|
|
||||||
**points** | [**List<GeoPointDTO>**](GeoPointDTO.md) | | [optional] [default to const []]
|
|
||||||
**iconResourceId** | **String** | | [optional]
|
|
||||||
**iconSource** | **String** | | [optional]
|
|
||||||
**categories** | [**List<CategorieDTO>**](CategorieDTO.md) | | [optional] [default to const []]
|
|
||||||
**latitude** | **String** | | [optional]
|
|
||||||
**longitude** | **String** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
# manager_api.model.PuzzleDTO
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:manager_api/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**messageDebut** | [**List<TranslationAndResourceDTO>**](TranslationAndResourceDTO.md) | | [optional] [default to const []]
|
|
||||||
**messageFin** | [**List<TranslationAndResourceDTO>**](TranslationAndResourceDTO.md) | | [optional] [default to const []]
|
|
||||||
**image** | [**PuzzleDTOImage**](PuzzleDTOImage.md) | | [optional]
|
|
||||||
**rows** | **int** | | [optional]
|
|
||||||
**cols** | **int** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
# manager_api.model.SliderDTO
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:manager_api/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**contents** | [**List<ContentDTO>**](ContentDTO.md) | | [optional] [default to const []]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
# manager_api.model.WeatherDTO
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:manager_api/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**city** | **String** | | [optional]
|
|
||||||
**updatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
|
||||||
**result** | **String** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,123 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.12
|
|
||||||
|
|
||||||
// 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;
|
|
||||||
|
|
||||||
class AgendaDTO {
|
|
||||||
/// Returns a new [AgendaDTO] instance.
|
|
||||||
AgendaDTO({
|
|
||||||
this.resourceIds = const [],
|
|
||||||
this.mapProvider,
|
|
||||||
});
|
|
||||||
|
|
||||||
List<TranslationDTO>? resourceIds;
|
|
||||||
|
|
||||||
MapProvider? mapProvider;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AgendaDTO &&
|
|
||||||
other.resourceIds == resourceIds &&
|
|
||||||
other.mapProvider == mapProvider;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(resourceIds == null ? 0 : resourceIds!.hashCode) +
|
|
||||||
(mapProvider == null ? 0 : mapProvider!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AgendaDTO[resourceIds=$resourceIds, mapProvider=$mapProvider]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.resourceIds != null) {
|
|
||||||
json[r'resourceIds'] = this.resourceIds;
|
|
||||||
} else {
|
|
||||||
json[r'resourceIds'] = null;
|
|
||||||
}
|
|
||||||
if (this.mapProvider != null) {
|
|
||||||
json[r'mapProvider'] = this.mapProvider;
|
|
||||||
} else {
|
|
||||||
json[r'mapProvider'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AgendaDTO] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AgendaDTO? fromJson(dynamic value) {
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
// Ensure that the map contains the required keys.
|
|
||||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
|
||||||
// Note 2: this code is stripped in release mode!
|
|
||||||
assert(() {
|
|
||||||
requiredKeys.forEach((key) {
|
|
||||||
assert(json.containsKey(key), 'Required key "AgendaDTO[$key]" is missing from JSON.');
|
|
||||||
assert(json[key] != null, 'Required key "AgendaDTO[$key]" has a null value in JSON.');
|
|
||||||
});
|
|
||||||
return true;
|
|
||||||
}());
|
|
||||||
|
|
||||||
return AgendaDTO(
|
|
||||||
resourceIds: TranslationDTO.listFromJson(json[r'resourceIds']),
|
|
||||||
mapProvider: MapProvider.fromJson(json[r'mapProvider']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AgendaDTO> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AgendaDTO>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AgendaDTO.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AgendaDTO> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AgendaDTO>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AgendaDTO.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AgendaDTO-objects as value to a dart map
|
|
||||||
static Map<String, List<AgendaDTO>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AgendaDTO>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AgendaDTO.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,168 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.12
|
|
||||||
|
|
||||||
// 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;
|
|
||||||
|
|
||||||
class ArticleDTO {
|
|
||||||
/// Returns a new [ArticleDTO] instance.
|
|
||||||
ArticleDTO({
|
|
||||||
this.content = const [],
|
|
||||||
this.isContentTop,
|
|
||||||
this.audioIds = const [],
|
|
||||||
this.isReadAudioAuto,
|
|
||||||
this.contents = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
List<TranslationDTO>? content;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
bool? isContentTop;
|
|
||||||
|
|
||||||
List<TranslationDTO>? audioIds;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
bool? isReadAudioAuto;
|
|
||||||
|
|
||||||
List<ContentDTO>? contents;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ArticleDTO &&
|
|
||||||
other.content == content &&
|
|
||||||
other.isContentTop == isContentTop &&
|
|
||||||
other.audioIds == audioIds &&
|
|
||||||
other.isReadAudioAuto == isReadAudioAuto &&
|
|
||||||
other.contents == contents;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(content == null ? 0 : content!.hashCode) +
|
|
||||||
(isContentTop == null ? 0 : isContentTop!.hashCode) +
|
|
||||||
(audioIds == null ? 0 : audioIds!.hashCode) +
|
|
||||||
(isReadAudioAuto == null ? 0 : isReadAudioAuto!.hashCode) +
|
|
||||||
(contents == null ? 0 : contents!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'ArticleDTO[content=$content, isContentTop=$isContentTop, audioIds=$audioIds, isReadAudioAuto=$isReadAudioAuto, contents=$contents]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.content != null) {
|
|
||||||
json[r'content'] = this.content;
|
|
||||||
} else {
|
|
||||||
json[r'content'] = null;
|
|
||||||
}
|
|
||||||
if (this.isContentTop != null) {
|
|
||||||
json[r'isContentTop'] = this.isContentTop;
|
|
||||||
} else {
|
|
||||||
json[r'isContentTop'] = null;
|
|
||||||
}
|
|
||||||
if (this.audioIds != null) {
|
|
||||||
json[r'audioIds'] = this.audioIds;
|
|
||||||
} else {
|
|
||||||
json[r'audioIds'] = null;
|
|
||||||
}
|
|
||||||
if (this.isReadAudioAuto != null) {
|
|
||||||
json[r'isReadAudioAuto'] = this.isReadAudioAuto;
|
|
||||||
} else {
|
|
||||||
json[r'isReadAudioAuto'] = null;
|
|
||||||
}
|
|
||||||
if (this.contents != null) {
|
|
||||||
json[r'contents'] = this.contents;
|
|
||||||
} else {
|
|
||||||
json[r'contents'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [ArticleDTO] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static ArticleDTO? fromJson(dynamic value) {
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
// Ensure that the map contains the required keys.
|
|
||||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
|
||||||
// Note 2: this code is stripped in release mode!
|
|
||||||
assert(() {
|
|
||||||
requiredKeys.forEach((key) {
|
|
||||||
assert(json.containsKey(key), 'Required key "ArticleDTO[$key]" is missing from JSON.');
|
|
||||||
assert(json[key] != null, 'Required key "ArticleDTO[$key]" has a null value in JSON.');
|
|
||||||
});
|
|
||||||
return true;
|
|
||||||
}());
|
|
||||||
|
|
||||||
return ArticleDTO(
|
|
||||||
content: TranslationDTO.listFromJson(json[r'content']),
|
|
||||||
isContentTop: mapValueOfType<bool>(json, r'isContentTop'),
|
|
||||||
audioIds: TranslationDTO.listFromJson(json[r'audioIds']),
|
|
||||||
isReadAudioAuto: mapValueOfType<bool>(json, r'isReadAudioAuto'),
|
|
||||||
contents: ContentDTO.listFromJson(json[r'contents']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<ArticleDTO> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <ArticleDTO>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = ArticleDTO.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, ArticleDTO> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, ArticleDTO>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = ArticleDTO.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of ArticleDTO-objects as value to a dart map
|
|
||||||
static Map<String, List<ArticleDTO>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<ArticleDTO>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = ArticleDTO.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,217 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.12
|
|
||||||
|
|
||||||
// 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;
|
|
||||||
|
|
||||||
class MapDTO {
|
|
||||||
/// Returns a new [MapDTO] instance.
|
|
||||||
MapDTO({
|
|
||||||
this.zoom,
|
|
||||||
this.mapType,
|
|
||||||
this.mapTypeMapbox,
|
|
||||||
this.mapProvider,
|
|
||||||
this.points = const [],
|
|
||||||
this.iconResourceId,
|
|
||||||
this.iconSource,
|
|
||||||
this.categories = const [],
|
|
||||||
this.latitude,
|
|
||||||
this.longitude,
|
|
||||||
});
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
int? zoom;
|
|
||||||
|
|
||||||
MapTypeApp? mapType;
|
|
||||||
|
|
||||||
MapTypeMapBox? mapTypeMapbox;
|
|
||||||
|
|
||||||
MapProvider? mapProvider;
|
|
||||||
|
|
||||||
List<GeoPointDTO>? points;
|
|
||||||
|
|
||||||
String? iconResourceId;
|
|
||||||
|
|
||||||
String? iconSource;
|
|
||||||
|
|
||||||
List<CategorieDTO>? categories;
|
|
||||||
|
|
||||||
String? latitude;
|
|
||||||
|
|
||||||
String? longitude;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is MapDTO &&
|
|
||||||
other.zoom == zoom &&
|
|
||||||
other.mapType == mapType &&
|
|
||||||
other.mapTypeMapbox == mapTypeMapbox &&
|
|
||||||
other.mapProvider == mapProvider &&
|
|
||||||
other.points == points &&
|
|
||||||
other.iconResourceId == iconResourceId &&
|
|
||||||
other.iconSource == iconSource &&
|
|
||||||
other.categories == categories &&
|
|
||||||
other.latitude == latitude &&
|
|
||||||
other.longitude == longitude;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(zoom == null ? 0 : zoom!.hashCode) +
|
|
||||||
(mapType == null ? 0 : mapType!.hashCode) +
|
|
||||||
(mapTypeMapbox == null ? 0 : mapTypeMapbox!.hashCode) +
|
|
||||||
(mapProvider == null ? 0 : mapProvider!.hashCode) +
|
|
||||||
(points == null ? 0 : points!.hashCode) +
|
|
||||||
(iconResourceId == null ? 0 : iconResourceId!.hashCode) +
|
|
||||||
(iconSource == null ? 0 : iconSource!.hashCode) +
|
|
||||||
(categories == null ? 0 : categories!.hashCode) +
|
|
||||||
(latitude == null ? 0 : latitude!.hashCode) +
|
|
||||||
(longitude == null ? 0 : longitude!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'MapDTO[zoom=$zoom, mapType=$mapType, mapTypeMapbox=$mapTypeMapbox, mapProvider=$mapProvider, points=$points, iconResourceId=$iconResourceId, iconSource=$iconSource, categories=$categories, latitude=$latitude, longitude=$longitude]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.zoom != null) {
|
|
||||||
json[r'zoom'] = this.zoom;
|
|
||||||
} else {
|
|
||||||
json[r'zoom'] = null;
|
|
||||||
}
|
|
||||||
if (this.mapType != null) {
|
|
||||||
json[r'mapType'] = this.mapType;
|
|
||||||
} else {
|
|
||||||
json[r'mapType'] = null;
|
|
||||||
}
|
|
||||||
if (this.mapTypeMapbox != null) {
|
|
||||||
json[r'mapTypeMapbox'] = this.mapTypeMapbox;
|
|
||||||
} else {
|
|
||||||
json[r'mapTypeMapbox'] = null;
|
|
||||||
}
|
|
||||||
if (this.mapProvider != null) {
|
|
||||||
json[r'mapProvider'] = this.mapProvider;
|
|
||||||
} else {
|
|
||||||
json[r'mapProvider'] = null;
|
|
||||||
}
|
|
||||||
if (this.points != null) {
|
|
||||||
json[r'points'] = this.points;
|
|
||||||
} else {
|
|
||||||
json[r'points'] = null;
|
|
||||||
}
|
|
||||||
if (this.iconResourceId != null) {
|
|
||||||
json[r'iconResourceId'] = this.iconResourceId;
|
|
||||||
} else {
|
|
||||||
json[r'iconResourceId'] = null;
|
|
||||||
}
|
|
||||||
if (this.iconSource != null) {
|
|
||||||
json[r'iconSource'] = this.iconSource;
|
|
||||||
} else {
|
|
||||||
json[r'iconSource'] = null;
|
|
||||||
}
|
|
||||||
if (this.categories != null) {
|
|
||||||
json[r'categories'] = this.categories;
|
|
||||||
} else {
|
|
||||||
json[r'categories'] = null;
|
|
||||||
}
|
|
||||||
if (this.latitude != null) {
|
|
||||||
json[r'latitude'] = this.latitude;
|
|
||||||
} else {
|
|
||||||
json[r'latitude'] = null;
|
|
||||||
}
|
|
||||||
if (this.longitude != null) {
|
|
||||||
json[r'longitude'] = this.longitude;
|
|
||||||
} else {
|
|
||||||
json[r'longitude'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [MapDTO] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static MapDTO? fromJson(dynamic value) {
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
// Ensure that the map contains the required keys.
|
|
||||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
|
||||||
// Note 2: this code is stripped in release mode!
|
|
||||||
assert(() {
|
|
||||||
requiredKeys.forEach((key) {
|
|
||||||
assert(json.containsKey(key), 'Required key "MapDTO[$key]" is missing from JSON.');
|
|
||||||
assert(json[key] != null, 'Required key "MapDTO[$key]" has a null value in JSON.');
|
|
||||||
});
|
|
||||||
return true;
|
|
||||||
}());
|
|
||||||
|
|
||||||
return MapDTO(
|
|
||||||
zoom: mapValueOfType<int>(json, r'zoom'),
|
|
||||||
mapType: MapTypeApp.fromJson(json[r'mapType']),
|
|
||||||
mapTypeMapbox: MapTypeMapBox.fromJson(json[r'mapTypeMapbox']),
|
|
||||||
mapProvider: MapProvider.fromJson(json[r'mapProvider']),
|
|
||||||
points: GeoPointDTO.listFromJson(json[r'points']),
|
|
||||||
iconResourceId: mapValueOfType<String>(json, r'iconResourceId'),
|
|
||||||
iconSource: mapValueOfType<String>(json, r'iconSource'),
|
|
||||||
categories: CategorieDTO.listFromJson(json[r'categories']),
|
|
||||||
latitude: mapValueOfType<String>(json, r'latitude'),
|
|
||||||
longitude: mapValueOfType<String>(json, r'longitude'),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<MapDTO> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <MapDTO>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = MapDTO.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, MapDTO> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, MapDTO>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = MapDTO.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of MapDTO-objects as value to a dart map
|
|
||||||
static Map<String, List<MapDTO>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<MapDTO>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = MapDTO.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,168 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.12
|
|
||||||
|
|
||||||
// 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;
|
|
||||||
|
|
||||||
class PuzzleDTO {
|
|
||||||
/// Returns a new [PuzzleDTO] instance.
|
|
||||||
PuzzleDTO({
|
|
||||||
this.messageDebut = const [],
|
|
||||||
this.messageFin = const [],
|
|
||||||
this.image,
|
|
||||||
this.rows,
|
|
||||||
this.cols,
|
|
||||||
});
|
|
||||||
|
|
||||||
List<TranslationAndResourceDTO>? messageDebut;
|
|
||||||
|
|
||||||
List<TranslationAndResourceDTO>? messageFin;
|
|
||||||
|
|
||||||
PuzzleDTOImage? image;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
int? rows;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
int? cols;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is PuzzleDTO &&
|
|
||||||
other.messageDebut == messageDebut &&
|
|
||||||
other.messageFin == messageFin &&
|
|
||||||
other.image == image &&
|
|
||||||
other.rows == rows &&
|
|
||||||
other.cols == cols;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(messageDebut == null ? 0 : messageDebut!.hashCode) +
|
|
||||||
(messageFin == null ? 0 : messageFin!.hashCode) +
|
|
||||||
(image == null ? 0 : image!.hashCode) +
|
|
||||||
(rows == null ? 0 : rows!.hashCode) +
|
|
||||||
(cols == null ? 0 : cols!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'PuzzleDTO[messageDebut=$messageDebut, messageFin=$messageFin, image=$image, rows=$rows, cols=$cols]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.messageDebut != null) {
|
|
||||||
json[r'messageDebut'] = this.messageDebut;
|
|
||||||
} else {
|
|
||||||
json[r'messageDebut'] = null;
|
|
||||||
}
|
|
||||||
if (this.messageFin != null) {
|
|
||||||
json[r'messageFin'] = this.messageFin;
|
|
||||||
} else {
|
|
||||||
json[r'messageFin'] = null;
|
|
||||||
}
|
|
||||||
if (this.image != null) {
|
|
||||||
json[r'image'] = this.image;
|
|
||||||
} else {
|
|
||||||
json[r'image'] = null;
|
|
||||||
}
|
|
||||||
if (this.rows != null) {
|
|
||||||
json[r'rows'] = this.rows;
|
|
||||||
} else {
|
|
||||||
json[r'rows'] = null;
|
|
||||||
}
|
|
||||||
if (this.cols != null) {
|
|
||||||
json[r'cols'] = this.cols;
|
|
||||||
} else {
|
|
||||||
json[r'cols'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [PuzzleDTO] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static PuzzleDTO? fromJson(dynamic value) {
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
// Ensure that the map contains the required keys.
|
|
||||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
|
||||||
// Note 2: this code is stripped in release mode!
|
|
||||||
assert(() {
|
|
||||||
requiredKeys.forEach((key) {
|
|
||||||
assert(json.containsKey(key), 'Required key "PuzzleDTO[$key]" is missing from JSON.');
|
|
||||||
assert(json[key] != null, 'Required key "PuzzleDTO[$key]" has a null value in JSON.');
|
|
||||||
});
|
|
||||||
return true;
|
|
||||||
}());
|
|
||||||
|
|
||||||
return PuzzleDTO(
|
|
||||||
messageDebut: TranslationAndResourceDTO.listFromJson(json[r'messageDebut']),
|
|
||||||
messageFin: TranslationAndResourceDTO.listFromJson(json[r'messageFin']),
|
|
||||||
image: PuzzleDTOImage.fromJson(json[r'image']),
|
|
||||||
rows: mapValueOfType<int>(json, r'rows'),
|
|
||||||
cols: mapValueOfType<int>(json, r'cols'),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<PuzzleDTO> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <PuzzleDTO>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = PuzzleDTO.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, PuzzleDTO> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, PuzzleDTO>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = PuzzleDTO.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of PuzzleDTO-objects as value to a dart map
|
|
||||||
static Map<String, List<PuzzleDTO>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<PuzzleDTO>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = PuzzleDTO.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,134 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.12
|
|
||||||
|
|
||||||
// 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;
|
|
||||||
|
|
||||||
class WeatherDTO {
|
|
||||||
/// Returns a new [WeatherDTO] instance.
|
|
||||||
WeatherDTO({
|
|
||||||
this.city,
|
|
||||||
this.updatedDate,
|
|
||||||
this.result,
|
|
||||||
});
|
|
||||||
|
|
||||||
String? city;
|
|
||||||
|
|
||||||
DateTime? updatedDate;
|
|
||||||
|
|
||||||
String? result;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is WeatherDTO &&
|
|
||||||
other.city == city &&
|
|
||||||
other.updatedDate == updatedDate &&
|
|
||||||
other.result == result;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(city == null ? 0 : city!.hashCode) +
|
|
||||||
(updatedDate == null ? 0 : updatedDate!.hashCode) +
|
|
||||||
(result == null ? 0 : result!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'WeatherDTO[city=$city, updatedDate=$updatedDate, result=$result]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.city != null) {
|
|
||||||
json[r'city'] = this.city;
|
|
||||||
} else {
|
|
||||||
json[r'city'] = null;
|
|
||||||
}
|
|
||||||
if (this.updatedDate != null) {
|
|
||||||
json[r'updatedDate'] = this.updatedDate!.toUtc().toIso8601String();
|
|
||||||
} else {
|
|
||||||
json[r'updatedDate'] = null;
|
|
||||||
}
|
|
||||||
if (this.result != null) {
|
|
||||||
json[r'result'] = this.result;
|
|
||||||
} else {
|
|
||||||
json[r'result'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [WeatherDTO] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static WeatherDTO? fromJson(dynamic value) {
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
// Ensure that the map contains the required keys.
|
|
||||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
|
||||||
// Note 2: this code is stripped in release mode!
|
|
||||||
assert(() {
|
|
||||||
requiredKeys.forEach((key) {
|
|
||||||
assert(json.containsKey(key), 'Required key "WeatherDTO[$key]" is missing from JSON.');
|
|
||||||
assert(json[key] != null, 'Required key "WeatherDTO[$key]" has a null value in JSON.');
|
|
||||||
});
|
|
||||||
return true;
|
|
||||||
}());
|
|
||||||
|
|
||||||
return WeatherDTO(
|
|
||||||
city: mapValueOfType<String>(json, r'city'),
|
|
||||||
updatedDate: mapDateTime(json, r'updatedDate', ''),
|
|
||||||
result: mapValueOfType<String>(json, r'result'),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<WeatherDTO> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <WeatherDTO>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = WeatherDTO.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, WeatherDTO> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, WeatherDTO>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = WeatherDTO.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of WeatherDTO-objects as value to a dart map
|
|
||||||
static Map<String, List<WeatherDTO>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<WeatherDTO>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = WeatherDTO.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
#
|
|
||||||
# AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
#
|
|
||||||
|
|
||||||
name: 'manager_api'
|
|
||||||
version: '1.0.0'
|
|
||||||
description: 'OpenAPI API client'
|
|
||||||
homepage: 'homepage'
|
|
||||||
environment:
|
|
||||||
sdk: ">=3.1.0 <4.0.0"
|
|
||||||
dependencies:
|
|
||||||
http: '^1.1.0'
|
|
||||||
intl: '^0.18.0'
|
|
||||||
meta: '^1.1.8'
|
|
||||||
dev_dependencies:
|
|
||||||
test: '>=1.16.0 <1.18.0'
|
|
||||||
@ -3,7 +3,9 @@
|
|||||||
.dart_tool/
|
.dart_tool/
|
||||||
.packages
|
.packages
|
||||||
build/
|
build/
|
||||||
pubspec.lock # Except for application packages
|
|
||||||
|
# Except for application packages
|
||||||
|
pubspec.lock
|
||||||
|
|
||||||
doc/api/
|
doc/api/
|
||||||
|
|
||||||
@ -3,48 +3,56 @@
|
|||||||
README.md
|
README.md
|
||||||
analysis_options.yaml
|
analysis_options.yaml
|
||||||
doc/AgendaDTO.md
|
doc/AgendaDTO.md
|
||||||
|
doc/AgendaDTOAllOfAgendaMapProvider.md
|
||||||
doc/ArticleDTO.md
|
doc/ArticleDTO.md
|
||||||
doc/AuthenticationApi.md
|
doc/AuthenticationApi.md
|
||||||
doc/CategorieDTO.md
|
doc/CategorieDTO.md
|
||||||
doc/ConfigurationApi.md
|
doc/ConfigurationApi.md
|
||||||
doc/ConfigurationDTO.md
|
doc/ConfigurationDTO.md
|
||||||
doc/ContentDTO.md
|
doc/ContentDTO.md
|
||||||
doc/ContentGeoPoint.md
|
doc/ContentDTOResource.md
|
||||||
doc/DeviceApi.md
|
doc/DeviceApi.md
|
||||||
doc/DeviceDTO.md
|
doc/DeviceDTO.md
|
||||||
doc/DeviceDetailDTO.md
|
doc/DeviceDetailDTO.md
|
||||||
doc/DeviceDetailDTOAllOf.md
|
|
||||||
doc/ExportConfigurationDTO.md
|
doc/ExportConfigurationDTO.md
|
||||||
doc/ExportConfigurationDTOAllOf.md
|
doc/GeoPoint.md
|
||||||
doc/GeoPointDTO.md
|
doc/GeoPointDTO.md
|
||||||
doc/GeoPointDTOCategorie.md
|
doc/GeoPointSectionMap.md
|
||||||
doc/Instance.md
|
doc/Instance.md
|
||||||
doc/InstanceApi.md
|
doc/InstanceApi.md
|
||||||
doc/InstanceDTO.md
|
doc/InstanceDTO.md
|
||||||
doc/LevelDTO.md
|
|
||||||
doc/LoginDTO.md
|
doc/LoginDTO.md
|
||||||
doc/MapDTO.md
|
doc/MapDTO.md
|
||||||
doc/MapDTOMapProvider.md
|
doc/MapDTOAllOfMapProvider.md
|
||||||
doc/MapDTOMapType.md
|
doc/MapDTOAllOfMapType.md
|
||||||
doc/MapDTOMapTypeMapbox.md
|
doc/MapDTOAllOfMapTypeMapbox.md
|
||||||
doc/MapProvider.md
|
doc/MapProvider.md
|
||||||
doc/MapTypeApp.md
|
doc/MapTypeApp.md
|
||||||
doc/MapTypeMapBox.md
|
doc/MapTypeMapBox.md
|
||||||
doc/MenuDTO.md
|
doc/MenuDTO.md
|
||||||
doc/PDFFileDTO.md
|
doc/OrderedTranslationAndResourceDTO.md
|
||||||
doc/PdfDTO.md
|
doc/PdfDTO.md
|
||||||
doc/PlayerMessageDTO.md
|
doc/PlayerMessageDTO.md
|
||||||
doc/PuzzleDTO.md
|
doc/PuzzleDTO.md
|
||||||
doc/PuzzleDTOImage.md
|
doc/PuzzleDTOAllOfPuzzleImage.md
|
||||||
doc/QuestionDTO.md
|
doc/QuestionDTO.md
|
||||||
doc/QuizzDTO.md
|
doc/QuestionDTOImageBackgroundResourceType.md
|
||||||
doc/QuizzDTOBadLevel.md
|
doc/QuizDTO.md
|
||||||
|
doc/Resource.md
|
||||||
doc/ResourceApi.md
|
doc/ResourceApi.md
|
||||||
doc/ResourceDTO.md
|
doc/ResourceDTO.md
|
||||||
doc/ResourceType.md
|
doc/ResourceType.md
|
||||||
doc/ResponseDTO.md
|
doc/ResponseDTO.md
|
||||||
|
doc/Section.md
|
||||||
doc/SectionApi.md
|
doc/SectionApi.md
|
||||||
doc/SectionDTO.md
|
doc/SectionDTO.md
|
||||||
|
doc/SectionMap.md
|
||||||
|
doc/SectionMapAllOfMapMapProvider.md
|
||||||
|
doc/SectionMapAllOfMapMapType.md
|
||||||
|
doc/SectionMapAllOfMapResource.md
|
||||||
|
doc/SectionMapAllOfMapTypeMapbox.md
|
||||||
|
doc/SectionMapApi.md
|
||||||
|
doc/SectionQuizApi.md
|
||||||
doc/SectionType.md
|
doc/SectionType.md
|
||||||
doc/SliderDTO.md
|
doc/SliderDTO.md
|
||||||
doc/TokenDTO.md
|
doc/TokenDTO.md
|
||||||
@ -64,6 +72,8 @@ lib/api/device_api.dart
|
|||||||
lib/api/instance_api.dart
|
lib/api/instance_api.dart
|
||||||
lib/api/resource_api.dart
|
lib/api/resource_api.dart
|
||||||
lib/api/section_api.dart
|
lib/api/section_api.dart
|
||||||
|
lib/api/section_map_api.dart
|
||||||
|
lib/api/section_quiz_api.dart
|
||||||
lib/api/user_api.dart
|
lib/api/user_api.dart
|
||||||
lib/api_client.dart
|
lib/api_client.dart
|
||||||
lib/api_exception.dart
|
lib/api_exception.dart
|
||||||
@ -74,42 +84,48 @@ lib/auth/http_basic_auth.dart
|
|||||||
lib/auth/http_bearer_auth.dart
|
lib/auth/http_bearer_auth.dart
|
||||||
lib/auth/oauth.dart
|
lib/auth/oauth.dart
|
||||||
lib/model/agenda_dto.dart
|
lib/model/agenda_dto.dart
|
||||||
|
lib/model/agenda_dto_all_of_agenda_map_provider.dart
|
||||||
lib/model/article_dto.dart
|
lib/model/article_dto.dart
|
||||||
lib/model/categorie_dto.dart
|
lib/model/categorie_dto.dart
|
||||||
lib/model/configuration_dto.dart
|
lib/model/configuration_dto.dart
|
||||||
lib/model/content_dto.dart
|
lib/model/content_dto.dart
|
||||||
lib/model/content_geo_point.dart
|
lib/model/content_dto_resource.dart
|
||||||
lib/model/device_detail_dto.dart
|
lib/model/device_detail_dto.dart
|
||||||
lib/model/device_detail_dto_all_of.dart
|
|
||||||
lib/model/device_dto.dart
|
lib/model/device_dto.dart
|
||||||
lib/model/export_configuration_dto.dart
|
lib/model/export_configuration_dto.dart
|
||||||
lib/model/export_configuration_dto_all_of.dart
|
lib/model/geo_point.dart
|
||||||
lib/model/geo_point_dto.dart
|
lib/model/geo_point_dto.dart
|
||||||
lib/model/geo_point_dto_categorie.dart
|
lib/model/geo_point_section_map.dart
|
||||||
lib/model/instance.dart
|
lib/model/instance.dart
|
||||||
lib/model/instance_dto.dart
|
lib/model/instance_dto.dart
|
||||||
lib/model/level_dto.dart
|
|
||||||
lib/model/login_dto.dart
|
lib/model/login_dto.dart
|
||||||
lib/model/map_dto.dart
|
lib/model/map_dto.dart
|
||||||
lib/model/map_dto_map_provider.dart
|
lib/model/map_dto_all_of_map_provider.dart
|
||||||
lib/model/map_dto_map_type.dart
|
lib/model/map_dto_all_of_map_type.dart
|
||||||
lib/model/map_dto_map_type_mapbox.dart
|
lib/model/map_dto_all_of_map_type_mapbox.dart
|
||||||
lib/model/map_provider.dart
|
lib/model/map_provider.dart
|
||||||
lib/model/map_type_app.dart
|
lib/model/map_type_app.dart
|
||||||
lib/model/map_type_map_box.dart
|
lib/model/map_type_map_box.dart
|
||||||
lib/model/menu_dto.dart
|
lib/model/menu_dto.dart
|
||||||
|
lib/model/ordered_translation_and_resource_dto.dart
|
||||||
lib/model/pdf_dto.dart
|
lib/model/pdf_dto.dart
|
||||||
lib/model/pdf_file_dto.dart
|
|
||||||
lib/model/player_message_dto.dart
|
lib/model/player_message_dto.dart
|
||||||
lib/model/puzzle_dto.dart
|
lib/model/puzzle_dto.dart
|
||||||
lib/model/puzzle_dto_image.dart
|
lib/model/puzzle_dto_all_of_puzzle_image.dart
|
||||||
lib/model/question_dto.dart
|
lib/model/question_dto.dart
|
||||||
lib/model/quizz_dto.dart
|
lib/model/question_dto_image_background_resource_type.dart
|
||||||
lib/model/quizz_dto_bad_level.dart
|
lib/model/quiz_dto.dart
|
||||||
|
lib/model/resource.dart
|
||||||
lib/model/resource_dto.dart
|
lib/model/resource_dto.dart
|
||||||
lib/model/resource_type.dart
|
lib/model/resource_type.dart
|
||||||
lib/model/response_dto.dart
|
lib/model/response_dto.dart
|
||||||
|
lib/model/section.dart
|
||||||
lib/model/section_dto.dart
|
lib/model/section_dto.dart
|
||||||
|
lib/model/section_map.dart
|
||||||
|
lib/model/section_map_all_of_map_map_provider.dart
|
||||||
|
lib/model/section_map_all_of_map_map_type.dart
|
||||||
|
lib/model/section_map_all_of_map_resource.dart
|
||||||
|
lib/model/section_map_all_of_map_type_mapbox.dart
|
||||||
lib/model/section_type.dart
|
lib/model/section_type.dart
|
||||||
lib/model/slider_dto.dart
|
lib/model/slider_dto.dart
|
||||||
lib/model/token_dto.dart
|
lib/model/token_dto.dart
|
||||||
@ -121,5 +137,3 @@ lib/model/video_dto.dart
|
|||||||
lib/model/weather_dto.dart
|
lib/model/weather_dto.dart
|
||||||
lib/model/web_dto.dart
|
lib/model/web_dto.dart
|
||||||
pubspec.yaml
|
pubspec.yaml
|
||||||
test/pdf_file_dto_test.dart
|
|
||||||
test/weather_dto_test.dart
|
|
||||||
1
manager_api_new/.openapi-generator/VERSION
Normal file
1
manager_api_new/.openapi-generator/VERSION
Normal file
@ -0,0 +1 @@
|
|||||||
|
7.9.0
|
||||||
208
manager_api_new/README.md
Normal file
208
manager_api_new/README.md
Normal file
@ -0,0 +1,208 @@
|
|||||||
|
# manager_api_new
|
||||||
|
API Manager Service
|
||||||
|
|
||||||
|
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
|
- API version: Version Alpha 3
|
||||||
|
- Generator version: 7.9.0
|
||||||
|
- Build package: org.openapitools.codegen.languages.DartClientCodegen
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
Dart 2.12 or later
|
||||||
|
|
||||||
|
## Installation & Usage
|
||||||
|
|
||||||
|
### Github
|
||||||
|
If this Dart package is published to Github, add the following dependency to your pubspec.yaml
|
||||||
|
```
|
||||||
|
dependencies:
|
||||||
|
manager_api_new:
|
||||||
|
git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
||||||
|
```
|
||||||
|
|
||||||
|
### Local
|
||||||
|
To use the package in your local drive, add the following dependency to your pubspec.yaml
|
||||||
|
```
|
||||||
|
dependencies:
|
||||||
|
manager_api_new:
|
||||||
|
path: /path/to/manager_api_new
|
||||||
|
```
|
||||||
|
|
||||||
|
## Tests
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
Please follow the [installation procedure](#installation--usage) and then run the following:
|
||||||
|
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api_new/api.dart';
|
||||||
|
|
||||||
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
|
final api_instance = AuthenticationApi();
|
||||||
|
final grantType = grantType_example; // String |
|
||||||
|
final username = username_example; // String |
|
||||||
|
final password = password_example; // String |
|
||||||
|
final clientId = clientId_example; // String |
|
||||||
|
final clientSecret = clientSecret_example; // String |
|
||||||
|
|
||||||
|
try {
|
||||||
|
final result = api_instance.authenticationAuthenticateWithForm(grantType, username, password, clientId, clientSecret);
|
||||||
|
print(result);
|
||||||
|
} catch (e) {
|
||||||
|
print('Exception when calling AuthenticationApi->authenticationAuthenticateWithForm: $e\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation for API Endpoints
|
||||||
|
|
||||||
|
All URIs are relative to *https://localhost:5001*
|
||||||
|
|
||||||
|
Class | Method | HTTP request | Description
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
*AuthenticationApi* | [**authenticationAuthenticateWithForm**](doc//AuthenticationApi.md#authenticationauthenticatewithform) | **POST** /api/Authentication/Token |
|
||||||
|
*AuthenticationApi* | [**authenticationAuthenticateWithJson**](doc//AuthenticationApi.md#authenticationauthenticatewithjson) | **POST** /api/Authentication/Authenticate |
|
||||||
|
*ConfigurationApi* | [**configurationCreate**](doc//ConfigurationApi.md#configurationcreate) | **POST** /api/Configuration |
|
||||||
|
*ConfigurationApi* | [**configurationDelete**](doc//ConfigurationApi.md#configurationdelete) | **DELETE** /api/Configuration/{id} |
|
||||||
|
*ConfigurationApi* | [**configurationExport**](doc//ConfigurationApi.md#configurationexport) | **GET** /api/Configuration/{id}/export |
|
||||||
|
*ConfigurationApi* | [**configurationGet**](doc//ConfigurationApi.md#configurationget) | **GET** /api/Configuration |
|
||||||
|
*ConfigurationApi* | [**configurationGetConfigurationsByPinCode**](doc//ConfigurationApi.md#configurationgetconfigurationsbypincode) | **GET** /api/Configuration/byPin |
|
||||||
|
*ConfigurationApi* | [**configurationGetDetail**](doc//ConfigurationApi.md#configurationgetdetail) | **GET** /api/Configuration/{id} |
|
||||||
|
*ConfigurationApi* | [**configurationImport**](doc//ConfigurationApi.md#configurationimport) | **POST** /api/Configuration/import |
|
||||||
|
*ConfigurationApi* | [**configurationUpdate**](doc//ConfigurationApi.md#configurationupdate) | **PUT** /api/Configuration |
|
||||||
|
*DeviceApi* | [**deviceCreate**](doc//DeviceApi.md#devicecreate) | **POST** /api/Device |
|
||||||
|
*DeviceApi* | [**deviceDelete**](doc//DeviceApi.md#devicedelete) | **DELETE** /api/Device/{id} |
|
||||||
|
*DeviceApi* | [**deviceGet**](doc//DeviceApi.md#deviceget) | **GET** /api/Device |
|
||||||
|
*DeviceApi* | [**deviceGetDetail**](doc//DeviceApi.md#devicegetdetail) | **GET** /api/Device/{id}/detail |
|
||||||
|
*DeviceApi* | [**deviceUpdate**](doc//DeviceApi.md#deviceupdate) | **PUT** /api/Device |
|
||||||
|
*DeviceApi* | [**deviceUpdateMainInfos**](doc//DeviceApi.md#deviceupdatemaininfos) | **PUT** /api/Device/mainInfos |
|
||||||
|
*InstanceApi* | [**instanceCreateInstance**](doc//InstanceApi.md#instancecreateinstance) | **POST** /api/Instance |
|
||||||
|
*InstanceApi* | [**instanceDeleteInstance**](doc//InstanceApi.md#instancedeleteinstance) | **DELETE** /api/Instance/{id} |
|
||||||
|
*InstanceApi* | [**instanceGet**](doc//InstanceApi.md#instanceget) | **GET** /api/Instance |
|
||||||
|
*InstanceApi* | [**instanceGetDetail**](doc//InstanceApi.md#instancegetdetail) | **GET** /api/Instance/{id} |
|
||||||
|
*InstanceApi* | [**instanceGetInstanceByPinCode**](doc//InstanceApi.md#instancegetinstancebypincode) | **GET** /api/Instance/byPin |
|
||||||
|
*InstanceApi* | [**instanceUpdateinstance**](doc//InstanceApi.md#instanceupdateinstance) | **PUT** /api/Instance |
|
||||||
|
*ResourceApi* | [**resourceCreate**](doc//ResourceApi.md#resourcecreate) | **POST** /api/Resource |
|
||||||
|
*ResourceApi* | [**resourceDelete**](doc//ResourceApi.md#resourcedelete) | **DELETE** /api/Resource/{id} |
|
||||||
|
*ResourceApi* | [**resourceGet**](doc//ResourceApi.md#resourceget) | **GET** /api/Resource |
|
||||||
|
*ResourceApi* | [**resourceGetDetail**](doc//ResourceApi.md#resourcegetdetail) | **GET** /api/Resource/{id}/detail |
|
||||||
|
*ResourceApi* | [**resourceShow**](doc//ResourceApi.md#resourceshow) | **GET** /api/Resource/{id} |
|
||||||
|
*ResourceApi* | [**resourceUpdate**](doc//ResourceApi.md#resourceupdate) | **PUT** /api/Resource |
|
||||||
|
*ResourceApi* | [**resourceUpload**](doc//ResourceApi.md#resourceupload) | **POST** /api/Resource/upload |
|
||||||
|
*SectionApi* | [**sectionCreate**](doc//SectionApi.md#sectioncreate) | **POST** /api/Section |
|
||||||
|
*SectionApi* | [**sectionDelete**](doc//SectionApi.md#sectiondelete) | **DELETE** /api/Section/{id} |
|
||||||
|
*SectionApi* | [**sectionDeleteAllForConfiguration**](doc//SectionApi.md#sectiondeleteallforconfiguration) | **DELETE** /api/Section/configuration/{id} |
|
||||||
|
*SectionApi* | [**sectionGet**](doc//SectionApi.md#sectionget) | **GET** /api/Section |
|
||||||
|
*SectionApi* | [**sectionGetAgendaDTO**](doc//SectionApi.md#sectiongetagendadto) | **GET** /api/Section/AgendaDTO |
|
||||||
|
*SectionApi* | [**sectionGetAllBeaconsForInstance**](doc//SectionApi.md#sectiongetallbeaconsforinstance) | **GET** /api/Section/beacons/{instanceId} |
|
||||||
|
*SectionApi* | [**sectionGetAllSectionSubSections**](doc//SectionApi.md#sectiongetallsectionsubsections) | **GET** /api/Section/{id}/subsections |
|
||||||
|
*SectionApi* | [**sectionGetArticleDTO**](doc//SectionApi.md#sectiongetarticledto) | **GET** /api/Section/ArticleDTO |
|
||||||
|
*SectionApi* | [**sectionGetDetail**](doc//SectionApi.md#sectiongetdetail) | **GET** /api/Section/{id} |
|
||||||
|
*SectionApi* | [**sectionGetFromConfiguration**](doc//SectionApi.md#sectiongetfromconfiguration) | **GET** /api/Section/configuration/{id} |
|
||||||
|
*SectionApi* | [**sectionGetFromConfigurationDetail**](doc//SectionApi.md#sectiongetfromconfigurationdetail) | **GET** /api/Section/configuration/{id}/detail |
|
||||||
|
*SectionApi* | [**sectionGetMapDTO**](doc//SectionApi.md#sectiongetmapdto) | **GET** /api/Section/MapDTO |
|
||||||
|
*SectionApi* | [**sectionGetMenuDTO**](doc//SectionApi.md#sectiongetmenudto) | **GET** /api/Section/MenuDTO |
|
||||||
|
*SectionApi* | [**sectionGetPdfDTO**](doc//SectionApi.md#sectiongetpdfdto) | **GET** /api/Section/PdfDTO |
|
||||||
|
*SectionApi* | [**sectionGetPuzzleDTO**](doc//SectionApi.md#sectiongetpuzzledto) | **GET** /api/Section/PuzzleDTO |
|
||||||
|
*SectionApi* | [**sectionGetQuizDTO**](doc//SectionApi.md#sectiongetquizdto) | **GET** /api/Section/QuizDTO |
|
||||||
|
*SectionApi* | [**sectionGetSliderDTO**](doc//SectionApi.md#sectiongetsliderdto) | **GET** /api/Section/SliderDTO |
|
||||||
|
*SectionApi* | [**sectionGetVideoDTO**](doc//SectionApi.md#sectiongetvideodto) | **GET** /api/Section/VideoDTO |
|
||||||
|
*SectionApi* | [**sectionGetWeatherDTO**](doc//SectionApi.md#sectiongetweatherdto) | **GET** /api/Section/WeatherDTO |
|
||||||
|
*SectionApi* | [**sectionGetWebDTO**](doc//SectionApi.md#sectiongetwebdto) | **GET** /api/Section/WebDTO |
|
||||||
|
*SectionApi* | [**sectionPlayerMessageDTO**](doc//SectionApi.md#sectionplayermessagedto) | **GET** /api/Section/PlayerMessageDTO |
|
||||||
|
*SectionApi* | [**sectionUpdate**](doc//SectionApi.md#sectionupdate) | **PUT** /api/Section |
|
||||||
|
*SectionApi* | [**sectionUpdateOrder**](doc//SectionApi.md#sectionupdateorder) | **PUT** /api/Section/order |
|
||||||
|
*SectionMapApi* | [**sectionMapCreate**](doc//SectionMapApi.md#sectionmapcreate) | **POST** /api/SectionMap/{sectionId}/points |
|
||||||
|
*SectionMapApi* | [**sectionMapDelete**](doc//SectionMapApi.md#sectionmapdelete) | **DELETE** /api/SectionMap/points/delete/{geoPointId} |
|
||||||
|
*SectionMapApi* | [**sectionMapGetAllGeoPointsFromSection**](doc//SectionMapApi.md#sectionmapgetallgeopointsfromsection) | **GET** /api/SectionMap/{sectionId}/points |
|
||||||
|
*SectionMapApi* | [**sectionMapUpdate**](doc//SectionMapApi.md#sectionmapupdate) | **PUT** /api/SectionMap |
|
||||||
|
*SectionQuizApi* | [**sectionQuizCreate**](doc//SectionQuizApi.md#sectionquizcreate) | **POST** /api/SectionQuiz/{sectionId}/questions |
|
||||||
|
*SectionQuizApi* | [**sectionQuizDelete**](doc//SectionQuizApi.md#sectionquizdelete) | **DELETE** /api/SectionQuiz/questions/delete/{quizQuestionId} |
|
||||||
|
*SectionQuizApi* | [**sectionQuizGetAllQuizQuestionFromSection**](doc//SectionQuizApi.md#sectionquizgetallquizquestionfromsection) | **GET** /api/SectionQuiz/{sectionId}/questions |
|
||||||
|
*SectionQuizApi* | [**sectionQuizUpdate**](doc//SectionQuizApi.md#sectionquizupdate) | **PUT** /api/SectionQuiz |
|
||||||
|
*UserApi* | [**userCreateUser**](doc//UserApi.md#usercreateuser) | **POST** /api/User |
|
||||||
|
*UserApi* | [**userDeleteUser**](doc//UserApi.md#userdeleteuser) | **DELETE** /api/User/{id} |
|
||||||
|
*UserApi* | [**userGet**](doc//UserApi.md#userget) | **GET** /api/User |
|
||||||
|
*UserApi* | [**userGetDetail**](doc//UserApi.md#usergetdetail) | **GET** /api/User/{id} |
|
||||||
|
*UserApi* | [**userUpdateUser**](doc//UserApi.md#userupdateuser) | **PUT** /api/User |
|
||||||
|
|
||||||
|
|
||||||
|
## Documentation For Models
|
||||||
|
|
||||||
|
- [AgendaDTO](doc//AgendaDTO.md)
|
||||||
|
- [AgendaDTOAllOfAgendaMapProvider](doc//AgendaDTOAllOfAgendaMapProvider.md)
|
||||||
|
- [ArticleDTO](doc//ArticleDTO.md)
|
||||||
|
- [CategorieDTO](doc//CategorieDTO.md)
|
||||||
|
- [ConfigurationDTO](doc//ConfigurationDTO.md)
|
||||||
|
- [ContentDTO](doc//ContentDTO.md)
|
||||||
|
- [ContentDTOResource](doc//ContentDTOResource.md)
|
||||||
|
- [DeviceDTO](doc//DeviceDTO.md)
|
||||||
|
- [DeviceDetailDTO](doc//DeviceDetailDTO.md)
|
||||||
|
- [ExportConfigurationDTO](doc//ExportConfigurationDTO.md)
|
||||||
|
- [GeoPoint](doc//GeoPoint.md)
|
||||||
|
- [GeoPointDTO](doc//GeoPointDTO.md)
|
||||||
|
- [GeoPointSectionMap](doc//GeoPointSectionMap.md)
|
||||||
|
- [Instance](doc//Instance.md)
|
||||||
|
- [InstanceDTO](doc//InstanceDTO.md)
|
||||||
|
- [LoginDTO](doc//LoginDTO.md)
|
||||||
|
- [MapDTO](doc//MapDTO.md)
|
||||||
|
- [MapDTOAllOfMapProvider](doc//MapDTOAllOfMapProvider.md)
|
||||||
|
- [MapDTOAllOfMapType](doc//MapDTOAllOfMapType.md)
|
||||||
|
- [MapDTOAllOfMapTypeMapbox](doc//MapDTOAllOfMapTypeMapbox.md)
|
||||||
|
- [MapProvider](doc//MapProvider.md)
|
||||||
|
- [MapTypeApp](doc//MapTypeApp.md)
|
||||||
|
- [MapTypeMapBox](doc//MapTypeMapBox.md)
|
||||||
|
- [MenuDTO](doc//MenuDTO.md)
|
||||||
|
- [OrderedTranslationAndResourceDTO](doc//OrderedTranslationAndResourceDTO.md)
|
||||||
|
- [PdfDTO](doc//PdfDTO.md)
|
||||||
|
- [PlayerMessageDTO](doc//PlayerMessageDTO.md)
|
||||||
|
- [PuzzleDTO](doc//PuzzleDTO.md)
|
||||||
|
- [PuzzleDTOAllOfPuzzleImage](doc//PuzzleDTOAllOfPuzzleImage.md)
|
||||||
|
- [QuestionDTO](doc//QuestionDTO.md)
|
||||||
|
- [QuestionDTOImageBackgroundResourceType](doc//QuestionDTOImageBackgroundResourceType.md)
|
||||||
|
- [QuizDTO](doc//QuizDTO.md)
|
||||||
|
- [Resource](doc//Resource.md)
|
||||||
|
- [ResourceDTO](doc//ResourceDTO.md)
|
||||||
|
- [ResourceType](doc//ResourceType.md)
|
||||||
|
- [ResponseDTO](doc//ResponseDTO.md)
|
||||||
|
- [Section](doc//Section.md)
|
||||||
|
- [SectionDTO](doc//SectionDTO.md)
|
||||||
|
- [SectionMap](doc//SectionMap.md)
|
||||||
|
- [SectionMapAllOfMapMapProvider](doc//SectionMapAllOfMapMapProvider.md)
|
||||||
|
- [SectionMapAllOfMapMapType](doc//SectionMapAllOfMapMapType.md)
|
||||||
|
- [SectionMapAllOfMapResource](doc//SectionMapAllOfMapResource.md)
|
||||||
|
- [SectionMapAllOfMapTypeMapbox](doc//SectionMapAllOfMapTypeMapbox.md)
|
||||||
|
- [SectionType](doc//SectionType.md)
|
||||||
|
- [SliderDTO](doc//SliderDTO.md)
|
||||||
|
- [TokenDTO](doc//TokenDTO.md)
|
||||||
|
- [TranslationAndResourceDTO](doc//TranslationAndResourceDTO.md)
|
||||||
|
- [TranslationDTO](doc//TranslationDTO.md)
|
||||||
|
- [User](doc//User.md)
|
||||||
|
- [UserDetailDTO](doc//UserDetailDTO.md)
|
||||||
|
- [VideoDTO](doc//VideoDTO.md)
|
||||||
|
- [WeatherDTO](doc//WeatherDTO.md)
|
||||||
|
- [WebDTO](doc//WebDTO.md)
|
||||||
|
|
||||||
|
|
||||||
|
## Documentation For Authorization
|
||||||
|
|
||||||
|
|
||||||
|
Authentication schemes defined for the API:
|
||||||
|
### bearer
|
||||||
|
|
||||||
|
- **Type**: OAuth
|
||||||
|
- **Flow**: password
|
||||||
|
- **Authorization URL**: /authentication/Token
|
||||||
|
- **Scopes**:
|
||||||
|
- **Manager-api**: Manager WebAPI
|
||||||
|
|
||||||
|
|
||||||
|
## Author
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
34
manager_api_new/doc/AgendaDTO.md
Normal file
34
manager_api_new/doc/AgendaDTO.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# manager_api_new.model.AgendaDTO
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api_new/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **String** | | [optional]
|
||||||
|
**label** | **String** | | [optional]
|
||||||
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**imageId** | **String** | | [optional]
|
||||||
|
**imageSource** | **String** | | [optional]
|
||||||
|
**configurationId** | **String** | | [optional]
|
||||||
|
**isSubSection** | **bool** | | [optional]
|
||||||
|
**parentId** | **String** | | [optional]
|
||||||
|
**type** | [**SectionType**](SectionType.md) | | [optional]
|
||||||
|
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
|
**order** | **int** | | [optional]
|
||||||
|
**instanceId** | **String** | | [optional]
|
||||||
|
**latitude** | **String** | | [optional]
|
||||||
|
**longitude** | **String** | | [optional]
|
||||||
|
**meterZoneGPS** | **int** | | [optional]
|
||||||
|
**isBeacon** | **bool** | | [optional]
|
||||||
|
**beaconId** | **int** | | [optional]
|
||||||
|
**resourceIds** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**agendaMapProvider** | [**AgendaDTOAllOfAgendaMapProvider**](AgendaDTOAllOfAgendaMapProvider.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -1,14 +1,13 @@
|
|||||||
# manager_api.model.WebDTO
|
# manager_api_new.model.AgendaDTOAllOfAgendaMapProvider
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**source_** | **String** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
37
manager_api_new/doc/ArticleDTO.md
Normal file
37
manager_api_new/doc/ArticleDTO.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# manager_api_new.model.ArticleDTO
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api_new/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **String** | | [optional]
|
||||||
|
**label** | **String** | | [optional]
|
||||||
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**imageId** | **String** | | [optional]
|
||||||
|
**imageSource** | **String** | | [optional]
|
||||||
|
**configurationId** | **String** | | [optional]
|
||||||
|
**isSubSection** | **bool** | | [optional]
|
||||||
|
**parentId** | **String** | | [optional]
|
||||||
|
**type** | [**SectionType**](SectionType.md) | | [optional]
|
||||||
|
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
|
**order** | **int** | | [optional]
|
||||||
|
**instanceId** | **String** | | [optional]
|
||||||
|
**latitude** | **String** | | [optional]
|
||||||
|
**longitude** | **String** | | [optional]
|
||||||
|
**meterZoneGPS** | **int** | | [optional]
|
||||||
|
**isBeacon** | **bool** | | [optional]
|
||||||
|
**beaconId** | **int** | | [optional]
|
||||||
|
**content** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**isContentTop** | **bool** | | [optional]
|
||||||
|
**audioIds** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**isReadAudioAuto** | **bool** | | [optional]
|
||||||
|
**contents** | [**List<ContentDTO>**](ContentDTO.md) | | [optional] [default to const []]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -1,11 +1,11 @@
|
|||||||
# manager_api.api.AuthenticationApi
|
# manager_api_new.api.AuthenticationApi
|
||||||
|
|
||||||
## Load the API package
|
## Load the API package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.myinfomate.be*
|
All URIs are relative to *https://localhost:5001*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
@ -20,7 +20,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.CategorieDTO
|
# manager_api_new.model.CategorieDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -11,8 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**id** | **int** | | [optional]
|
**id** | **int** | | [optional]
|
||||||
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**icon** | **String** | | [optional]
|
**icon** | **String** | | [optional]
|
||||||
**iconResourceId** | **String** | | [optional]
|
**resourceDTO** | [**ContentDTOResource**](ContentDTOResource.md) | | [optional]
|
||||||
**iconUrl** | **String** | | [optional]
|
|
||||||
**order** | **int** | | [optional]
|
**order** | **int** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
@ -1,11 +1,11 @@
|
|||||||
# manager_api.api.ConfigurationApi
|
# manager_api_new.api.ConfigurationApi
|
||||||
|
|
||||||
## Load the API package
|
## Load the API package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.myinfomate.be*
|
All URIs are relative to *https://localhost:5001*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
@ -26,7 +26,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -157,7 +157,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -200,12 +200,12 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = ConfigurationApi();
|
final api_instance = ConfigurationApi();
|
||||||
final pinCode = 56; // int |
|
final pinCode = pinCode_example; // String |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.configurationGetConfigurationsByPinCode(pinCode);
|
final result = api_instance.configurationGetConfigurationsByPinCode(pinCode);
|
||||||
@ -219,7 +219,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**pinCode** | **int**| | [optional]
|
**pinCode** | **String**| | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -286,7 +286,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.ConfigurationDTO
|
# manager_api_new.model.ConfigurationDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -24,10 +24,6 @@ Name | Type | Description | Notes
|
|||||||
**sectionIds** | **List<String>** | | [optional] [default to const []]
|
**sectionIds** | **List<String>** | | [optional] [default to const []]
|
||||||
**loaderImageId** | **String** | | [optional]
|
**loaderImageId** | **String** | | [optional]
|
||||||
**loaderImageUrl** | **String** | | [optional]
|
**loaderImageUrl** | **String** | | [optional]
|
||||||
**weatherCity** | **String** | | [optional]
|
|
||||||
**weatherUpdatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
|
||||||
**weatherResult** | **String** | | [optional]
|
|
||||||
**isWeather** | **bool** | | [optional]
|
|
||||||
**isDate** | **bool** | | [optional]
|
**isDate** | **bool** | | [optional]
|
||||||
**isHour** | **bool** | | [optional]
|
**isHour** | **bool** | | [optional]
|
||||||
**isSectionImageBackground** | **bool** | | [optional]
|
**isSectionImageBackground** | **bool** | | [optional]
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.ContentDTO
|
# manager_api_new.model.ContentDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -10,10 +10,9 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**resourceId** | **String** | | [optional]
|
|
||||||
**resourceUrl** | **String** | | [optional]
|
|
||||||
**order** | **int** | | [optional]
|
**order** | **int** | | [optional]
|
||||||
**resourceType** | [**ResourceType**](ResourceType.md) | | [optional]
|
**resourceId** | **String** | | [optional]
|
||||||
|
**resource** | [**ContentDTOResource**](ContentDTOResource.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@ -1,19 +1,17 @@
|
|||||||
# manager_api.model.User
|
# manager_api_new.model.ContentDTOResource
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [optional]
|
**id** | **String** | | [optional]
|
||||||
**email** | **String** | | [optional]
|
**type** | [**ResourceType**](ResourceType.md) | | [optional]
|
||||||
**password** | **String** | | [optional]
|
**label** | **String** | | [optional]
|
||||||
**firstName** | **String** | | [optional]
|
**url** | **String** | | [optional]
|
||||||
**lastName** | **String** | | [optional]
|
|
||||||
**token** | **String** | | [optional]
|
|
||||||
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**instanceId** | **String** | | [optional]
|
**instanceId** | **String** | | [optional]
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.ContentGeoPoint
|
# manager_api_new.model.ContentGeoPoint
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,11 +1,11 @@
|
|||||||
# manager_api.api.DeviceApi
|
# manager_api_new.api.DeviceApi
|
||||||
|
|
||||||
## Load the API package
|
## Load the API package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.myinfomate.be*
|
All URIs are relative to *https://localhost:5001*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
@ -24,7 +24,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -239,7 +239,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.DeviceDTO
|
# manager_api_new.model.DeviceDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.DeviceDetailDTO
|
# manager_api_new.model.DeviceDetailDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.DeviceDetailDTOAllOf
|
# manager_api_new.model.DeviceDetailDTOAllOf
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.ExportConfigurationDTO
|
# manager_api_new.model.ExportConfigurationDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -24,10 +24,6 @@ Name | Type | Description | Notes
|
|||||||
**sectionIds** | **List<String>** | | [optional] [default to const []]
|
**sectionIds** | **List<String>** | | [optional] [default to const []]
|
||||||
**loaderImageId** | **String** | | [optional]
|
**loaderImageId** | **String** | | [optional]
|
||||||
**loaderImageUrl** | **String** | | [optional]
|
**loaderImageUrl** | **String** | | [optional]
|
||||||
**weatherCity** | **String** | | [optional]
|
|
||||||
**weatherUpdatedDate** | [**DateTime**](DateTime.md) | | [optional]
|
|
||||||
**weatherResult** | **String** | | [optional]
|
|
||||||
**isWeather** | **bool** | | [optional]
|
|
||||||
**isDate** | **bool** | | [optional]
|
**isDate** | **bool** | | [optional]
|
||||||
**isHour** | **bool** | | [optional]
|
**isHour** | **bool** | | [optional]
|
||||||
**isSectionImageBackground** | **bool** | | [optional]
|
**isSectionImageBackground** | **bool** | | [optional]
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.ExportConfigurationDTOAllOf
|
# manager_api_new.model.ExportConfigurationDTOAllOf
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
30
manager_api_new/doc/GeoPoint.md
Normal file
30
manager_api_new/doc/GeoPoint.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# manager_api_new.model.GeoPoint
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api_new/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **int** | |
|
||||||
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [default to const []]
|
||||||
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [default to const []]
|
||||||
|
**contents** | [**List<ContentDTO>**](ContentDTO.md) | | [default to const []]
|
||||||
|
**schedules** | [**List<TranslationDTO>**](TranslationDTO.md) | | [default to const []]
|
||||||
|
**prices** | [**List<TranslationDTO>**](TranslationDTO.md) | | [default to const []]
|
||||||
|
**phone** | [**List<TranslationDTO>**](TranslationDTO.md) | | [default to const []]
|
||||||
|
**email** | [**List<TranslationDTO>**](TranslationDTO.md) | | [default to const []]
|
||||||
|
**site** | [**List<TranslationDTO>**](TranslationDTO.md) | | [default to const []]
|
||||||
|
**categorieId** | **int** | | [optional]
|
||||||
|
**latitude** | **String** | | [optional]
|
||||||
|
**longitude** | **String** | | [optional]
|
||||||
|
**imageResourceId** | **String** | | [optional]
|
||||||
|
**imageUrl** | **String** | | [optional]
|
||||||
|
**sectionMapId** | **String** | | [optional]
|
||||||
|
**sectionMap** | [**GeoPointSectionMap**](GeoPointSectionMap.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.GeoPointDTO
|
# manager_api_new.model.GeoPointDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -11,8 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**id** | **int** | | [optional]
|
**id** | **int** | | [optional]
|
||||||
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**contents** | [**List<ContentGeoPoint>**](ContentGeoPoint.md) | | [optional] [default to const []]
|
**contents** | [**List<ContentDTO>**](ContentDTO.md) | | [optional] [default to const []]
|
||||||
**categorie** | [**GeoPointDTOCategorie**](GeoPointDTOCategorie.md) | | [optional]
|
|
||||||
**categorieId** | **int** | | [optional]
|
**categorieId** | **int** | | [optional]
|
||||||
**latitude** | **String** | | [optional]
|
**latitude** | **String** | | [optional]
|
||||||
**longitude** | **String** | | [optional]
|
**longitude** | **String** | | [optional]
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.GeoPointDTOCategorie
|
# manager_api_new.model.GeoPointDTOCategorie
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
42
manager_api_new/doc/GeoPointSectionMap.md
Normal file
42
manager_api_new/doc/GeoPointSectionMap.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# manager_api_new.model.GeoPointSectionMap
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api_new/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **String** | |
|
||||||
|
**label** | **String** | |
|
||||||
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [default to const []]
|
||||||
|
**configurationId** | **String** | |
|
||||||
|
**type** | [**SectionType**](SectionType.md) | |
|
||||||
|
**isSubSection** | **bool** | |
|
||||||
|
**instanceId** | **String** | |
|
||||||
|
**mapCategories** | [**List<CategorieDTO>**](CategorieDTO.md) | | [default to const []]
|
||||||
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**order** | **int** | | [optional]
|
||||||
|
**imageId** | **String** | | [optional]
|
||||||
|
**imageSource** | **String** | | [optional]
|
||||||
|
**parentId** | **String** | | [optional]
|
||||||
|
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
|
**isBeacon** | **bool** | | [optional]
|
||||||
|
**beaconId** | **int** | | [optional]
|
||||||
|
**latitude** | **String** | | [optional]
|
||||||
|
**longitude** | **String** | | [optional]
|
||||||
|
**meterZoneGPS** | **int** | | [optional]
|
||||||
|
**mapZoom** | **int** | | [optional]
|
||||||
|
**mapMapType** | [**SectionMapAllOfMapMapType**](SectionMapAllOfMapMapType.md) | | [optional]
|
||||||
|
**mapTypeMapbox** | [**SectionMapAllOfMapTypeMapbox**](SectionMapAllOfMapTypeMapbox.md) | | [optional]
|
||||||
|
**mapMapProvider** | [**SectionMapAllOfMapMapProvider**](SectionMapAllOfMapMapProvider.md) | | [optional]
|
||||||
|
**mapPoints** | [**List<GeoPoint>**](GeoPoint.md) | | [optional] [default to const []]
|
||||||
|
**mapResourceId** | **String** | | [optional]
|
||||||
|
**mapResource** | [**SectionMapAllOfMapResource**](SectionMapAllOfMapResource.md) | | [optional]
|
||||||
|
**mapCenterLatitude** | **String** | | [optional]
|
||||||
|
**mapCenterLongitude** | **String** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.ImageDTO
|
# manager_api_new.model.ImageDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|||||||
**resourceId** | **String** | | [optional]
|
**resourceId** | **String** | | [optional]
|
||||||
**source_** | **String** | | [optional]
|
**source_** | **String** | | [optional]
|
||||||
**order** | **int** | | [optional]
|
**order** | **int** | | [optional]
|
||||||
|
**type** | [**ResourceType**](ResourceType.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.ImageGeoPoint
|
# manager_api_new.model.ImageGeoPoint
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,17 +1,17 @@
|
|||||||
# manager_api.model.Instance
|
# manager_api_new.model.Instance
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | | [optional]
|
**id** | **String** | |
|
||||||
**name** | **String** | | [optional]
|
**name** | **String** | |
|
||||||
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**pinCode** | **int** | | [optional]
|
**pinCode** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@ -1,11 +1,11 @@
|
|||||||
# manager_api.api.InstanceApi
|
# manager_api_new.api.InstanceApi
|
||||||
|
|
||||||
## Load the API package
|
## Load the API package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.myinfomate.be*
|
All URIs are relative to *https://localhost:5001*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
@ -18,21 +18,21 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
# **instanceCreateInstance**
|
# **instanceCreateInstance**
|
||||||
> InstanceDTO instanceCreateInstance(instance)
|
> InstanceDTO instanceCreateInstance(instanceDTO)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = InstanceApi();
|
final api_instance = InstanceApi();
|
||||||
final instance = Instance(); // Instance |
|
final instanceDTO = InstanceDTO(); // InstanceDTO |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.instanceCreateInstance(instance);
|
final result = api_instance.instanceCreateInstance(instanceDTO);
|
||||||
print(result);
|
print(result);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print('Exception when calling InstanceApi->instanceCreateInstance: $e\n');
|
print('Exception when calling InstanceApi->instanceCreateInstance: $e\n');
|
||||||
@ -43,7 +43,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**instance** | [**Instance**](Instance.md)| |
|
**instanceDTO** | [**InstanceDTO**](InstanceDTO.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
@ -192,12 +192,12 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = InstanceApi();
|
final api_instance = InstanceApi();
|
||||||
final pinCode = 56; // int |
|
final pinCode = pinCode_example; // String |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.instanceGetInstanceByPinCode(pinCode);
|
final result = api_instance.instanceGetInstanceByPinCode(pinCode);
|
||||||
@ -211,7 +211,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**pinCode** | **int**| | [optional]
|
**pinCode** | **String**| | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -229,21 +229,21 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **instanceUpdateinstance**
|
# **instanceUpdateinstance**
|
||||||
> InstanceDTO instanceUpdateinstance(instance)
|
> InstanceDTO instanceUpdateinstance(instanceDTO)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
// TODO Configure OAuth2 access token for authorization: bearer
|
// TODO Configure OAuth2 access token for authorization: bearer
|
||||||
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api_instance = InstanceApi();
|
final api_instance = InstanceApi();
|
||||||
final instance = Instance(); // Instance |
|
final instanceDTO = InstanceDTO(); // InstanceDTO |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.instanceUpdateinstance(instance);
|
final result = api_instance.instanceUpdateinstance(instanceDTO);
|
||||||
print(result);
|
print(result);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print('Exception when calling InstanceApi->instanceUpdateinstance: $e\n');
|
print('Exception when calling InstanceApi->instanceUpdateinstance: $e\n');
|
||||||
@ -254,7 +254,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**instance** | [**Instance**](Instance.md)| |
|
**instanceDTO** | [**InstanceDTO**](InstanceDTO.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.InstanceDTO
|
# manager_api_new.model.InstanceDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**id** | **String** | | [optional]
|
**id** | **String** | | [optional]
|
||||||
**name** | **String** | | [optional]
|
**name** | **String** | | [optional]
|
||||||
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**pinCode** | **int** | | [optional]
|
**pinCode** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.LevelDTO
|
# manager_api_new.model.LevelDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.LoginDTO
|
# manager_api_new.model.LoginDTO
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
42
manager_api_new/doc/MapDTO.md
Normal file
42
manager_api_new/doc/MapDTO.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# manager_api_new.model.MapDTO
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api_new/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **String** | | [optional]
|
||||||
|
**label** | **String** | | [optional]
|
||||||
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**imageId** | **String** | | [optional]
|
||||||
|
**imageSource** | **String** | | [optional]
|
||||||
|
**configurationId** | **String** | | [optional]
|
||||||
|
**isSubSection** | **bool** | | [optional]
|
||||||
|
**parentId** | **String** | | [optional]
|
||||||
|
**type** | [**SectionType**](SectionType.md) | | [optional]
|
||||||
|
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
|
**order** | **int** | | [optional]
|
||||||
|
**instanceId** | **String** | | [optional]
|
||||||
|
**latitude** | **String** | | [optional]
|
||||||
|
**longitude** | **String** | | [optional]
|
||||||
|
**meterZoneGPS** | **int** | | [optional]
|
||||||
|
**isBeacon** | **bool** | | [optional]
|
||||||
|
**beaconId** | **int** | | [optional]
|
||||||
|
**zoom** | **int** | | [optional]
|
||||||
|
**mapType** | [**MapDTOAllOfMapType**](MapDTOAllOfMapType.md) | | [optional]
|
||||||
|
**mapTypeMapbox** | [**MapDTOAllOfMapTypeMapbox**](MapDTOAllOfMapTypeMapbox.md) | | [optional]
|
||||||
|
**mapProvider** | [**MapDTOAllOfMapProvider**](MapDTOAllOfMapProvider.md) | | [optional]
|
||||||
|
**points** | [**List<GeoPointDTO>**](GeoPointDTO.md) | | [optional] [default to const []]
|
||||||
|
**iconResourceId** | **String** | | [optional]
|
||||||
|
**iconSource** | **String** | | [optional]
|
||||||
|
**categories** | [**List<CategorieDTO>**](CategorieDTO.md) | | [optional] [default to const []]
|
||||||
|
**centerLatitude** | **String** | | [optional]
|
||||||
|
**centerLongitude** | **String** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -1,14 +1,13 @@
|
|||||||
# manager_api.model.VideoDTO
|
# manager_api_new.model.MapDTOAllOfMapProvider
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**source_** | **String** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@ -1,14 +1,13 @@
|
|||||||
# manager_api.model.PdfDTO
|
# manager_api_new.model.MapDTOAllOfMapType
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**pdfs** | [**List<PDFFileDTO>**](PDFFileDTO.md) | | [optional] [default to const []]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@ -1,14 +1,13 @@
|
|||||||
# manager_api.model.MenuDTO
|
# manager_api_new.model.MapDTOAllOfMapTypeMapbox
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**sections** | [**List<SectionDTO>**](SectionDTO.md) | | [optional] [default to const []]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.MapDTOMapProvider
|
# manager_api_new.model.MapDTOMapProvider
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.MapDTOMapType
|
# manager_api_new.model.MapDTOMapType
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.MapDTOMapTypeMapbox
|
# manager_api_new.model.MapDTOMapTypeMapbox
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.MapProvider
|
# manager_api_new.model.MapProvider
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.MapTypeApp
|
# manager_api_new.model.MapTypeApp
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
@ -1,8 +1,8 @@
|
|||||||
# manager_api.model.MapTypeMapBox
|
# manager_api_new.model.MapTypeMapBox
|
||||||
|
|
||||||
## Load the model package
|
## Load the model package
|
||||||
```dart
|
```dart
|
||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api_new/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
33
manager_api_new/doc/MenuDTO.md
Normal file
33
manager_api_new/doc/MenuDTO.md
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# manager_api_new.model.MenuDTO
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api_new/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **String** | | [optional]
|
||||||
|
**label** | **String** | | [optional]
|
||||||
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**imageId** | **String** | | [optional]
|
||||||
|
**imageSource** | **String** | | [optional]
|
||||||
|
**configurationId** | **String** | | [optional]
|
||||||
|
**isSubSection** | **bool** | | [optional]
|
||||||
|
**parentId** | **String** | | [optional]
|
||||||
|
**type** | [**SectionType**](SectionType.md) | | [optional]
|
||||||
|
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
|
**order** | **int** | | [optional]
|
||||||
|
**instanceId** | **String** | | [optional]
|
||||||
|
**latitude** | **String** | | [optional]
|
||||||
|
**longitude** | **String** | | [optional]
|
||||||
|
**meterZoneGPS** | **int** | | [optional]
|
||||||
|
**isBeacon** | **bool** | | [optional]
|
||||||
|
**beaconId** | **int** | | [optional]
|
||||||
|
**sections** | [**List<SectionDTO>**](SectionDTO.md) | | [optional] [default to const []]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user