diff --git a/android/app/build.gradle b/android/app/build.gradle index c5c757b..5b128b3 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -33,7 +33,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply plugin: 'com.google.gms.google-services' android { - compileSdkVersion 33 + compileSdkVersion 34 sourceSets { main.java.srcDirs += 'src/main/kotlin' diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 6f09ca3..c4b7159 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -3,9 +3,11 @@ + + + + diff --git a/android/app/src/main/res/xml/filepaths.xml b/android/app/src/main/res/xml/filepaths.xml new file mode 100644 index 0000000..b3abc6b --- /dev/null +++ b/android/app/src/main/res/xml/filepaths.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/android/app/src/main/res/xml/network_security_config.xml b/android/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 0000000..dca93c0 --- /dev/null +++ b/android/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/lib/Helpers/ImageCustomProvider.dart b/lib/Helpers/ImageCustomProvider.dart index e9b1be7..0b130a0 100644 --- a/lib/Helpers/ImageCustomProvider.dart +++ b/lib/Helpers/ImageCustomProvider.dart @@ -28,6 +28,7 @@ class ImageCustomProvider { // If localpath not found or file missing print("MISSINGG FILE"); + print(imageId); return CachedNetworkImageProvider(imageSource); } } diff --git a/lib/Screens/Agenda/event_list_item.dart b/lib/Screens/Agenda/event_list_item.dart index 81eb5c2..9ddcb72 100644 --- a/lib/Screens/Agenda/event_list_item.dart +++ b/lib/Screens/Agenda/event_list_item.dart @@ -137,20 +137,20 @@ class EventListItem extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.center, children: [ HtmlWidget( - eventAgenda.name!.length > 35 ? eventAgenda.name!.substring(0, 35) + " ..." : eventAgenda.name!, + eventAgenda.name!.length > 75 ? eventAgenda.name!.substring(0, 75) + " ..." : eventAgenda.name!, customStylesBuilder: (element) { return {'text-align': 'center'}; }, textStyle: TextStyle(fontSize: 14.0), ), - AutoSizeText( + /*AutoSizeText( eventAgenda.type!, maxFontSize: 12.0, style: TextStyle( fontSize: 10.0, color: Colors.grey, ), - ), + ),*/ ], ), ), diff --git a/lib/Screens/Agenda/event_popup.dart b/lib/Screens/Agenda/event_popup.dart index 026401e..e5d05d7 100644 --- a/lib/Screens/Agenda/event_popup.dart +++ b/lib/Screens/Agenda/event_popup.dart @@ -11,12 +11,12 @@ import 'package:flutter_widget_from_html/flutter_widget_from_html.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:mapbox_maps_flutter/mapbox_maps_flutter.dart' as mapBox; import 'package:manager_api/api.dart'; +import 'package:qr_flutter/qr_flutter.dart'; import 'package:tablet_app/Components/loading_common.dart'; import 'package:tablet_app/Components/video_viewer_youtube.dart'; -import 'package:tablet_app/Models/agenda.dart'; // Assurez-vous d'importer votre modèle d'agenda +import 'package:tablet_app/Models/agenda.dart'; import 'package:intl/intl.dart'; import 'package:tablet_app/constants.dart'; -import 'dart:ui' as ui; class EventPopup extends StatefulWidget { final EventAgenda eventAgenda; @@ -182,7 +182,7 @@ class _EventPopupState extends State { Padding( padding: const EdgeInsets.all(8.0), child: Container( - color: Colors.green, + //color: Colors.green, height: size.height * 0.13, width: size.width * 0.65, child: Column( @@ -356,6 +356,24 @@ class _EventPopupState extends State { ) ], ): SizedBox(), + widget.eventAgenda.website != null && widget.eventAgenda.website!.isNotEmpty ? + Expanded( + child: Center( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Container( + width: size.width *0.1, + height: 125, + child: QrImageView( + padding: EdgeInsets.only(left: 5.0, top: 5.0, bottom: 5.0, right: 5.0), + data: widget.eventAgenda.website!, + version: QrVersions.auto, + size: 50.0, + ), + ), + ), + ), + ): SizedBox(), ], ), ), diff --git a/lib/Screens/Configuration/config_view.dart b/lib/Screens/Configuration/config_view.dart index 5e2bfbc..0ff5e2e 100644 --- a/lib/Screens/Configuration/config_view.dart +++ b/lib/Screens/Configuration/config_view.dart @@ -1,5 +1,4 @@ -import 'package:cached_network_image/cached_network_image.dart'; -import 'package:device_info/device_info.dart'; + import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; diff --git a/lib/Services/downloadService.dart b/lib/Services/downloadService.dart index d2ac37e..1666319 100644 --- a/lib/Services/downloadService.dart +++ b/lib/Services/downloadService.dart @@ -4,6 +4,8 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:manager_api/api.dart'; +//import 'package:ota_update/ota_update.dart'; +//import 'package:package_info_plus/package_info_plus.dart'; import 'package:provider/provider.dart'; import 'package:tablet_app/Models/tabletContext.dart'; import 'package:tablet_app/app_context.dart'; @@ -24,6 +26,38 @@ class _DownloadConfigurationWidgetState extends State currentResourceIndex = ValueNotifier(0); ValueNotifier currentResourceNbr = ValueNotifier(-1); bool isAlreadyDownloading = false; + //OtaEvent? currentEvent; + + Future tryOtaUpdate() async { + try { + //print('ABI Platform: ${await OtaUpdate().getAbi()}'); + //final info = await PackageInfo.fromPlatform(); + + /*var test = info.version; + var test0 = info.appName; + var test1 = info.buildNumber; + var test2 = info.buildSignature; + var test3 = info.installerStore; + var test4 = info.packageName;*/ + + //LINK CONTAINS APK OF FLUTTER HELLO WORLD FROM FLUTTER SDK EXAMPLES + /*OtaUpdate() + .execute( + 'https://drive.google.com/file/d/1geAwa_GBiK_lNx_KE4PzzUfybjFFLZsX/view?usp=drive_link', + destinationFilename: 'myinfomate.apk', + //FOR NOW ANDROID ONLY - ABILITY TO VALIDATE CHECKSUM OF FILE: + //sha256checksum: 'd6da28451a1e15cf7a75f2c3f151befad3b80ad0bb232ab15c20897e54f21478', + ) + .listen( + (OtaEvent event) { + setState(() => currentEvent = event); + }, + );*/ + // ignore: avoid_catches_without_on_clauses + } catch (e) { + print('Failed to make OTA update. Details: $e'); + } + } Future download(BuildContext buildContext, TabletAppContext tabletAppContext) async { bool isAllLanguages = true; @@ -31,6 +65,14 @@ class _DownloadConfigurationWidgetState extends State statuses = await [ + Permission.requestInstallPackages, + ].request(); + tryOtaUpdate(); + } + ExportConfigurationDTO? exportConfigurationDTO; try{ // Retrieve all url from resource to download (get all resource from configuration en somme) diff --git a/macos/Flutter/ephemeral/Flutter-Generated.xcconfig b/macos/Flutter/ephemeral/Flutter-Generated.xcconfig index 017ccc3..d2f3d74 100644 --- a/macos/Flutter/ephemeral/Flutter-Generated.xcconfig +++ b/macos/Flutter/ephemeral/Flutter-Generated.xcconfig @@ -1,10 +1,10 @@ // This is a generated file; do not edit or check into version control. -FLUTTER_ROOT=/Users/thomasfransolet/Documents/flutter -FLUTTER_APPLICATION_PATH=/Users/thomasfransolet/Documents/Proj/MyMuseum/tablet_app +FLUTTER_ROOT=C:\PROJ\flutter +FLUTTER_APPLICATION_PATH=C:\Users\ThomasFransolet\Documents\Documents\Perso\MuseeDeLaFraise\tablet-app COCOAPODS_PARALLEL_CODE_SIGN=true FLUTTER_BUILD_DIR=build -FLUTTER_BUILD_NAME=2.0.3 -FLUTTER_BUILD_NUMBER=9 +FLUTTER_BUILD_NAME=2.0.6 +FLUTTER_BUILD_NUMBER=12 DART_OBFUSCATION=false TRACK_WIDGET_CREATION=true TREE_SHAKE_ICONS=false diff --git a/macos/Flutter/ephemeral/flutter_export_environment.sh b/macos/Flutter/ephemeral/flutter_export_environment.sh index 0ddf898..dfd6748 100755 --- a/macos/Flutter/ephemeral/flutter_export_environment.sh +++ b/macos/Flutter/ephemeral/flutter_export_environment.sh @@ -1,11 +1,11 @@ #!/bin/sh # This is a generated file; do not edit or check into version control. -export "FLUTTER_ROOT=/Users/thomasfransolet/Documents/flutter" -export "FLUTTER_APPLICATION_PATH=/Users/thomasfransolet/Documents/Proj/MyMuseum/tablet_app" +export "FLUTTER_ROOT=C:\PROJ\flutter" +export "FLUTTER_APPLICATION_PATH=C:\Users\ThomasFransolet\Documents\Documents\Perso\MuseeDeLaFraise\tablet-app" export "COCOAPODS_PARALLEL_CODE_SIGN=true" export "FLUTTER_BUILD_DIR=build" -export "FLUTTER_BUILD_NAME=2.0.3" -export "FLUTTER_BUILD_NUMBER=9" +export "FLUTTER_BUILD_NAME=2.0.6" +export "FLUTTER_BUILD_NUMBER=12" export "DART_OBFUSCATION=false" export "TRACK_WIDGET_CREATION=true" export "TREE_SHAKE_ICONS=false" diff --git a/manager_api_old/.gitignore b/manager_api_old/.gitignore deleted file mode 100644 index 7c28044..0000000 --- a/manager_api_old/.gitignore +++ /dev/null @@ -1,27 +0,0 @@ -# See https://www.dartlang.org/tools/private-files.html - -# Files and directories created by pub -.buildlog -.packages -.project -.pub/ -build/ -**/packages/ - -# Files created by dart2js -# (Most Dart developers will use pub build to compile Dart, use/modify these -# rules if you intend to use dart2js directly -# Convention is to use extension '.dart.js' for Dart compiled to Javascript to -# differentiate from explicit Javascript files) -*.dart.js -*.part.js -*.js.deps -*.js.map -*.info.json - -# Directory created by dartdoc -doc/api/ - -# Don't commit pubspec lock file -# (Library packages only! Remove pattern if developing an application package) -pubspec.lock diff --git a/manager_api_old/.openapi-generator-ignore b/manager_api_old/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/manager_api_old/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/manager_api_old/.openapi-generator/FILES b/manager_api_old/.openapi-generator/FILES deleted file mode 100644 index 605784e..0000000 --- a/manager_api_old/.openapi-generator/FILES +++ /dev/null @@ -1,90 +0,0 @@ -.gitignore -.travis.yml -README.md -doc/AuthenticationApi.md -doc/ConfigurationApi.md -doc/ConfigurationDTO.md -doc/DeviceApi.md -doc/DeviceDTO.md -doc/DeviceDetailDTO.md -doc/DeviceDetailDTOAllOf.md -doc/ExportConfigurationDTO.md -doc/ExportConfigurationDTOAllOf.md -doc/GeoPointDTO.md -doc/ImageDTO.md -doc/ImageGeoPoint.md -doc/LevelDTO.md -doc/LoginDTO.md -doc/MapDTO.md -doc/MapTypeApp.md -doc/MenuDTO.md -doc/PlayerMessageDTO.md -doc/QuestionDTO.md -doc/QuizzDTO.md -doc/ResourceApi.md -doc/ResourceDTO.md -doc/ResourceType.md -doc/ResponseDTO.md -doc/SectionApi.md -doc/SectionDTO.md -doc/SectionType.md -doc/SliderDTO.md -doc/TokenDTO.md -doc/TranslationDTO.md -doc/User.md -doc/UserApi.md -doc/UserDetailDTO.md -doc/VideoDTO.md -doc/WebDTO.md -git_push.sh -lib/api.dart -lib/api/authentication_api.dart -lib/api/configuration_api.dart -lib/api/device_api.dart -lib/api/resource_api.dart -lib/api/section_api.dart -lib/api/user_api.dart -lib/api_client.dart -lib/api_exception.dart -lib/api_helper.dart -lib/auth/api_key_auth.dart -lib/auth/authentication.dart -lib/auth/http_basic_auth.dart -lib/auth/http_bearer_auth.dart -lib/auth/oauth.dart -lib/model/configuration_dto.dart -lib/model/device_detail_dto.dart -lib/model/device_detail_dto_all_of.dart -lib/model/device_dto.dart -lib/model/export_configuration_dto.dart -lib/model/export_configuration_dto_all_of.dart -lib/model/geo_point_dto.dart -lib/model/image_dto.dart -lib/model/image_geo_point.dart -lib/model/level_dto.dart -lib/model/login_dto.dart -lib/model/map_dto.dart -lib/model/map_type_app.dart -lib/model/menu_dto.dart -lib/model/player_message_dto.dart -lib/model/question_dto.dart -lib/model/quizz_dto.dart -lib/model/resource_dto.dart -lib/model/resource_type.dart -lib/model/response_dto.dart -lib/model/section_dto.dart -lib/model/section_type.dart -lib/model/slider_dto.dart -lib/model/token_dto.dart -lib/model/translation_dto.dart -lib/model/user.dart -lib/model/user_detail_dto.dart -lib/model/video_dto.dart -lib/model/web_dto.dart -pubspec.yaml -test/export_configuration_dto_all_of_test.dart -test/export_configuration_dto_test.dart -test/level_dto_test.dart -test/question_dto_test.dart -test/quizz_dto_test.dart -test/response_dto_test.dart diff --git a/manager_api_old/.openapi-generator/VERSION b/manager_api_old/.openapi-generator/VERSION deleted file mode 100644 index acf69b4..0000000 --- a/manager_api_old/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.1.0 \ No newline at end of file diff --git a/manager_api_old/.travis.yml b/manager_api_old/.travis.yml deleted file mode 100644 index 1a3af66..0000000 --- a/manager_api_old/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -# -# AUTO-GENERATED FILE, DO NOT MODIFY! -# -# https://docs.travis-ci.com/user/languages/dart/ -# -language: dart -dart: -# Install a specific stable release -- "2.2.0" -install: -- pub get - -script: -- pub run test diff --git a/manager_api_old/README.md b/manager_api_old/README.md deleted file mode 100644 index c06ab5c..0000000 --- a/manager_api_old/README.md +++ /dev/null @@ -1,161 +0,0 @@ -# managerapi -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.0 or later - -## Installation & Usage - -### Github -If this Dart package is published to Github, add the following dependency to your pubspec.yaml -``` -dependencies: - managerapi: - 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: - managerapi: - path: /path/to/managerapi -``` - -## Tests - -TODO - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```dart -import 'package:managerapi/api.dart'; - -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('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 *http://192.168.31.140* - -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* | [**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 | -*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* | [**sectionGetAllSectionSubSections**](doc\/SectionApi.md#sectiongetallsectionsubsections) | **GET** /api/Section/{id}/subsections | -*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* | [**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* | [**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 - - - [ConfigurationDTO](doc\/ConfigurationDTO.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) - - [ImageDTO](doc\/ImageDTO.md) - - [ImageGeoPoint](doc\/ImageGeoPoint.md) - - [LevelDTO](doc\/LevelDTO.md) - - [LoginDTO](doc\/LoginDTO.md) - - [MapDTO](doc\/MapDTO.md) - - [MapTypeApp](doc\/MapTypeApp.md) - - [MenuDTO](doc\/MenuDTO.md) - - [PlayerMessageDTO](doc\/PlayerMessageDTO.md) - - [QuestionDTO](doc\/QuestionDTO.md) - - [QuizzDTO](doc\/QuizzDTO.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) - - [TranslationDTO](doc\/TranslationDTO.md) - - [User](doc\/User.md) - - [UserDetailDTO](doc\/UserDetailDTO.md) - - [VideoDTO](doc\/VideoDTO.md) - - [WebDTO](doc\/WebDTO.md) - - -## Documentation For Authorization - - -## bearer - -- **Type**: OAuth -- **Flow**: password -- **Authorization URL**: /authentication/Token -- **Scopes**: - - **Manager-api**: Manager WebAPI - - -## Author - - - - diff --git a/manager_api_old/doc/AuthenticationApi.md b/manager_api_old/doc/AuthenticationApi.md deleted file mode 100644 index 240d621..0000000 --- a/manager_api_old/doc/AuthenticationApi.md +++ /dev/null @@ -1,109 +0,0 @@ -# managerapi.api.AuthenticationApi - -## Load the API package -```dart -import 'package:managerapi/api.dart'; -``` - -All URIs are relative to *http://192.168.31.140* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**authenticationAuthenticateWithForm**](AuthenticationApi.md#authenticationauthenticatewithform) | **POST** /api/Authentication/Token | -[**authenticationAuthenticateWithJson**](AuthenticationApi.md#authenticationauthenticatewithjson) | **POST** /api/Authentication/Authenticate | - - -# **authenticationAuthenticateWithForm** -> TokenDTO authenticationAuthenticateWithForm(grantType, username, password, clientId, clientSecret) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('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'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **grantType** | **String**| | [optional] - **username** | **String**| | [optional] - **password** | **String**| | [optional] - **clientId** | **String**| | [optional] - **clientSecret** | **String**| | [optional] - -### Return type - -[**TokenDTO**](TokenDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -[[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) - -# **authenticationAuthenticateWithJson** -> TokenDTO authenticationAuthenticateWithJson(loginDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = AuthenticationApi(); -final loginDTO = LoginDTO(); // LoginDTO | - -try { - final result = api_instance.authenticationAuthenticateWithJson(loginDTO); - print(result); -} catch (e) { - print('Exception when calling AuthenticationApi->authenticationAuthenticateWithJson: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **loginDTO** | [**LoginDTO**](LoginDTO.md)| | - -### Return type - -[**TokenDTO**](TokenDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - diff --git a/manager_api_old/doc/ConfigurationApi.md b/manager_api_old/doc/ConfigurationApi.md deleted file mode 100644 index 9783da9..0000000 --- a/manager_api_old/doc/ConfigurationApi.md +++ /dev/null @@ -1,317 +0,0 @@ -# managerapi.api.ConfigurationApi - -## Load the API package -```dart -import 'package:managerapi/api.dart'; -``` - -All URIs are relative to *http://192.168.31.140* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**configurationCreate**](ConfigurationApi.md#configurationcreate) | **POST** /api/Configuration | -[**configurationDelete**](ConfigurationApi.md#configurationdelete) | **DELETE** /api/Configuration/{id} | -[**configurationExport**](ConfigurationApi.md#configurationexport) | **GET** /api/Configuration/{id}/export | -[**configurationGet**](ConfigurationApi.md#configurationget) | **GET** /api/Configuration | -[**configurationGetDetail**](ConfigurationApi.md#configurationgetdetail) | **GET** /api/Configuration/{id} | -[**configurationImport**](ConfigurationApi.md#configurationimport) | **POST** /api/Configuration/import | -[**configurationUpdate**](ConfigurationApi.md#configurationupdate) | **PUT** /api/Configuration | - - -# **configurationCreate** -> ConfigurationDTO configurationCreate(configurationDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ConfigurationApi(); -final configurationDTO = ConfigurationDTO(); // ConfigurationDTO | - -try { - final result = api_instance.configurationCreate(configurationDTO); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationCreate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **configurationDTO** | [**ConfigurationDTO**](ConfigurationDTO.md)| | - -### Return type - -[**ConfigurationDTO**](ConfigurationDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **configurationDelete** -> String configurationDelete(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ConfigurationApi(); -final id = id_example; // String | - -try { - final result = api_instance.configurationDelete(id); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationDelete: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -**String** - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **configurationExport** -> ExportConfigurationDTO configurationExport(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ConfigurationApi(); -final id = id_example; // String | - -try { - final result = api_instance.configurationExport(id); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationExport: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**ExportConfigurationDTO**](ExportConfigurationDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **configurationGet** -> List configurationGet() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ConfigurationApi(); - -try { - final result = api_instance.configurationGet(); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationGet: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](ConfigurationDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **configurationGetDetail** -> ConfigurationDTO configurationGetDetail(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ConfigurationApi(); -final id = id_example; // String | - -try { - final result = api_instance.configurationGetDetail(id); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationGetDetail: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**ConfigurationDTO**](ConfigurationDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **configurationImport** -> String configurationImport(exportConfigurationDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ConfigurationApi(); -final exportConfigurationDTO = ExportConfigurationDTO(); // ExportConfigurationDTO | - -try { - final result = api_instance.configurationImport(exportConfigurationDTO); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationImport: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **exportConfigurationDTO** | [**ExportConfigurationDTO**](ExportConfigurationDTO.md)| | - -### Return type - -**String** - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **configurationUpdate** -> ConfigurationDTO configurationUpdate(configurationDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ConfigurationApi(); -final configurationDTO = ConfigurationDTO(); // ConfigurationDTO | - -try { - final result = api_instance.configurationUpdate(configurationDTO); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationUpdate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **configurationDTO** | [**ConfigurationDTO**](ConfigurationDTO.md)| | - -### Return type - -[**ConfigurationDTO**](ConfigurationDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - diff --git a/manager_api_old/doc/ConfigurationDTO.md b/manager_api_old/doc/ConfigurationDTO.md deleted file mode 100644 index 425da4d..0000000 --- a/manager_api_old/doc/ConfigurationDTO.md +++ /dev/null @@ -1,20 +0,0 @@ -# managerapi.model.ConfigurationDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**primaryColor** | **String** | | [optional] -**secondaryColor** | **String** | | [optional] -**languages** | **List** | | [optional] [default to const []] -**dateCreation** | [**DateTime**](DateTime.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) - - diff --git a/manager_api_old/doc/DeviceApi.md b/manager_api_old/doc/DeviceApi.md deleted file mode 100644 index da2f466..0000000 --- a/manager_api_old/doc/DeviceApi.md +++ /dev/null @@ -1,273 +0,0 @@ -# managerapi.api.DeviceApi - -## Load the API package -```dart -import 'package:managerapi/api.dart'; -``` - -All URIs are relative to *http://192.168.31.140* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deviceCreate**](DeviceApi.md#devicecreate) | **POST** /api/Device | -[**deviceDelete**](DeviceApi.md#devicedelete) | **DELETE** /api/Device/{id} | -[**deviceGet**](DeviceApi.md#deviceget) | **GET** /api/Device | -[**deviceGetDetail**](DeviceApi.md#devicegetdetail) | **GET** /api/Device/{id}/detail | -[**deviceUpdate**](DeviceApi.md#deviceupdate) | **PUT** /api/Device | -[**deviceUpdateMainInfos**](DeviceApi.md#deviceupdatemaininfos) | **PUT** /api/Device/mainInfos | - - -# **deviceCreate** -> DeviceDetailDTO deviceCreate(deviceDetailDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = DeviceApi(); -final deviceDetailDTO = DeviceDetailDTO(); // DeviceDetailDTO | - -try { - final result = api_instance.deviceCreate(deviceDetailDTO); - print(result); -} catch (e) { - print('Exception when calling DeviceApi->deviceCreate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **deviceDetailDTO** | [**DeviceDetailDTO**](DeviceDetailDTO.md)| | - -### Return type - -[**DeviceDetailDTO**](DeviceDetailDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **deviceDelete** -> String deviceDelete(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = DeviceApi(); -final id = id_example; // String | - -try { - final result = api_instance.deviceDelete(id); - print(result); -} catch (e) { - print('Exception when calling DeviceApi->deviceDelete: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -**String** - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **deviceGet** -> List deviceGet() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = DeviceApi(); - -try { - final result = api_instance.deviceGet(); - print(result); -} catch (e) { - print('Exception when calling DeviceApi->deviceGet: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](DeviceDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **deviceGetDetail** -> DeviceDetailDTO deviceGetDetail(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = DeviceApi(); -final id = id_example; // String | - -try { - final result = api_instance.deviceGetDetail(id); - print(result); -} catch (e) { - print('Exception when calling DeviceApi->deviceGetDetail: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**DeviceDetailDTO**](DeviceDetailDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **deviceUpdate** -> DeviceDetailDTO deviceUpdate(deviceDetailDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = DeviceApi(); -final deviceDetailDTO = DeviceDetailDTO(); // DeviceDetailDTO | - -try { - final result = api_instance.deviceUpdate(deviceDetailDTO); - print(result); -} catch (e) { - print('Exception when calling DeviceApi->deviceUpdate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **deviceDetailDTO** | [**DeviceDetailDTO**](DeviceDetailDTO.md)| | - -### Return type - -[**DeviceDetailDTO**](DeviceDetailDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **deviceUpdateMainInfos** -> DeviceDTO deviceUpdateMainInfos(deviceDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = DeviceApi(); -final deviceDTO = DeviceDTO(); // DeviceDTO | - -try { - final result = api_instance.deviceUpdateMainInfos(deviceDTO); - print(result); -} catch (e) { - print('Exception when calling DeviceApi->deviceUpdateMainInfos: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **deviceDTO** | [**DeviceDTO**](DeviceDTO.md)| | - -### Return type - -[**DeviceDTO**](DeviceDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - diff --git a/manager_api_old/doc/DeviceDTO.md b/manager_api_old/doc/DeviceDTO.md deleted file mode 100644 index 62df565..0000000 --- a/manager_api_old/doc/DeviceDTO.md +++ /dev/null @@ -1,24 +0,0 @@ -# managerapi.model.DeviceDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**identifier** | **String** | | [optional] -**name** | **String** | | [optional] -**ipAddressWLAN** | **String** | | [optional] -**ipAddressETH** | **String** | | [optional] -**configurationId** | **String** | | [optional] -**configuration** | **String** | | [optional] -**connected** | **bool** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**dateUpdate** | [**DateTime**](DateTime.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) - - diff --git a/manager_api_old/doc/DeviceDetailDTO.md b/manager_api_old/doc/DeviceDetailDTO.md deleted file mode 100644 index 4968995..0000000 --- a/manager_api_old/doc/DeviceDetailDTO.md +++ /dev/null @@ -1,28 +0,0 @@ -# managerapi.model.DeviceDetailDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**identifier** | **String** | | [optional] -**name** | **String** | | [optional] -**ipAddressWLAN** | **String** | | [optional] -**ipAddressETH** | **String** | | [optional] -**configurationId** | **String** | | [optional] -**configuration** | **String** | | [optional] -**connected** | **bool** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**dateUpdate** | [**DateTime**](DateTime.md) | | [optional] -**connectionLevel** | **String** | | [optional] -**lastConnectionLevel** | [**DateTime**](DateTime.md) | | [optional] -**batteryLevel** | **String** | | [optional] -**lastBatteryLevel** | [**DateTime**](DateTime.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) - - diff --git a/manager_api_old/doc/DeviceDetailDTOAllOf.md b/manager_api_old/doc/DeviceDetailDTOAllOf.md deleted file mode 100644 index 0cc0886..0000000 --- a/manager_api_old/doc/DeviceDetailDTOAllOf.md +++ /dev/null @@ -1,18 +0,0 @@ -# managerapi.model.DeviceDetailDTOAllOf - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionLevel** | **String** | | [optional] -**lastConnectionLevel** | [**DateTime**](DateTime.md) | | [optional] -**batteryLevel** | **String** | | [optional] -**lastBatteryLevel** | [**DateTime**](DateTime.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) - - diff --git a/manager_api_old/doc/ExportConfigurationDTO.md b/manager_api_old/doc/ExportConfigurationDTO.md deleted file mode 100644 index 7c7c3f9..0000000 --- a/manager_api_old/doc/ExportConfigurationDTO.md +++ /dev/null @@ -1,22 +0,0 @@ -# managerapi.model.ExportConfigurationDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**primaryColor** | **String** | | [optional] -**secondaryColor** | **String** | | [optional] -**languages** | **List** | | [optional] [default to const []] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**sections** | [**List**](SectionDTO.md) | | [optional] [default to const []] -**resources** | [**List**](ResourceDTO.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) - - diff --git a/manager_api_old/doc/ExportConfigurationDTOAllOf.md b/manager_api_old/doc/ExportConfigurationDTOAllOf.md deleted file mode 100644 index e369543..0000000 --- a/manager_api_old/doc/ExportConfigurationDTOAllOf.md +++ /dev/null @@ -1,16 +0,0 @@ -# managerapi.model.ExportConfigurationDTOAllOf - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sections** | [**List**](SectionDTO.md) | | [optional] [default to const []] -**resources** | [**List**](ResourceDTO.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) - - diff --git a/manager_api_old/doc/GeoPointDTO.md b/manager_api_old/doc/GeoPointDTO.md deleted file mode 100644 index bb5d545..0000000 --- a/manager_api_old/doc/GeoPointDTO.md +++ /dev/null @@ -1,20 +0,0 @@ -# managerapi.model.GeoPointDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**images** | [**List**](ImageGeoPoint.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) - - diff --git a/manager_api_old/doc/ImageDTO.md b/manager_api_old/doc/ImageDTO.md deleted file mode 100644 index 1f2c7b5..0000000 --- a/manager_api_old/doc/ImageDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# managerapi.model.ImageDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**resourceId** | **String** | | [optional] -**source_** | **String** | | [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) - - diff --git a/manager_api_old/doc/ImageGeoPoint.md b/manager_api_old/doc/ImageGeoPoint.md deleted file mode 100644 index e290427..0000000 --- a/manager_api_old/doc/ImageGeoPoint.md +++ /dev/null @@ -1,16 +0,0 @@ -# managerapi.model.ImageGeoPoint - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**imageResourceId** | **String** | | [optional] -**imageSource** | **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) - - diff --git a/manager_api_old/doc/LevelDTO.md b/manager_api_old/doc/LevelDTO.md deleted file mode 100644 index af91156..0000000 --- a/manager_api_old/doc/LevelDTO.md +++ /dev/null @@ -1,17 +0,0 @@ -# managerapi.model.LevelDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**resourceId** | **String** | | [optional] -**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) - - diff --git a/manager_api_old/doc/LoginDTO.md b/manager_api_old/doc/LoginDTO.md deleted file mode 100644 index c5d85da..0000000 --- a/manager_api_old/doc/LoginDTO.md +++ /dev/null @@ -1,16 +0,0 @@ -# managerapi.model.LoginDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **String** | | [optional] -**password** | **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) - - diff --git a/manager_api_old/doc/MapDTO.md b/manager_api_old/doc/MapDTO.md deleted file mode 100644 index 656bd08..0000000 --- a/manager_api_old/doc/MapDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# managerapi.model.MapDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**zoom** | **int** | | [optional] -**mapType** | [**MapTypeApp**](MapTypeApp.md) | | [optional] -**points** | [**List**](GeoPointDTO.md) | | [optional] [default to const []] -**iconResourceId** | **String** | | [optional] -**iconSource** | **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) - - diff --git a/manager_api_old/doc/MapType.md b/manager_api_old/doc/MapType.md deleted file mode 100644 index 31651b0..0000000 --- a/manager_api_old/doc/MapType.md +++ /dev/null @@ -1,14 +0,0 @@ -# managerapi.model.MapType - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_old/doc/MapTypeApp.md b/manager_api_old/doc/MapTypeApp.md deleted file mode 100644 index 4d1d1a4..0000000 --- a/manager_api_old/doc/MapTypeApp.md +++ /dev/null @@ -1,14 +0,0 @@ -# managerapi.model.MapTypeApp - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_old/doc/MenuDTO.md b/manager_api_old/doc/MenuDTO.md deleted file mode 100644 index 960de2c..0000000 --- a/manager_api_old/doc/MenuDTO.md +++ /dev/null @@ -1,15 +0,0 @@ -# managerapi.model.MenuDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sections** | [**List**](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) - - diff --git a/manager_api_old/doc/PlayerMessageDTO.md b/manager_api_old/doc/PlayerMessageDTO.md deleted file mode 100644 index 0f07218..0000000 --- a/manager_api_old/doc/PlayerMessageDTO.md +++ /dev/null @@ -1,16 +0,0 @@ -# managerapi.model.PlayerMessageDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configChanged** | **bool** | | [optional] -**isDeleted** | **bool** | | [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) - - diff --git a/manager_api_old/doc/QuestionDTO.md b/manager_api_old/doc/QuestionDTO.md deleted file mode 100644 index 1827076..0000000 --- a/manager_api_old/doc/QuestionDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# managerapi.model.QuestionDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**responses** | [**List**](ResponseDTO.md) | | [optional] [default to const []] -**resourceId** | **String** | | [optional] -**source_** | **String** | | [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) - - diff --git a/manager_api_old/doc/QuizzDTO.md b/manager_api_old/doc/QuizzDTO.md deleted file mode 100644 index 953a3d7..0000000 --- a/manager_api_old/doc/QuizzDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# managerapi.model.QuizzDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**questions** | [**List**](QuestionDTO.md) | | [optional] [default to const []] -**badLevel** | [**OneOfLevelDTO**](OneOfLevelDTO.md) | | [optional] -**mediumLevel** | [**OneOfLevelDTO**](OneOfLevelDTO.md) | | [optional] -**goodLevel** | [**OneOfLevelDTO**](OneOfLevelDTO.md) | | [optional] -**greatLevel** | [**OneOfLevelDTO**](OneOfLevelDTO.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) - - diff --git a/manager_api_old/doc/ResourceApi.md b/manager_api_old/doc/ResourceApi.md deleted file mode 100644 index 8efbe20..0000000 --- a/manager_api_old/doc/ResourceApi.md +++ /dev/null @@ -1,319 +0,0 @@ -# managerapi.api.ResourceApi - -## Load the API package -```dart -import 'package:managerapi/api.dart'; -``` - -All URIs are relative to *http://192.168.31.140* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**resourceCreate**](ResourceApi.md#resourcecreate) | **POST** /api/Resource | -[**resourceDelete**](ResourceApi.md#resourcedelete) | **DELETE** /api/Resource/{id} | -[**resourceGet**](ResourceApi.md#resourceget) | **GET** /api/Resource | -[**resourceGetDetail**](ResourceApi.md#resourcegetdetail) | **GET** /api/Resource/{id}/detail | -[**resourceShow**](ResourceApi.md#resourceshow) | **GET** /api/Resource/{id} | -[**resourceUpdate**](ResourceApi.md#resourceupdate) | **PUT** /api/Resource | -[**resourceUpload**](ResourceApi.md#resourceupload) | **POST** /api/Resource/upload | - - -# **resourceCreate** -> ResourceDTO resourceCreate(resourceDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ResourceApi(); -final resourceDTO = ResourceDTO(); // ResourceDTO | - -try { - final result = api_instance.resourceCreate(resourceDTO); - print(result); -} catch (e) { - print('Exception when calling ResourceApi->resourceCreate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **resourceDTO** | [**ResourceDTO**](ResourceDTO.md)| | - -### Return type - -[**ResourceDTO**](ResourceDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **resourceDelete** -> String resourceDelete(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ResourceApi(); -final id = id_example; // String | - -try { - final result = api_instance.resourceDelete(id); - print(result); -} catch (e) { - print('Exception when calling ResourceApi->resourceDelete: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -**String** - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **resourceGet** -> List resourceGet() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ResourceApi(); - -try { - final result = api_instance.resourceGet(); - print(result); -} catch (e) { - print('Exception when calling ResourceApi->resourceGet: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](ResourceDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **resourceGetDetail** -> ResourceDTO resourceGetDetail(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ResourceApi(); -final id = id_example; // String | - -try { - final result = api_instance.resourceGetDetail(id); - print(result); -} catch (e) { - print('Exception when calling ResourceApi->resourceGetDetail: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**ResourceDTO**](ResourceDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **resourceShow** -> MultipartFile resourceShow(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ResourceApi(); -final id = id_example; // String | - -try { - final result = api_instance.resourceShow(id); - print(result); -} catch (e) { - print('Exception when calling ResourceApi->resourceShow: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**MultipartFile**](MultipartFile.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/octet-stream, application/json - -[[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) - -# **resourceUpdate** -> ResourceDTO resourceUpdate(resourceDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ResourceApi(); -final resourceDTO = ResourceDTO(); // ResourceDTO | - -try { - final result = api_instance.resourceUpdate(resourceDTO); - print(result); -} catch (e) { - print('Exception when calling ResourceApi->resourceUpdate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **resourceDTO** | [**ResourceDTO**](ResourceDTO.md)| | - -### Return type - -[**ResourceDTO**](ResourceDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **resourceUpload** -> String resourceUpload(label, type) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ResourceApi(); -final label = label_example; // String | -final type = type_example; // String | - -try { - final result = api_instance.resourceUpload(label, type); - print(result); -} catch (e) { - print('Exception when calling ResourceApi->resourceUpload: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **label** | **String**| | [optional] - **type** | **String**| | [optional] - -### Return type - -**String** - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -[[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) - diff --git a/manager_api_old/doc/ResourceDTO.md b/manager_api_old/doc/ResourceDTO.md deleted file mode 100644 index d2acd16..0000000 --- a/manager_api_old/doc/ResourceDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# managerapi.model.ResourceDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**type** | [**ResourceType**](ResourceType.md) | | [optional] -**label** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**data** | **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) - - diff --git a/manager_api_old/doc/ResourceDetailDTO.md b/manager_api_old/doc/ResourceDetailDTO.md deleted file mode 100644 index 12a7f7d..0000000 --- a/manager_api_old/doc/ResourceDetailDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# managerapi.model.ResourceDetailDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**type** | [**ResourceType**](ResourceType.md) | | [optional] -**label** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**data** | **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) - - diff --git a/manager_api_old/doc/ResourceType.md b/manager_api_old/doc/ResourceType.md deleted file mode 100644 index 05e673f..0000000 --- a/manager_api_old/doc/ResourceType.md +++ /dev/null @@ -1,14 +0,0 @@ -# managerapi.model.ResourceType - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_old/doc/ResponseDTO.md b/manager_api_old/doc/ResponseDTO.md deleted file mode 100644 index 4b5334a..0000000 --- a/manager_api_old/doc/ResponseDTO.md +++ /dev/null @@ -1,17 +0,0 @@ -# managerapi.model.ResponseDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**isGood** | **bool** | | [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) - - diff --git a/manager_api_old/doc/SectionApi.md b/manager_api_old/doc/SectionApi.md deleted file mode 100644 index 0d62dd8..0000000 --- a/manager_api_old/doc/SectionApi.md +++ /dev/null @@ -1,685 +0,0 @@ -# managerapi.api.SectionApi - -## Load the API package -```dart -import 'package:managerapi/api.dart'; -``` - -All URIs are relative to *http://192.168.31.140* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**sectionCreate**](SectionApi.md#sectioncreate) | **POST** /api/Section | -[**sectionDelete**](SectionApi.md#sectiondelete) | **DELETE** /api/Section/{id} | -[**sectionDeleteAllForConfiguration**](SectionApi.md#sectiondeleteallforconfiguration) | **DELETE** /api/Section/configuration/{id} | -[**sectionGet**](SectionApi.md#sectionget) | **GET** /api/Section | -[**sectionGetAllSectionSubSections**](SectionApi.md#sectiongetallsectionsubsections) | **GET** /api/Section/{id}/subsections | -[**sectionGetDetail**](SectionApi.md#sectiongetdetail) | **GET** /api/Section/{id} | -[**sectionGetFromConfiguration**](SectionApi.md#sectiongetfromconfiguration) | **GET** /api/Section/configuration/{id} | -[**sectionGetMapDTO**](SectionApi.md#sectiongetmapdto) | **GET** /api/Section/MapDTO | -[**sectionGetMenuDTO**](SectionApi.md#sectiongetmenudto) | **GET** /api/Section/MenuDTO | -[**sectionGetQuizzDTO**](SectionApi.md#sectiongetquizzdto) | **GET** /api/Section/QuizzDTO | -[**sectionGetSliderDTO**](SectionApi.md#sectiongetsliderdto) | **GET** /api/Section/SliderDTO | -[**sectionGetVideoDTO**](SectionApi.md#sectiongetvideodto) | **GET** /api/Section/VideoDTO | -[**sectionGetWebDTO**](SectionApi.md#sectiongetwebdto) | **GET** /api/Section/WebDTO | -[**sectionPlayerMessageDTO**](SectionApi.md#sectionplayermessagedto) | **GET** /api/Section/PlayerMessageDTO | -[**sectionUpdate**](SectionApi.md#sectionupdate) | **PUT** /api/Section | -[**sectionUpdateOrder**](SectionApi.md#sectionupdateorder) | **PUT** /api/Section/order | - - -# **sectionCreate** -> SectionDTO sectionCreate(sectionDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final sectionDTO = SectionDTO(); // SectionDTO | - -try { - final result = api_instance.sectionCreate(sectionDTO); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionCreate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sectionDTO** | [**SectionDTO**](SectionDTO.md)| | - -### Return type - -[**SectionDTO**](SectionDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **sectionDelete** -> String sectionDelete(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final id = id_example; // String | - -try { - final result = api_instance.sectionDelete(id); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionDelete: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -**String** - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionDeleteAllForConfiguration** -> String sectionDeleteAllForConfiguration(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final id = id_example; // String | - -try { - final result = api_instance.sectionDeleteAllForConfiguration(id); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionDeleteAllForConfiguration: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -**String** - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGet** -> List sectionGet() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); - -try { - final result = api_instance.sectionGet(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGet: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](SectionDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGetAllSectionSubSections** -> List sectionGetAllSectionSubSections(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final id = id_example; // String | - -try { - final result = api_instance.sectionGetAllSectionSubSections(id); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetAllSectionSubSections: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**List**](Object.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGetDetail** -> SectionDTO sectionGetDetail(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final id = id_example; // String | - -try { - final result = api_instance.sectionGetDetail(id); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetDetail: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**SectionDTO**](SectionDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGetFromConfiguration** -> List sectionGetFromConfiguration(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final id = id_example; // String | - -try { - final result = api_instance.sectionGetFromConfiguration(id); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetFromConfiguration: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**List**](SectionDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGetMapDTO** -> MapDTO sectionGetMapDTO() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); - -try { - final result = api_instance.sectionGetMapDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetMapDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**MapDTO**](MapDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGetMenuDTO** -> MenuDTO sectionGetMenuDTO() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); - -try { - final result = api_instance.sectionGetMenuDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetMenuDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**MenuDTO**](MenuDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGetQuizzDTO** -> QuizzDTO sectionGetQuizzDTO() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); - -try { - final result = api_instance.sectionGetQuizzDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetQuizzDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**QuizzDTO**](QuizzDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGetSliderDTO** -> SliderDTO sectionGetSliderDTO() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); - -try { - final result = api_instance.sectionGetSliderDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetSliderDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SliderDTO**](SliderDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGetVideoDTO** -> VideoDTO sectionGetVideoDTO() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); - -try { - final result = api_instance.sectionGetVideoDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetVideoDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**VideoDTO**](VideoDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionGetWebDTO** -> WebDTO sectionGetWebDTO() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); - -try { - final result = api_instance.sectionGetWebDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetWebDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**WebDTO**](WebDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionPlayerMessageDTO** -> PlayerMessageDTO sectionPlayerMessageDTO() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); - -try { - final result = api_instance.sectionPlayerMessageDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionPlayerMessageDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**PlayerMessageDTO**](PlayerMessageDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **sectionUpdate** -> SectionDTO sectionUpdate(sectionDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final sectionDTO = SectionDTO(); // SectionDTO | - -try { - final result = api_instance.sectionUpdate(sectionDTO); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionUpdate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sectionDTO** | [**SectionDTO**](SectionDTO.md)| | - -### Return type - -[**SectionDTO**](SectionDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **sectionUpdateOrder** -> String sectionUpdateOrder(sectionDTO) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final sectionDTO = [List()]; // List | - -try { - final result = api_instance.sectionUpdateOrder(sectionDTO); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionUpdateOrder: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sectionDTO** | [**List**](SectionDTO.md)| | - -### Return type - -**String** - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - diff --git a/manager_api_old/doc/SectionDTO.md b/manager_api_old/doc/SectionDTO.md deleted file mode 100644 index 46dec96..0000000 --- a/manager_api_old/doc/SectionDTO.md +++ /dev/null @@ -1,27 +0,0 @@ -# managerapi.model.SectionDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**description** | [**List**](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] -**data** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [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) - - diff --git a/manager_api_old/doc/SectionType.md b/manager_api_old/doc/SectionType.md deleted file mode 100644 index c192bbd..0000000 --- a/manager_api_old/doc/SectionType.md +++ /dev/null @@ -1,14 +0,0 @@ -# managerapi.model.SectionType - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_old/doc/SliderDTO.md b/manager_api_old/doc/SliderDTO.md deleted file mode 100644 index a5df1e8..0000000 --- a/manager_api_old/doc/SliderDTO.md +++ /dev/null @@ -1,15 +0,0 @@ -# managerapi.model.SliderDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**images** | [**List**](ImageDTO.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) - - diff --git a/manager_api_old/doc/TokenDTO.md b/manager_api_old/doc/TokenDTO.md deleted file mode 100644 index e031252..0000000 --- a/manager_api_old/doc/TokenDTO.md +++ /dev/null @@ -1,20 +0,0 @@ -# managerapi.model.TokenDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **String** | | [optional] -**refreshToken** | **String** | | [optional] -**scope** | **String** | | [optional] -**tokenType** | **String** | | [optional] -**expiresIn** | **int** | | [optional] -**expiration** | [**DateTime**](DateTime.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) - - diff --git a/manager_api_old/doc/TranslationDTO.md b/manager_api_old/doc/TranslationDTO.md deleted file mode 100644 index fef92bf..0000000 --- a/manager_api_old/doc/TranslationDTO.md +++ /dev/null @@ -1,16 +0,0 @@ -# managerapi.model.TranslationDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**language** | **String** | | [optional] -**value** | **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) - - diff --git a/manager_api_old/doc/User.md b/manager_api_old/doc/User.md deleted file mode 100644 index e1f1f90..0000000 --- a/manager_api_old/doc/User.md +++ /dev/null @@ -1,21 +0,0 @@ -# managerapi.model.User - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**email** | **String** | | [optional] -**password** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**token** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.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) - - diff --git a/manager_api_old/doc/UserApi.md b/manager_api_old/doc/UserApi.md deleted file mode 100644 index 4f53b8e..0000000 --- a/manager_api_old/doc/UserApi.md +++ /dev/null @@ -1,229 +0,0 @@ -# managerapi.api.UserApi - -## Load the API package -```dart -import 'package:managerapi/api.dart'; -``` - -All URIs are relative to *http://192.168.31.140* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**userCreateUser**](UserApi.md#usercreateuser) | **POST** /api/User | -[**userDeleteUser**](UserApi.md#userdeleteuser) | **DELETE** /api/User/{id} | -[**userGet**](UserApi.md#userget) | **GET** /api/User | -[**userGetDetail**](UserApi.md#usergetdetail) | **GET** /api/User/{id} | -[**userUpdateUser**](UserApi.md#userupdateuser) | **PUT** /api/User | - - -# **userCreateUser** -> UserDetailDTO userCreateUser(user) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = UserApi(); -final user = User(); // User | - -try { - final result = api_instance.userCreateUser(user); - print(result); -} catch (e) { - print('Exception when calling UserApi->userCreateUser: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| | - -### Return type - -[**UserDetailDTO**](UserDetailDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **userDeleteUser** -> String userDeleteUser(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = UserApi(); -final id = id_example; // String | - -try { - final result = api_instance.userDeleteUser(id); - print(result); -} catch (e) { - print('Exception when calling UserApi->userDeleteUser: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -**String** - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **userGet** -> List userGet() - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = UserApi(); - -try { - final result = api_instance.userGet(); - print(result); -} catch (e) { - print('Exception when calling UserApi->userGet: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](User.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **userGetDetail** -> UserDetailDTO userGetDetail(id) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = UserApi(); -final id = id_example; // String | - -try { - final result = api_instance.userGetDetail(id); - print(result); -} catch (e) { - print('Exception when calling UserApi->userGetDetail: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**UserDetailDTO**](UserDetailDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **userUpdateUser** -> UserDetailDTO userUpdateUser(user) - - - -### Example -```dart -import 'package:managerapi/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = UserApi(); -final user = User(); // User | - -try { - final result = api_instance.userUpdateUser(user); - print(result); -} catch (e) { - print('Exception when calling UserApi->userUpdateUser: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| | - -### Return type - -[**UserDetailDTO**](UserDetailDTO.md) - -### Authorization - -[bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - diff --git a/manager_api_old/doc/UserDetailDTO.md b/manager_api_old/doc/UserDetailDTO.md deleted file mode 100644 index 6b1a0e9..0000000 --- a/manager_api_old/doc/UserDetailDTO.md +++ /dev/null @@ -1,18 +0,0 @@ -# managerapi.model.UserDetailDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**email** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **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) - - diff --git a/manager_api_old/doc/VideoDTO.md b/manager_api_old/doc/VideoDTO.md deleted file mode 100644 index 08c8315..0000000 --- a/manager_api_old/doc/VideoDTO.md +++ /dev/null @@ -1,15 +0,0 @@ -# managerapi.model.VideoDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -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) - - diff --git a/manager_api_old/doc/WebDTO.md b/manager_api_old/doc/WebDTO.md deleted file mode 100644 index 3b26ea1..0000000 --- a/manager_api_old/doc/WebDTO.md +++ /dev/null @@ -1,15 +0,0 @@ -# managerapi.model.WebDTO - -## Load the model package -```dart -import 'package:managerapi/api.dart'; -``` - -## Properties -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) - - diff --git a/manager_api_old/git_push.sh b/manager_api_old/git_push.sh deleted file mode 100644 index ced3be2..0000000 --- a/manager_api_old/git_push.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/manager_api_old/lib/api.dart b/manager_api_old/lib/api.dart deleted file mode 100644 index 942b8c8..0000000 --- a/manager_api_old/lib/api.dart +++ /dev/null @@ -1,75 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -library openapi.api; - -import 'dart:async'; -import 'dart:convert'; -import 'dart:io'; - -import 'package:http/http.dart'; -import 'package:intl/intl.dart'; - -import 'package:meta/meta.dart'; - -part 'api_client.dart'; -part 'api_helper.dart'; -part 'api_exception.dart'; -part 'auth/authentication.dart'; -part 'auth/api_key_auth.dart'; -part 'auth/oauth.dart'; -part 'auth/http_basic_auth.dart'; -part 'auth/http_bearer_auth.dart'; - -part 'api/authentication_api.dart'; -part 'api/configuration_api.dart'; -part 'api/device_api.dart'; -part 'api/resource_api.dart'; -part 'api/section_api.dart'; -part 'api/user_api.dart'; - -part 'model/configuration_dto.dart'; -part 'model/device_dto.dart'; -part 'model/device_detail_dto.dart'; -part 'model/device_detail_dto_all_of.dart'; -part 'model/export_configuration_dto.dart'; -part 'model/export_configuration_dto_all_of.dart'; -part 'model/geo_point_dto.dart'; -part 'model/image_dto.dart'; -part 'model/image_geo_point.dart'; -part 'model/level_dto.dart'; -part 'model/login_dto.dart'; -part 'model/map_dto.dart'; -part 'model/map_type_app.dart'; -part 'model/menu_dto.dart'; -part 'model/player_message_dto.dart'; -part 'model/question_dto.dart'; -part 'model/quizz_dto.dart'; -part 'model/resource_dto.dart'; -part 'model/resource_type.dart'; -part 'model/response_dto.dart'; -part 'model/section_dto.dart'; -part 'model/section_type.dart'; -part 'model/slider_dto.dart'; -part 'model/token_dto.dart'; -part 'model/translation_dto.dart'; -part 'model/user.dart'; -part 'model/user_detail_dto.dart'; -part 'model/video_dto.dart'; -part 'model/web_dto.dart'; - - -const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'}; -const _dateEpochMarker = 'epoch'; -final _dateFormatter = DateFormat('yyyy-MM-dd'); -final _regList = RegExp(r'^List<(.*)>$'); -final _regSet = RegExp(r'^Set<(.*)>$'); -final _regMap = RegExp(r'^Map$'); - -ApiClient defaultApiClient = ApiClient(); diff --git a/manager_api_old/lib/api/authentication_api.dart b/manager_api_old/lib/api/authentication_api.dart deleted file mode 100644 index 8868812..0000000 --- a/manager_api_old/lib/api/authentication_api.dart +++ /dev/null @@ -1,191 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class AuthenticationApi { - AuthenticationApi([ApiClient apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/Authentication/Token' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] grantType: - /// - /// * [String] username: - /// - /// * [String] password: - /// - /// * [String] clientId: - /// - /// * [String] clientSecret: - Future authenticationAuthenticateWithFormWithHttpInfo({ String grantType, String username, String password, String clientId, String clientSecret }) async { - // Verify required params are set. - - final path = r'/api/Authentication/Token'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['multipart/form-data']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (grantType != null) { - hasFields = true; - mp.fields[r'grant_type'] = parameterToString(grantType); - } - if (username != null) { - hasFields = true; - mp.fields[r'username'] = parameterToString(username); - } - if (password != null) { - hasFields = true; - mp.fields[r'password'] = parameterToString(password); - } - if (clientId != null) { - hasFields = true; - mp.fields[r'client_id'] = parameterToString(clientId); - } - if (clientSecret != null) { - hasFields = true; - mp.fields[r'client_secret'] = parameterToString(clientSecret); - } - if (hasFields) { - postBody = mp; - } - } else { - if (grantType != null) { - formParams[r'grant_type'] = parameterToString(grantType); - } - if (username != null) { - formParams[r'username'] = parameterToString(username); - } - if (password != null) { - formParams[r'password'] = parameterToString(password); - } - if (clientId != null) { - formParams[r'client_id'] = parameterToString(clientId); - } - if (clientSecret != null) { - formParams[r'client_secret'] = parameterToString(clientSecret); - } - } - - return await apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] grantType: - /// - /// * [String] username: - /// - /// * [String] password: - /// - /// * [String] clientId: - /// - /// * [String] clientSecret: - Future authenticationAuthenticateWithForm({ String grantType, String username, String password, String clientId, String clientSecret }) async { - final response = await authenticationAuthenticateWithFormWithHttpInfo( grantType: grantType, username: username, password: password, clientId: clientId, clientSecret: clientSecret ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'TokenDTO') as TokenDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'POST /api/Authentication/Authenticate' operation and returns the [Response]. - /// Parameters: - /// - /// * [LoginDTO] loginDTO (required): - Future authenticationAuthenticateWithJsonWithHttpInfo(LoginDTO loginDTO) async { - // Verify required params are set. - if (loginDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: loginDTO'); - } - - final path = r'/api/Authentication/Authenticate'; - - Object postBody = loginDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [LoginDTO] loginDTO (required): - Future authenticationAuthenticateWithJson(LoginDTO loginDTO) async { - final response = await authenticationAuthenticateWithJsonWithHttpInfo(loginDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'TokenDTO') as TokenDTO; - } - return Future.value(null); - } -} diff --git a/manager_api_old/lib/api/configuration_api.dart b/manager_api_old/lib/api/configuration_api.dart deleted file mode 100644 index 342f0f0..0000000 --- a/manager_api_old/lib/api/configuration_api.dart +++ /dev/null @@ -1,452 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class ConfigurationApi { - ConfigurationApi([ApiClient apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/Configuration' operation and returns the [Response]. - /// Parameters: - /// - /// * [ConfigurationDTO] configurationDTO (required): - Future configurationCreateWithHttpInfo(ConfigurationDTO configurationDTO) async { - // Verify required params are set. - if (configurationDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: configurationDTO'); - } - - final path = r'/api/Configuration'; - - Object postBody = configurationDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [ConfigurationDTO] configurationDTO (required): - Future configurationCreate(ConfigurationDTO configurationDTO) async { - final response = await configurationCreateWithHttpInfo(configurationDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'ConfigurationDTO') as ConfigurationDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'DELETE /api/Configuration/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future configurationDeleteWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Configuration/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future configurationDelete(String id) async { - final response = await configurationDeleteWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Configuration/{id}/export' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future configurationExportWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Configuration/{id}/export' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future configurationExport(String id) async { - final response = await configurationExportWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'ExportConfigurationDTO') as ExportConfigurationDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Configuration' operation and returns the [Response]. - Future configurationGetWithHttpInfo() async { - final path = r'/api/Configuration'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future> configurationGet() async { - final response = await configurationGetWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return (apiClient.deserialize(_decodeBodyBytes(response), 'List') as List) - .cast() - .toList(growable: false); - } - return Future>.value(null); - } - - /// Performs an HTTP 'GET /api/Configuration/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future configurationGetDetailWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Configuration/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future configurationGetDetail(String id) async { - final response = await configurationGetDetailWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'ConfigurationDTO') as ConfigurationDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'POST /api/Configuration/import' operation and returns the [Response]. - /// Parameters: - /// - /// * [ExportConfigurationDTO] exportConfigurationDTO (required): - Future configurationImportWithHttpInfo(ExportConfigurationDTO exportConfigurationDTO) async { - // Verify required params are set. - if (exportConfigurationDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: exportConfigurationDTO'); - } - - final path = r'/api/Configuration/import'; - - Object postBody = exportConfigurationDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [ExportConfigurationDTO] exportConfigurationDTO (required): - Future configurationImport(ExportConfigurationDTO exportConfigurationDTO) async { - final response = await configurationImportWithHttpInfo(exportConfigurationDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String; - } - return Future.value(null); - } - - /// Performs an HTTP 'PUT /api/Configuration' operation and returns the [Response]. - /// Parameters: - /// - /// * [ConfigurationDTO] configurationDTO (required): - Future configurationUpdateWithHttpInfo(ConfigurationDTO configurationDTO) async { - // Verify required params are set. - if (configurationDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: configurationDTO'); - } - - final path = r'/api/Configuration'; - - Object postBody = configurationDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [ConfigurationDTO] configurationDTO (required): - Future configurationUpdate(ConfigurationDTO configurationDTO) async { - final response = await configurationUpdateWithHttpInfo(configurationDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'ConfigurationDTO') as ConfigurationDTO; - } - return Future.value(null); - } -} diff --git a/manager_api_old/lib/api/device_api.dart b/manager_api_old/lib/api/device_api.dart deleted file mode 100644 index 7162ac9..0000000 --- a/manager_api_old/lib/api/device_api.dart +++ /dev/null @@ -1,388 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class DeviceApi { - DeviceApi([ApiClient apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/Device' operation and returns the [Response]. - /// Parameters: - /// - /// * [DeviceDetailDTO] deviceDetailDTO (required): - Future deviceCreateWithHttpInfo(DeviceDetailDTO deviceDetailDTO) async { - // Verify required params are set. - if (deviceDetailDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: deviceDetailDTO'); - } - - final path = r'/api/Device'; - - Object postBody = deviceDetailDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [DeviceDetailDTO] deviceDetailDTO (required): - Future deviceCreate(DeviceDetailDTO deviceDetailDTO) async { - final response = await deviceCreateWithHttpInfo(deviceDetailDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'DeviceDetailDTO') as DeviceDetailDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'DELETE /api/Device/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future deviceDeleteWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Device/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future deviceDelete(String id) async { - final response = await deviceDeleteWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Device' operation and returns the [Response]. - Future deviceGetWithHttpInfo() async { - final path = r'/api/Device'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future> deviceGet() async { - final response = await deviceGetWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return (apiClient.deserialize(_decodeBodyBytes(response), 'List') as List) - .cast() - .toList(growable: false); - } - return Future>.value(null); - } - - /// Performs an HTTP 'GET /api/Device/{id}/detail' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future deviceGetDetailWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Device/{id}/detail' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future deviceGetDetail(String id) async { - final response = await deviceGetDetailWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'DeviceDetailDTO') as DeviceDetailDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'PUT /api/Device' operation and returns the [Response]. - /// Parameters: - /// - /// * [DeviceDetailDTO] deviceDetailDTO (required): - Future deviceUpdateWithHttpInfo(DeviceDetailDTO deviceDetailDTO) async { - // Verify required params are set. - if (deviceDetailDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: deviceDetailDTO'); - } - - final path = r'/api/Device'; - - Object postBody = deviceDetailDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [DeviceDetailDTO] deviceDetailDTO (required): - Future deviceUpdate(DeviceDetailDTO deviceDetailDTO) async { - final response = await deviceUpdateWithHttpInfo(deviceDetailDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'DeviceDetailDTO') as DeviceDetailDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'PUT /api/Device/mainInfos' operation and returns the [Response]. - /// Parameters: - /// - /// * [DeviceDTO] deviceDTO (required): - Future deviceUpdateMainInfosWithHttpInfo(DeviceDTO deviceDTO) async { - // Verify required params are set. - if (deviceDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: deviceDTO'); - } - - final path = r'/api/Device/mainInfos'; - - Object postBody = deviceDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [DeviceDTO] deviceDTO (required): - Future deviceUpdateMainInfos(DeviceDTO deviceDTO) async { - final response = await deviceUpdateMainInfosWithHttpInfo(deviceDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'DeviceDTO') as DeviceDTO; - } - return Future.value(null); - } -} diff --git a/manager_api_old/lib/api/resource_api.dart b/manager_api_old/lib/api/resource_api.dart deleted file mode 100644 index 6423466..0000000 --- a/manager_api_old/lib/api/resource_api.dart +++ /dev/null @@ -1,467 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class ResourceApi { - ResourceApi([ApiClient apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/Resource' operation and returns the [Response]. - /// Parameters: - /// - /// * [ResourceDTO] resourceDTO (required): - Future resourceCreateWithHttpInfo(ResourceDTO resourceDTO) async { - // Verify required params are set. - if (resourceDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: resourceDTO'); - } - - final path = r'/api/Resource'; - - Object postBody = resourceDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [ResourceDTO] resourceDTO (required): - Future resourceCreate(ResourceDTO resourceDTO) async { - final response = await resourceCreateWithHttpInfo(resourceDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'ResourceDTO') as ResourceDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'DELETE /api/Resource/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future resourceDeleteWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Resource/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future resourceDelete(String id) async { - final response = await resourceDeleteWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Resource' operation and returns the [Response]. - Future resourceGetWithHttpInfo() async { - final path = r'/api/Resource'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future> resourceGet() async { - final response = await resourceGetWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return (apiClient.deserialize(_decodeBodyBytes(response), 'List') as List) - .cast() - .toList(growable: false); - } - return Future>.value(null); - } - - /// Performs an HTTP 'GET /api/Resource/{id}/detail' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future resourceGetDetailWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Resource/{id}/detail' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future resourceGetDetail(String id) async { - final response = await resourceGetDetailWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'ResourceDTO') as ResourceDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Resource/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future resourceShowWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Resource/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future resourceShow(String id) async { - final response = await resourceShowWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'MultipartFile') as MultipartFile; - } - return Future.value(null); - } - - /// Performs an HTTP 'PUT /api/Resource' operation and returns the [Response]. - /// Parameters: - /// - /// * [ResourceDTO] resourceDTO (required): - Future resourceUpdateWithHttpInfo(ResourceDTO resourceDTO) async { - // Verify required params are set. - if (resourceDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: resourceDTO'); - } - - final path = r'/api/Resource'; - - Object postBody = resourceDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [ResourceDTO] resourceDTO (required): - Future resourceUpdate(ResourceDTO resourceDTO) async { - final response = await resourceUpdateWithHttpInfo(resourceDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'ResourceDTO') as ResourceDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'POST /api/Resource/upload' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] label: - /// - /// * [String] type: - Future resourceUploadWithHttpInfo({ String label, String type }) async { - // Verify required params are set. - - final path = r'/api/Resource/upload'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['multipart/form-data']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (label != null) { - hasFields = true; - mp.fields[r'label'] = parameterToString(label); - } - if (type != null) { - hasFields = true; - mp.fields[r'type'] = parameterToString(type); - } - if (hasFields) { - postBody = mp; - } - } else { - if (label != null) { - formParams[r'label'] = parameterToString(label); - } - if (type != null) { - formParams[r'type'] = parameterToString(type); - } - } - - return await apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] label: - /// - /// * [String] type: - Future resourceUpload({ String label, String type }) async { - final response = await resourceUploadWithHttpInfo( label: label, type: type ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String; - } - return Future.value(null); - } -} diff --git a/manager_api_old/lib/api/section_api.dart b/manager_api_old/lib/api/section_api.dart deleted file mode 100644 index 1b2ff7f..0000000 --- a/manager_api_old/lib/api/section_api.dart +++ /dev/null @@ -1,948 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class SectionApi { - SectionApi([ApiClient apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/Section' operation and returns the [Response]. - /// Parameters: - /// - /// * [SectionDTO] sectionDTO (required): - Future sectionCreateWithHttpInfo(SectionDTO sectionDTO) async { - // Verify required params are set. - if (sectionDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: sectionDTO'); - } - - final path = r'/api/Section'; - - Object postBody = sectionDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [SectionDTO] sectionDTO (required): - Future sectionCreate(SectionDTO sectionDTO) async { - final response = await sectionCreateWithHttpInfo(sectionDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'SectionDTO') as SectionDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'DELETE /api/Section/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionDeleteWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Section/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future sectionDelete(String id) async { - final response = await sectionDeleteWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String; - } - return Future.value(null); - } - - /// Performs an HTTP 'DELETE /api/Section/configuration/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionDeleteAllForConfigurationWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Section/configuration/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future sectionDeleteAllForConfiguration(String id) async { - final response = await sectionDeleteAllForConfigurationWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Section' operation and returns the [Response]. - Future sectionGetWithHttpInfo() async { - final path = r'/api/Section'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future> sectionGet() async { - final response = await sectionGetWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return (apiClient.deserialize(_decodeBodyBytes(response), 'List') as List) - .cast() - .toList(growable: false); - } - return Future>.value(null); - } - - /// Performs an HTTP 'GET /api/Section/{id}/subsections' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetAllSectionSubSectionsWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Section/{id}/subsections' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future> sectionGetAllSectionSubSections(String id) async { - final response = await sectionGetAllSectionSubSectionsWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return (apiClient.deserialize(_decodeBodyBytes(response), 'List') as List) - .cast() - .toList(growable: false); - } - return Future>.value(null); - } - - /// Performs an HTTP 'GET /api/Section/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetDetailWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Section/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetDetail(String id) async { - final response = await sectionGetDetailWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'SectionDTO') as SectionDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Section/configuration/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetFromConfigurationWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/Section/configuration/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future> sectionGetFromConfiguration(String id) async { - final response = await sectionGetFromConfigurationWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return (apiClient.deserialize(_decodeBodyBytes(response), 'List') as List) - .cast() - .toList(growable: false); - } - return Future>.value(null); - } - - /// Performs an HTTP 'GET /api/Section/MapDTO' operation and returns the [Response]. - Future sectionGetMapDTOWithHttpInfo() async { - final path = r'/api/Section/MapDTO'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future sectionGetMapDTO() async { - final response = await sectionGetMapDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'MapDTO') as MapDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Section/MenuDTO' operation and returns the [Response]. - Future sectionGetMenuDTOWithHttpInfo() async { - final path = r'/api/Section/MenuDTO'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future sectionGetMenuDTO() async { - final response = await sectionGetMenuDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'MenuDTO') as MenuDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Section/QuizzDTO' operation and returns the [Response]. - Future sectionGetQuizzDTOWithHttpInfo() async { - final path = r'/api/Section/QuizzDTO'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future sectionGetQuizzDTO() async { - final response = await sectionGetQuizzDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'QuizzDTO') as QuizzDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Section/SliderDTO' operation and returns the [Response]. - Future sectionGetSliderDTOWithHttpInfo() async { - final path = r'/api/Section/SliderDTO'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future sectionGetSliderDTO() async { - final response = await sectionGetSliderDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'SliderDTO') as SliderDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Section/VideoDTO' operation and returns the [Response]. - Future sectionGetVideoDTOWithHttpInfo() async { - final path = r'/api/Section/VideoDTO'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future sectionGetVideoDTO() async { - final response = await sectionGetVideoDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'VideoDTO') as VideoDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Section/WebDTO' operation and returns the [Response]. - Future sectionGetWebDTOWithHttpInfo() async { - final path = r'/api/Section/WebDTO'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future sectionGetWebDTO() async { - final response = await sectionGetWebDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'WebDTO') as WebDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Section/PlayerMessageDTO' operation and returns the [Response]. - Future sectionPlayerMessageDTOWithHttpInfo() async { - final path = r'/api/Section/PlayerMessageDTO'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future sectionPlayerMessageDTO() async { - final response = await sectionPlayerMessageDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'PlayerMessageDTO') as PlayerMessageDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'PUT /api/Section' operation and returns the [Response]. - /// Parameters: - /// - /// * [SectionDTO] sectionDTO (required): - Future sectionUpdateWithHttpInfo(SectionDTO sectionDTO) async { - // Verify required params are set. - if (sectionDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: sectionDTO'); - } - - final path = r'/api/Section'; - - Object postBody = sectionDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [SectionDTO] sectionDTO (required): - Future sectionUpdate(SectionDTO sectionDTO) async { - final response = await sectionUpdateWithHttpInfo(sectionDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'SectionDTO') as SectionDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'PUT /api/Section/order' operation and returns the [Response]. - /// Parameters: - /// - /// * [List] sectionDTO (required): - Future sectionUpdateOrderWithHttpInfo(List sectionDTO) async { - // Verify required params are set. - if (sectionDTO == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: sectionDTO'); - } - - final path = r'/api/Section/order'; - - Object postBody = sectionDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [List] sectionDTO (required): - Future sectionUpdateOrder(List sectionDTO) async { - final response = await sectionUpdateOrderWithHttpInfo(sectionDTO); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String; - } - return Future.value(null); - } -} diff --git a/manager_api_old/lib/api/user_api.dart b/manager_api_old/lib/api/user_api.dart deleted file mode 100644 index ba77f88..0000000 --- a/manager_api_old/lib/api/user_api.dart +++ /dev/null @@ -1,325 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class UserApi { - UserApi([ApiClient apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/User' operation and returns the [Response]. - /// Parameters: - /// - /// * [User] user (required): - Future userCreateUserWithHttpInfo(User user) async { - // Verify required params are set. - if (user == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: user'); - } - - final path = r'/api/User'; - - Object postBody = user; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [User] user (required): - Future userCreateUser(User user) async { - final response = await userCreateUserWithHttpInfo(user); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'UserDetailDTO') as UserDetailDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'DELETE /api/User/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future userDeleteUserWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/User/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future userDeleteUser(String id) async { - final response = await userDeleteUserWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'String') as String; - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/User' operation and returns the [Response]. - Future userGetWithHttpInfo() async { - final path = r'/api/User'; - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - Future> userGet() async { - final response = await userGetWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return (apiClient.deserialize(_decodeBodyBytes(response), 'List') as List) - .cast() - .toList(growable: false); - } - return Future>.value(null); - } - - /// Performs an HTTP 'GET /api/User/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future userGetDetailWithHttpInfo(String id) async { - // Verify required params are set. - if (id == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: id'); - } - - final path = r'/api/User/{id}' - .replaceAll('{' + 'id' + '}', id.toString()); - - Object postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = []; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future userGetDetail(String id) async { - final response = await userGetDetailWithHttpInfo(id); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'UserDetailDTO') as UserDetailDTO; - } - return Future.value(null); - } - - /// Performs an HTTP 'PUT /api/User' operation and returns the [Response]. - /// Parameters: - /// - /// * [User] user (required): - Future userUpdateUserWithHttpInfo(User user) async { - // Verify required params are set. - if (user == null) { - throw ApiException(HttpStatus.badRequest, 'Missing required param: user'); - } - - final path = r'/api/User'; - - Object postBody = user; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - final contentTypes = ['application/json']; - final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null; - final authNames = ['bearer']; - - if ( - nullableContentType != null && - nullableContentType.toLowerCase().startsWith('multipart/form-data') - ) { - bool hasFields = false; - final mp = MultipartRequest(null, null); - if (hasFields) { - postBody = mp; - } - } else { - } - - return await apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - nullableContentType, - authNames, - ); - } - - /// Parameters: - /// - /// * [User] user (required): - Future userUpdateUser(User user) async { - final response = await userUpdateUserWithHttpInfo(user); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, _decodeBodyBytes(response)); - } - // When a remote server returns no body with a status of 204, we shall not decode it. - // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" - // FormatException when trying to decode an empty string. - if (response.body != null && response.statusCode != HttpStatus.noContent) { - return apiClient.deserialize(_decodeBodyBytes(response), 'UserDetailDTO') as UserDetailDTO; - } - return Future.value(null); - } -} diff --git a/manager_api_old/lib/api_client.dart b/manager_api_old/lib/api_client.dart deleted file mode 100644 index 9b35f8a..0000000 --- a/manager_api_old/lib/api_client.dart +++ /dev/null @@ -1,275 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ApiClient { - ApiClient({this.basePath = 'http://192.168.31.140'}) { - // Setup authentications (key: authentication name, value: authentication). - _authentications[r'bearer'] = OAuth(); - } - - final String basePath; - - var _client = Client(); - - /// Returns the current HTTP [Client] instance to use in this class. - /// - /// The return value is guaranteed to never be null. - Client get client => _client; - - /// Requests to use a new HTTP [Client] in this class. - /// - /// If the [newClient] is null, an [ArgumentError] is thrown. - set client(Client newClient) { - if (newClient == null) { - throw ArgumentError('New client instance cannot be null.'); - } - _client = newClient; - } - - final _defaultHeaderMap = {}; - final _authentications = {}; - - void addDefaultHeader(String key, String value) { - _defaultHeaderMap[key] = value; - } - - Map get defaultHeaderMap => _defaultHeaderMap; - - /// returns an unmodifiable view of the authentications, since none should be added - /// nor deleted - Map get authentications => - Map.unmodifiable(_authentications); - - T getAuthentication(String name) { - final authentication = _authentications[name]; - return authentication is T ? authentication : null; - } - - // We don’t use a Map for queryParams. - // If collectionFormat is 'multi', a key might appear multiple times. - Future invokeAPI( - String path, - String method, - Iterable queryParams, - Object body, - Map headerParams, - Map formParams, - String nullableContentType, - List authNames, - ) async { - _updateParamsForAuth(authNames, queryParams, headerParams); - - headerParams.addAll(_defaultHeaderMap); - - final urlEncodedQueryParams = queryParams - .where((param) => param.value != null) - .map((param) => '$param'); - - final queryString = urlEncodedQueryParams.isNotEmpty - ? '?${urlEncodedQueryParams.join('&')}' - : ''; - - final url = '$basePath$path$queryString'; - - if (nullableContentType != null) { - headerParams['Content-Type'] = nullableContentType; - } - - try { - // Special case for uploading a single file which isn’t a 'multipart/form-data'. - if ( - body is MultipartFile && (nullableContentType == null || - !nullableContentType.toLowerCase().startsWith('multipart/form-data')) - ) { - final request = StreamedRequest(method, Uri.parse(url)); - request.headers.addAll(headerParams); - request.contentLength = body.length; - body.finalize().listen( - request.sink.add, - onDone: request.sink.close, - onError: (error, trace) => request.sink.close(), - cancelOnError: true, - ); - final response = await _client.send(request); - return Response.fromStream(response); - } - - if (body is MultipartRequest) { - final request = MultipartRequest(method, Uri.parse(url)); - request.fields.addAll(body.fields); - request.files.addAll(body.files); - request.headers.addAll(body.headers); - request.headers.addAll(headerParams); - final response = await _client.send(request); - return Response.fromStream(response); - } - - final msgBody = nullableContentType == 'application/x-www-form-urlencoded' - ? formParams - : serialize(body); - final nullableHeaderParams = headerParams.isEmpty ? null : headerParams; - - switch(method) { - case 'POST': return await _client.post(url, headers: nullableHeaderParams, body: msgBody,); - case 'PUT': return await _client.put(url, headers: nullableHeaderParams, body: msgBody,); - case 'DELETE': return await _client.delete(url, headers: nullableHeaderParams,); - case 'PATCH': return await _client.patch(url, headers: nullableHeaderParams, body: msgBody,); - case 'HEAD': return await _client.head(url, headers: nullableHeaderParams,); - case 'GET': return await _client.get(url, headers: nullableHeaderParams,); - } - } on SocketException catch (e, trace) { - throw ApiException.withInner(HttpStatus.badRequest, 'Socket operation failed: $method $path', e, trace,); - } on TlsException catch (e, trace) { - throw ApiException.withInner(HttpStatus.badRequest, 'TLS/SSL communication failed: $method $path', e, trace,); - } on IOException catch (e, trace) { - throw ApiException.withInner(HttpStatus.badRequest, 'I/O operation failed: $method $path', e, trace,); - } on ClientException catch (e, trace) { - throw ApiException.withInner(HttpStatus.badRequest, 'HTTP connection failed: $method $path', e, trace,); - } on Exception catch (e, trace) { - throw ApiException.withInner(HttpStatus.badRequest, 'Exception occurred: $method $path', e, trace,); - } - - throw ApiException(HttpStatus.badRequest, 'Invalid HTTP operation: $method $path',); - } - - dynamic _deserialize(dynamic value, String targetType, {bool growable}) { - try { - switch (targetType) { - case 'String': - return '$value'; - case 'int': - return value is int ? value : int.parse('$value'); - case 'bool': - if (value is bool) { - return value; - } - final valueString = '$value'.toLowerCase(); - return valueString == 'true' || valueString == '1'; - break; - case 'double': - return value is double ? value : double.parse('$value'); - case 'ConfigurationDTO': - return ConfigurationDTO.fromJson(value); - case 'DeviceDTO': - return DeviceDTO.fromJson(value); - case 'DeviceDetailDTO': - return DeviceDetailDTO.fromJson(value); - case 'DeviceDetailDTOAllOf': - return DeviceDetailDTOAllOf.fromJson(value); - case 'ExportConfigurationDTO': - return ExportConfigurationDTO.fromJson(value); - case 'ExportConfigurationDTOAllOf': - return ExportConfigurationDTOAllOf.fromJson(value); - case 'GeoPointDTO': - return GeoPointDTO.fromJson(value); - case 'ImageDTO': - return ImageDTO.fromJson(value); - case 'ImageGeoPoint': - return ImageGeoPoint.fromJson(value); - case 'LevelDTO': - return LevelDTO.fromJson(value); - case 'LoginDTO': - return LoginDTO.fromJson(value); - case 'MapDTO': - return MapDTO.fromJson(value); - case 'MapTypeApp': - return MapTypeAppTypeTransformer().decode(value); - - case 'MenuDTO': - return MenuDTO.fromJson(value); - case 'PlayerMessageDTO': - return PlayerMessageDTO.fromJson(value); - case 'QuestionDTO': - return QuestionDTO.fromJson(value); - case 'QuizzDTO': - return QuizzDTO.fromJson(value); - case 'ResourceDTO': - return ResourceDTO.fromJson(value); - case 'ResourceType': - return ResourceTypeTypeTransformer().decode(value); - - case 'ResponseDTO': - return ResponseDTO.fromJson(value); - case 'SectionDTO': - return SectionDTO.fromJson(value); - case 'SectionType': - return SectionTypeTypeTransformer().decode(value); - - case 'SliderDTO': - return SliderDTO.fromJson(value); - case 'TokenDTO': - return TokenDTO.fromJson(value); - case 'TranslationDTO': - return TranslationDTO.fromJson(value); - case 'User': - return User.fromJson(value); - case 'UserDetailDTO': - return UserDetailDTO.fromJson(value); - case 'VideoDTO': - return VideoDTO.fromJson(value); - case 'WebDTO': - return WebDTO.fromJson(value); - default: - Match match; - if (value is List && (match = _regList.firstMatch(targetType)) != null) { - final newTargetType = match[1]; - return value - .map((v) => _deserialize(v, newTargetType, growable: growable)) - .toList(growable: true == growable); - } - if (value is Set && (match = _regSet.firstMatch(targetType)) != null) { - final newTargetType = match[1]; - return value - .map((v) => _deserialize(v, newTargetType, growable: growable)) - .toSet(); - } - if (value is Map && (match = _regMap.firstMatch(targetType)) != null) { - final newTargetType = match[1]; - return Map.fromIterables( - value.keys, - value.values.map((v) => _deserialize(v, newTargetType, growable: growable)), - ); - } - break; - } - } on Exception catch (e, stack) { - throw ApiException.withInner(HttpStatus.internalServerError, 'Exception during deserialization.', e, stack,); - } - throw ApiException(HttpStatus.internalServerError, 'Could not find a suitable class for deserialization',); - } - - dynamic deserialize(String json, String targetType, {bool growable}) { - // Remove all spaces. Necessary for reg expressions as well. - targetType = targetType.replaceAll(' ', ''); - - return targetType == 'String' - ? json - : _deserialize(jsonDecode(json), targetType, growable: true == growable); - } - - String serialize(Object obj) => obj == null ? '' : json.encode(obj); - - /// Update query and header parameters based on authentication settings. - /// @param authNames The authentications to apply - void _updateParamsForAuth( - List authNames, - List queryParams, - Map headerParams, - ) { - authNames.forEach((authName) { - final auth = _authentications[authName]; - if (auth == null) { - throw ArgumentError('Authentication undefined: $authName'); - } - auth.applyToParams(queryParams, headerParams); - }); - } -} diff --git a/manager_api_old/lib/api_exception.dart b/manager_api_old/lib/api_exception.dart deleted file mode 100644 index 1537c97..0000000 --- a/manager_api_old/lib/api_exception.dart +++ /dev/null @@ -1,31 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ApiException implements Exception { - ApiException(this.code, this.message); - - ApiException.withInner(this.code, this.message, this.innerException, this.stackTrace); - - int code = 0; - String message; - Exception innerException; - StackTrace stackTrace; - - String toString() { - if (message == null) { - return 'ApiException'; - } - if (innerException == null) { - return 'ApiException $code: $message'; - } - return 'ApiException $code: $message (Inner exception: $innerException)\n\n$stackTrace'; - } -} diff --git a/manager_api_old/lib/api_helper.dart b/manager_api_old/lib/api_helper.dart deleted file mode 100644 index 1f73cef..0000000 --- a/manager_api_old/lib/api_helper.dart +++ /dev/null @@ -1,80 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QueryParam { - const QueryParam(this.name, this.value); - - final String name; - final String value; - - @override - String toString() => '${Uri.encodeQueryComponent(name)}=${Uri.encodeQueryComponent(value)}'; -} - -// Ported from the Java version. -Iterable _convertParametersForCollectionFormat( - String collectionFormat, - String name, - dynamic value, -) { - final params = []; - - // preconditions - if (name != null && !name.isEmpty && value != null) { - if (value is List) { - // get the collection format, default: csv - collectionFormat = (collectionFormat == null || collectionFormat.isEmpty) - ? 'csv' - : collectionFormat; - - if (collectionFormat == 'multi') { - return value.map((v) => QueryParam(name, parameterToString(v))); - } - - final delimiter = _delimiters[collectionFormat] ?? ','; - - params.add(QueryParam(name, value.map((v) => parameterToString(v)).join(delimiter))); - } else { - params.add(QueryParam(name, parameterToString(value))); - } - } - - return params; -} - -/// Format the given parameter object into a [String]. -String parameterToString(dynamic value) { - if (value == null) { - return ''; - } - if (value is DateTime) { - return value.toUtc().toIso8601String(); - } - if (value is MapTypeApp) { - return MapTypeAppTypeTransformer().encode(value).toString(); - } - if (value is ResourceType) { - return ResourceTypeTypeTransformer().encode(value).toString(); - } - if (value is SectionType) { - return SectionTypeTypeTransformer().encode(value).toString(); - } - return value.toString(); -} - -/// Returns the decoded body as UTF-8 if the given headers indicate an 'application/json' -/// content type. Otherwise, returns the decoded body as decoded by dart:http package. -String _decodeBodyBytes(Response response) { - final contentType = response.headers['content-type']; - return contentType != null && contentType.toLowerCase().startsWith('application/json') - ? response.bodyBytes == null ? null : utf8.decode(response.bodyBytes) - : response.body; -} diff --git a/manager_api_old/lib/auth/api_key_auth.dart b/manager_api_old/lib/auth/api_key_auth.dart deleted file mode 100644 index 41a4afd..0000000 --- a/manager_api_old/lib/auth/api_key_auth.dart +++ /dev/null @@ -1,35 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ApiKeyAuth implements Authentication { - ApiKeyAuth(this.location, this.paramName); - - final String location; - final String paramName; - - String apiKeyPrefix; - String apiKey; - - @override - void applyToParams(List queryParams, Map headerParams) { - final value = apiKeyPrefix == null ? apiKey : '$apiKeyPrefix $apiKey'; - - if (location == 'query' && value != null) { - queryParams.add(QueryParam(paramName, value)); - } else if (location == 'header' && value != null) { - headerParams[paramName] = value; - } else if (location == 'cookie' && value != null) { - headerParams.update('Cookie', (String existingCookie) { - return '$existingCookie; $paramName=$value'; - }, ifAbsent: () => '$paramName=$value'); - } - } -} diff --git a/manager_api_old/lib/auth/authentication.dart b/manager_api_old/lib/auth/authentication.dart deleted file mode 100644 index 5ca198d..0000000 --- a/manager_api_old/lib/auth/authentication.dart +++ /dev/null @@ -1,15 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -abstract class Authentication { - /// Apply authentication settings to header and query params. - void applyToParams(List queryParams, Map headerParams); -} diff --git a/manager_api_old/lib/auth/http_basic_auth.dart b/manager_api_old/lib/auth/http_basic_auth.dart deleted file mode 100644 index 6dc36a1..0000000 --- a/manager_api_old/lib/auth/http_basic_auth.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class HttpBasicAuth implements Authentication { - String username; - String password; - - @override - void applyToParams(List queryParams, Map headerParams) { - final credentials = (username ?? '') + ':' + (password ?? ''); - headerParams['Authorization'] = 'Basic ${base64.encode(utf8.encode(credentials))}'; - } -} diff --git a/manager_api_old/lib/auth/http_bearer_auth.dart b/manager_api_old/lib/auth/http_bearer_auth.dart deleted file mode 100644 index a23b65f..0000000 --- a/manager_api_old/lib/auth/http_bearer_auth.dart +++ /dev/null @@ -1,38 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -typedef HttpBearerAuthProvider = String Function(); - -class HttpBearerAuth implements Authentication { - HttpBearerAuth(); - - dynamic _accessToken; - - dynamic get accessToken => _accessToken; - - set accessToken(dynamic accessToken) { - if (accessToken is! String && accessToken is! HttpBearerAuthProvider) { - throw ArgumentError('Type of Bearer accessToken should be a String or a String Function().'); - } - this._accessToken = accessToken; - } - - @override - void applyToParams(List queryParams, Map headerParams) { - if (_accessToken is String) { - headerParams['Authorization'] = 'Bearer $_accessToken'; - } else if (_accessToken is HttpBearerAuthProvider) { - headerParams['Authorization'] = 'Bearer ${_accessToken()}'; - } else { - throw ArgumentError('Type of Bearer accessToken should be a String or a String Function().'); - } - } -} diff --git a/manager_api_old/lib/auth/oauth.dart b/manager_api_old/lib/auth/oauth.dart deleted file mode 100644 index c0463ad..0000000 --- a/manager_api_old/lib/auth/oauth.dart +++ /dev/null @@ -1,23 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class OAuth implements Authentication { - OAuth({this.accessToken}); - - String accessToken; - - @override - void applyToParams(List queryParams, Map headerParams) { - if (accessToken != null) { - headerParams['Authorization'] = 'Bearer $accessToken'; - } - } -} diff --git a/manager_api_old/lib/model/configuration_dto.dart b/manager_api_old/lib/model/configuration_dto.dart deleted file mode 100644 index 06db575..0000000 --- a/manager_api_old/lib/model/configuration_dto.dart +++ /dev/null @@ -1,120 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ConfigurationDTO { - /// Returns a new [ConfigurationDTO] instance. - ConfigurationDTO({ - this.id, - this.label, - this.primaryColor, - this.secondaryColor, - this.languages, - this.dateCreation, - }); - - String id; - - String label; - - String primaryColor; - - String secondaryColor; - - List languages; - - DateTime dateCreation; - - @override - bool operator ==(Object other) => identical(this, other) || other is ConfigurationDTO && - other.id == id && - other.label == label && - other.primaryColor == primaryColor && - other.secondaryColor == secondaryColor && - other.languages == languages && - other.dateCreation == dateCreation; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (label == null ? 0 : label.hashCode) + - (primaryColor == null ? 0 : primaryColor.hashCode) + - (secondaryColor == null ? 0 : secondaryColor.hashCode) + - (languages == null ? 0 : languages.hashCode) + - (dateCreation == null ? 0 : dateCreation.hashCode); - - @override - String toString() => 'ConfigurationDTO[id=$id, label=$label, primaryColor=$primaryColor, secondaryColor=$secondaryColor, languages=$languages, dateCreation=$dateCreation]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (label != null) { - json[r'label'] = label; - } - if (primaryColor != null) { - json[r'primaryColor'] = primaryColor; - } - if (secondaryColor != null) { - json[r'secondaryColor'] = secondaryColor; - } - if (languages != null) { - json[r'languages'] = languages; - } - if (dateCreation != null) { - json[r'dateCreation'] = dateCreation.toUtc().toIso8601String(); - } - return json; - } - - /// Returns a new [ConfigurationDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ConfigurationDTO fromJson(Map json) => json == null - ? null - : ConfigurationDTO( - id: json[r'id'], - label: json[r'label'], - primaryColor: json[r'primaryColor'], - secondaryColor: json[r'secondaryColor'], - languages: json[r'languages'] == null - ? null - : (json[r'languages'] as List).cast(), - dateCreation: json[r'dateCreation'] == null - ? null - : DateTime.parse(json[r'dateCreation']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => ConfigurationDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = ConfigurationDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of ConfigurationDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = ConfigurationDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/device_detail_dto.dart b/manager_api_old/lib/model/device_detail_dto.dart deleted file mode 100644 index f8b686c..0000000 --- a/manager_api_old/lib/model/device_detail_dto.dart +++ /dev/null @@ -1,196 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class DeviceDetailDTO { - /// Returns a new [DeviceDetailDTO] instance. - DeviceDetailDTO({ - this.id, - this.identifier, - this.name, - this.ipAddressWLAN, - this.ipAddressETH, - this.configurationId, - this.configuration, - this.connected, - this.dateCreation, - this.dateUpdate, - this.connectionLevel, - this.lastConnectionLevel, - this.batteryLevel, - this.lastBatteryLevel, - }); - - String id; - - String identifier; - - String name; - - String ipAddressWLAN; - - String ipAddressETH; - - String configurationId; - - String configuration; - - bool connected; - - DateTime dateCreation; - - DateTime dateUpdate; - - String connectionLevel; - - DateTime lastConnectionLevel; - - String batteryLevel; - - DateTime lastBatteryLevel; - - @override - bool operator ==(Object other) => identical(this, other) || other is DeviceDetailDTO && - other.id == id && - other.identifier == identifier && - other.name == name && - other.ipAddressWLAN == ipAddressWLAN && - other.ipAddressETH == ipAddressETH && - other.configurationId == configurationId && - other.configuration == configuration && - other.connected == connected && - other.dateCreation == dateCreation && - other.dateUpdate == dateUpdate && - other.connectionLevel == connectionLevel && - other.lastConnectionLevel == lastConnectionLevel && - other.batteryLevel == batteryLevel && - other.lastBatteryLevel == lastBatteryLevel; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (identifier == null ? 0 : identifier.hashCode) + - (name == null ? 0 : name.hashCode) + - (ipAddressWLAN == null ? 0 : ipAddressWLAN.hashCode) + - (ipAddressETH == null ? 0 : ipAddressETH.hashCode) + - (configurationId == null ? 0 : configurationId.hashCode) + - (configuration == null ? 0 : configuration.hashCode) + - (connected == null ? 0 : connected.hashCode) + - (dateCreation == null ? 0 : dateCreation.hashCode) + - (dateUpdate == null ? 0 : dateUpdate.hashCode) + - (connectionLevel == null ? 0 : connectionLevel.hashCode) + - (lastConnectionLevel == null ? 0 : lastConnectionLevel.hashCode) + - (batteryLevel == null ? 0 : batteryLevel.hashCode) + - (lastBatteryLevel == null ? 0 : lastBatteryLevel.hashCode); - - @override - String toString() => 'DeviceDetailDTO[id=$id, identifier=$identifier, name=$name, ipAddressWLAN=$ipAddressWLAN, ipAddressETH=$ipAddressETH, configurationId=$configurationId, configuration=$configuration, connected=$connected, dateCreation=$dateCreation, dateUpdate=$dateUpdate, connectionLevel=$connectionLevel, lastConnectionLevel=$lastConnectionLevel, batteryLevel=$batteryLevel, lastBatteryLevel=$lastBatteryLevel]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (identifier != null) { - json[r'identifier'] = identifier; - } - if (name != null) { - json[r'name'] = name; - } - if (ipAddressWLAN != null) { - json[r'ipAddressWLAN'] = ipAddressWLAN; - } - if (ipAddressETH != null) { - json[r'ipAddressETH'] = ipAddressETH; - } - if (configurationId != null) { - json[r'configurationId'] = configurationId; - } - if (configuration != null) { - json[r'configuration'] = configuration; - } - if (connected != null) { - json[r'connected'] = connected; - } - if (dateCreation != null) { - json[r'dateCreation'] = dateCreation.toUtc().toIso8601String(); - } - if (dateUpdate != null) { - json[r'dateUpdate'] = dateUpdate.toUtc().toIso8601String(); - } - if (connectionLevel != null) { - json[r'connectionLevel'] = connectionLevel; - } - if (lastConnectionLevel != null) { - json[r'lastConnectionLevel'] = lastConnectionLevel.toUtc().toIso8601String(); - } - if (batteryLevel != null) { - json[r'batteryLevel'] = batteryLevel; - } - if (lastBatteryLevel != null) { - json[r'lastBatteryLevel'] = lastBatteryLevel.toUtc().toIso8601String(); - } - return json; - } - - /// Returns a new [DeviceDetailDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static DeviceDetailDTO fromJson(Map json) => json == null - ? null - : DeviceDetailDTO( - id: json[r'id'], - identifier: json[r'identifier'], - name: json[r'name'], - ipAddressWLAN: json[r'ipAddressWLAN'], - ipAddressETH: json[r'ipAddressETH'], - configurationId: json[r'configurationId'], - configuration: json[r'configuration'], - connected: json[r'connected'], - dateCreation: json[r'dateCreation'] == null - ? null - : DateTime.parse(json[r'dateCreation']), - dateUpdate: json[r'dateUpdate'] == null - ? null - : DateTime.parse(json[r'dateUpdate']), - connectionLevel: json[r'connectionLevel'], - lastConnectionLevel: json[r'lastConnectionLevel'] == null - ? null - : DateTime.parse(json[r'lastConnectionLevel']), - batteryLevel: json[r'batteryLevel'], - lastBatteryLevel: json[r'lastBatteryLevel'] == null - ? null - : DateTime.parse(json[r'lastBatteryLevel']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => DeviceDetailDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = DeviceDetailDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of DeviceDetailDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = DeviceDetailDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/device_detail_dto_all_of.dart b/manager_api_old/lib/model/device_detail_dto_all_of.dart deleted file mode 100644 index 9025552..0000000 --- a/manager_api_old/lib/model/device_detail_dto_all_of.dart +++ /dev/null @@ -1,102 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class DeviceDetailDTOAllOf { - /// Returns a new [DeviceDetailDTOAllOf] instance. - DeviceDetailDTOAllOf({ - this.connectionLevel, - this.lastConnectionLevel, - this.batteryLevel, - this.lastBatteryLevel, - }); - - String connectionLevel; - - DateTime lastConnectionLevel; - - String batteryLevel; - - DateTime lastBatteryLevel; - - @override - bool operator ==(Object other) => identical(this, other) || other is DeviceDetailDTOAllOf && - other.connectionLevel == connectionLevel && - other.lastConnectionLevel == lastConnectionLevel && - other.batteryLevel == batteryLevel && - other.lastBatteryLevel == lastBatteryLevel; - - @override - int get hashCode => - (connectionLevel == null ? 0 : connectionLevel.hashCode) + - (lastConnectionLevel == null ? 0 : lastConnectionLevel.hashCode) + - (batteryLevel == null ? 0 : batteryLevel.hashCode) + - (lastBatteryLevel == null ? 0 : lastBatteryLevel.hashCode); - - @override - String toString() => 'DeviceDetailDTOAllOf[connectionLevel=$connectionLevel, lastConnectionLevel=$lastConnectionLevel, batteryLevel=$batteryLevel, lastBatteryLevel=$lastBatteryLevel]'; - - Map toJson() { - final json = {}; - if (connectionLevel != null) { - json[r'connectionLevel'] = connectionLevel; - } - if (lastConnectionLevel != null) { - json[r'lastConnectionLevel'] = lastConnectionLevel.toUtc().toIso8601String(); - } - if (batteryLevel != null) { - json[r'batteryLevel'] = batteryLevel; - } - if (lastBatteryLevel != null) { - json[r'lastBatteryLevel'] = lastBatteryLevel.toUtc().toIso8601String(); - } - return json; - } - - /// Returns a new [DeviceDetailDTOAllOf] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static DeviceDetailDTOAllOf fromJson(Map json) => json == null - ? null - : DeviceDetailDTOAllOf( - connectionLevel: json[r'connectionLevel'], - lastConnectionLevel: json[r'lastConnectionLevel'] == null - ? null - : DateTime.parse(json[r'lastConnectionLevel']), - batteryLevel: json[r'batteryLevel'], - lastBatteryLevel: json[r'lastBatteryLevel'] == null - ? null - : DateTime.parse(json[r'lastBatteryLevel']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => DeviceDetailDTOAllOf.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = DeviceDetailDTOAllOf.fromJson(v)); - } - return map; - } - - // maps a json object with a list of DeviceDetailDTOAllOf-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = DeviceDetailDTOAllOf.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/device_dto.dart b/manager_api_old/lib/model/device_dto.dart deleted file mode 100644 index 19a5677..0000000 --- a/manager_api_old/lib/model/device_dto.dart +++ /dev/null @@ -1,156 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class DeviceDTO { - /// Returns a new [DeviceDTO] instance. - DeviceDTO({ - this.id, - this.identifier, - this.name, - this.ipAddressWLAN, - this.ipAddressETH, - this.configurationId, - this.configuration, - this.connected, - this.dateCreation, - this.dateUpdate, - }); - - String id; - - String identifier; - - String name; - - String ipAddressWLAN; - - String ipAddressETH; - - String configurationId; - - String configuration; - - bool connected; - - DateTime dateCreation; - - DateTime dateUpdate; - - @override - bool operator ==(Object other) => identical(this, other) || other is DeviceDTO && - other.id == id && - other.identifier == identifier && - other.name == name && - other.ipAddressWLAN == ipAddressWLAN && - other.ipAddressETH == ipAddressETH && - other.configurationId == configurationId && - other.configuration == configuration && - other.connected == connected && - other.dateCreation == dateCreation && - other.dateUpdate == dateUpdate; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (identifier == null ? 0 : identifier.hashCode) + - (name == null ? 0 : name.hashCode) + - (ipAddressWLAN == null ? 0 : ipAddressWLAN.hashCode) + - (ipAddressETH == null ? 0 : ipAddressETH.hashCode) + - (configurationId == null ? 0 : configurationId.hashCode) + - (configuration == null ? 0 : configuration.hashCode) + - (connected == null ? 0 : connected.hashCode) + - (dateCreation == null ? 0 : dateCreation.hashCode) + - (dateUpdate == null ? 0 : dateUpdate.hashCode); - - @override - String toString() => 'DeviceDTO[id=$id, identifier=$identifier, name=$name, ipAddressWLAN=$ipAddressWLAN, ipAddressETH=$ipAddressETH, configurationId=$configurationId, configuration=$configuration, connected=$connected, dateCreation=$dateCreation, dateUpdate=$dateUpdate]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (identifier != null) { - json[r'identifier'] = identifier; - } - if (name != null) { - json[r'name'] = name; - } - if (ipAddressWLAN != null) { - json[r'ipAddressWLAN'] = ipAddressWLAN; - } - if (ipAddressETH != null) { - json[r'ipAddressETH'] = ipAddressETH; - } - if (configurationId != null) { - json[r'configurationId'] = configurationId; - } - if (configuration != null) { - json[r'configuration'] = configuration; - } - if (connected != null) { - json[r'connected'] = connected; - } - if (dateCreation != null) { - json[r'dateCreation'] = dateCreation.toUtc().toIso8601String(); - } - if (dateUpdate != null) { - json[r'dateUpdate'] = dateUpdate.toUtc().toIso8601String(); - } - return json; - } - - /// Returns a new [DeviceDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static DeviceDTO fromJson(Map json) => json == null - ? null - : DeviceDTO( - id: json[r'id'], - identifier: json[r'identifier'], - name: json[r'name'], - ipAddressWLAN: json[r'ipAddressWLAN'], - ipAddressETH: json[r'ipAddressETH'], - configurationId: json[r'configurationId'], - configuration: json[r'configuration'], - connected: json[r'connected'], - dateCreation: json[r'dateCreation'] == null - ? null - : DateTime.parse(json[r'dateCreation']), - dateUpdate: json[r'dateUpdate'] == null - ? null - : DateTime.parse(json[r'dateUpdate']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => DeviceDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = DeviceDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of DeviceDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = DeviceDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/export_configuration_dto.dart b/manager_api_old/lib/model/export_configuration_dto.dart deleted file mode 100644 index 3e2a8a2..0000000 --- a/manager_api_old/lib/model/export_configuration_dto.dart +++ /dev/null @@ -1,138 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ExportConfigurationDTO { - /// Returns a new [ExportConfigurationDTO] instance. - ExportConfigurationDTO({ - this.id, - this.label, - this.primaryColor, - this.secondaryColor, - this.languages, - this.dateCreation, - this.sections, - this.resources, - }); - - String id; - - String label; - - String primaryColor; - - String secondaryColor; - - List languages; - - DateTime dateCreation; - - List sections; - - List resources; - - @override - bool operator ==(Object other) => identical(this, other) || other is ExportConfigurationDTO && - other.id == id && - other.label == label && - other.primaryColor == primaryColor && - other.secondaryColor == secondaryColor && - other.languages == languages && - other.dateCreation == dateCreation && - other.sections == sections && - other.resources == resources; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (label == null ? 0 : label.hashCode) + - (primaryColor == null ? 0 : primaryColor.hashCode) + - (secondaryColor == null ? 0 : secondaryColor.hashCode) + - (languages == null ? 0 : languages.hashCode) + - (dateCreation == null ? 0 : dateCreation.hashCode) + - (sections == null ? 0 : sections.hashCode) + - (resources == null ? 0 : resources.hashCode); - - @override - String toString() => 'ExportConfigurationDTO[id=$id, label=$label, primaryColor=$primaryColor, secondaryColor=$secondaryColor, languages=$languages, dateCreation=$dateCreation, sections=$sections, resources=$resources]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (label != null) { - json[r'label'] = label; - } - if (primaryColor != null) { - json[r'primaryColor'] = primaryColor; - } - if (secondaryColor != null) { - json[r'secondaryColor'] = secondaryColor; - } - if (languages != null) { - json[r'languages'] = languages; - } - if (dateCreation != null) { - json[r'dateCreation'] = dateCreation.toUtc().toIso8601String(); - } - if (sections != null) { - json[r'sections'] = sections; - } - if (resources != null) { - json[r'resources'] = resources; - } - return json; - } - - /// Returns a new [ExportConfigurationDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ExportConfigurationDTO fromJson(Map json) => json == null - ? null - : ExportConfigurationDTO( - id: json[r'id'], - label: json[r'label'], - primaryColor: json[r'primaryColor'], - secondaryColor: json[r'secondaryColor'], - languages: json[r'languages'] == null - ? null - : (json[r'languages'] as List).cast(), - dateCreation: json[r'dateCreation'] == null - ? null - : DateTime.parse(json[r'dateCreation']), - sections: SectionDTO.listFromJson(json[r'sections']), - resources: ResourceDTO.listFromJson(json[r'resources']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => ExportConfigurationDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = ExportConfigurationDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of ExportConfigurationDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = ExportConfigurationDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/export_configuration_dto_all_of.dart b/manager_api_old/lib/model/export_configuration_dto_all_of.dart deleted file mode 100644 index 4d93a48..0000000 --- a/manager_api_old/lib/model/export_configuration_dto_all_of.dart +++ /dev/null @@ -1,80 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ExportConfigurationDTOAllOf { - /// Returns a new [ExportConfigurationDTOAllOf] instance. - ExportConfigurationDTOAllOf({ - this.sections, - this.resources, - }); - - List sections; - - List resources; - - @override - bool operator ==(Object other) => identical(this, other) || other is ExportConfigurationDTOAllOf && - other.sections == sections && - other.resources == resources; - - @override - int get hashCode => - (sections == null ? 0 : sections.hashCode) + - (resources == null ? 0 : resources.hashCode); - - @override - String toString() => 'ExportConfigurationDTOAllOf[sections=$sections, resources=$resources]'; - - Map toJson() { - final json = {}; - if (sections != null) { - json[r'sections'] = sections; - } - if (resources != null) { - json[r'resources'] = resources; - } - return json; - } - - /// Returns a new [ExportConfigurationDTOAllOf] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ExportConfigurationDTOAllOf fromJson(Map json) => json == null - ? null - : ExportConfigurationDTOAllOf( - sections: SectionDTO.listFromJson(json[r'sections']), - resources: ResourceDTO.listFromJson(json[r'resources']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => ExportConfigurationDTOAllOf.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = ExportConfigurationDTOAllOf.fromJson(v)); - } - return map; - } - - // maps a json object with a list of ExportConfigurationDTOAllOf-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = ExportConfigurationDTOAllOf.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/geo_point_dto.dart b/manager_api_old/lib/model/geo_point_dto.dart deleted file mode 100644 index 15363a1..0000000 --- a/manager_api_old/lib/model/geo_point_dto.dart +++ /dev/null @@ -1,116 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GeoPointDTO { - /// Returns a new [GeoPointDTO] instance. - GeoPointDTO({ - this.id, - this.title, - this.description, - this.images, - this.latitude, - this.longitude, - }); - - int id; - - List title; - - List description; - - List images; - - String latitude; - - String longitude; - - @override - bool operator ==(Object other) => identical(this, other) || other is GeoPointDTO && - other.id == id && - other.title == title && - other.description == description && - other.images == images && - other.latitude == latitude && - other.longitude == longitude; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (title == null ? 0 : title.hashCode) + - (description == null ? 0 : description.hashCode) + - (images == null ? 0 : images.hashCode) + - (latitude == null ? 0 : latitude.hashCode) + - (longitude == null ? 0 : longitude.hashCode); - - @override - String toString() => 'GeoPointDTO[id=$id, title=$title, description=$description, images=$images, latitude=$latitude, longitude=$longitude]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (title != null) { - json[r'title'] = title; - } - if (description != null) { - json[r'description'] = description; - } - if (images != null) { - json[r'images'] = images; - } - if (latitude != null) { - json[r'latitude'] = latitude; - } - if (longitude != null) { - json[r'longitude'] = longitude; - } - return json; - } - - /// Returns a new [GeoPointDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static GeoPointDTO fromJson(Map json) => json == null - ? null - : GeoPointDTO( - id: json[r'id'], - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - images: ImageGeoPoint.listFromJson(json[r'images']), - latitude: json[r'latitude'], - longitude: json[r'longitude'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => GeoPointDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = GeoPointDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of GeoPointDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = GeoPointDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/image_dto.dart b/manager_api_old/lib/model/image_dto.dart deleted file mode 100644 index 8ea812c..0000000 --- a/manager_api_old/lib/model/image_dto.dart +++ /dev/null @@ -1,107 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ImageDTO { - /// Returns a new [ImageDTO] instance. - ImageDTO({ - this.title, - this.description, - this.resourceId, - this.source_, - this.order, - }); - - List title; - - List description; - - String resourceId; - - String source_; - - int order; - - @override - bool operator ==(Object other) => identical(this, other) || other is ImageDTO && - other.title == title && - other.description == description && - other.resourceId == resourceId && - other.source_ == source_ && - other.order == order; - - @override - int get hashCode => - (title == null ? 0 : title.hashCode) + - (description == null ? 0 : description.hashCode) + - (resourceId == null ? 0 : resourceId.hashCode) + - (source_ == null ? 0 : source_.hashCode) + - (order == null ? 0 : order.hashCode); - - @override - String toString() => 'ImageDTO[title=$title, description=$description, resourceId=$resourceId, source_=$source_, order=$order]'; - - Map toJson() { - final json = {}; - if (title != null) { - json[r'title'] = title; - } - if (description != null) { - json[r'description'] = description; - } - if (resourceId != null) { - json[r'resourceId'] = resourceId; - } - if (source_ != null) { - json[r'source'] = source_; - } - if (order != null) { - json[r'order'] = order; - } - return json; - } - - /// Returns a new [ImageDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ImageDTO fromJson(Map json) => json == null - ? null - : ImageDTO( - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - resourceId: json[r'resourceId'], - source_: json[r'source'], - order: json[r'order'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => ImageDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = ImageDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of ImageDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = ImageDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/image_geo_point.dart b/manager_api_old/lib/model/image_geo_point.dart deleted file mode 100644 index 923877f..0000000 --- a/manager_api_old/lib/model/image_geo_point.dart +++ /dev/null @@ -1,80 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ImageGeoPoint { - /// Returns a new [ImageGeoPoint] instance. - ImageGeoPoint({ - this.imageResourceId, - this.imageSource, - }); - - String imageResourceId; - - String imageSource; - - @override - bool operator ==(Object other) => identical(this, other) || other is ImageGeoPoint && - other.imageResourceId == imageResourceId && - other.imageSource == imageSource; - - @override - int get hashCode => - (imageResourceId == null ? 0 : imageResourceId.hashCode) + - (imageSource == null ? 0 : imageSource.hashCode); - - @override - String toString() => 'ImageGeoPoint[imageResourceId=$imageResourceId, imageSource=$imageSource]'; - - Map toJson() { - final json = {}; - if (imageResourceId != null) { - json[r'imageResourceId'] = imageResourceId; - } - if (imageSource != null) { - json[r'imageSource'] = imageSource; - } - return json; - } - - /// Returns a new [ImageGeoPoint] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ImageGeoPoint fromJson(Map json) => json == null - ? null - : ImageGeoPoint( - imageResourceId: json[r'imageResourceId'], - imageSource: json[r'imageSource'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => ImageGeoPoint.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = ImageGeoPoint.fromJson(v)); - } - return map; - } - - // maps a json object with a list of ImageGeoPoint-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = ImageGeoPoint.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/level_dto.dart b/manager_api_old/lib/model/level_dto.dart deleted file mode 100644 index c9a5f17..0000000 --- a/manager_api_old/lib/model/level_dto.dart +++ /dev/null @@ -1,89 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class LevelDTO { - /// Returns a new [LevelDTO] instance. - LevelDTO({ - this.label, - this.resourceId, - this.source_, - }); - - List label; - - String resourceId; - - String source_; - - @override - bool operator ==(Object other) => identical(this, other) || other is LevelDTO && - other.label == label && - other.resourceId == resourceId && - other.source_ == source_; - - @override - int get hashCode => - (label == null ? 0 : label.hashCode) + - (resourceId == null ? 0 : resourceId.hashCode) + - (source_ == null ? 0 : source_.hashCode); - - @override - String toString() => 'LevelDTO[label=$label, resourceId=$resourceId, source_=$source_]'; - - Map toJson() { - final json = {}; - if (label != null) { - json[r'label'] = label; - } - if (resourceId != null) { - json[r'resourceId'] = resourceId; - } - if (source_ != null) { - json[r'source'] = source_; - } - return json; - } - - /// Returns a new [LevelDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static LevelDTO fromJson(Map json) => json == null - ? null - : LevelDTO( - label: TranslationDTO.listFromJson(json[r'label']), - resourceId: json[r'resourceId'], - source_: json[r'source'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => LevelDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = LevelDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of LevelDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = LevelDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/login_dto.dart b/manager_api_old/lib/model/login_dto.dart deleted file mode 100644 index ff0bed5..0000000 --- a/manager_api_old/lib/model/login_dto.dart +++ /dev/null @@ -1,80 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class LoginDTO { - /// Returns a new [LoginDTO] instance. - LoginDTO({ - this.email, - this.password, - }); - - String email; - - String password; - - @override - bool operator ==(Object other) => identical(this, other) || other is LoginDTO && - other.email == email && - other.password == password; - - @override - int get hashCode => - (email == null ? 0 : email.hashCode) + - (password == null ? 0 : password.hashCode); - - @override - String toString() => 'LoginDTO[email=$email, password=$password]'; - - Map toJson() { - final json = {}; - if (email != null) { - json[r'email'] = email; - } - if (password != null) { - json[r'password'] = password; - } - return json; - } - - /// Returns a new [LoginDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static LoginDTO fromJson(Map json) => json == null - ? null - : LoginDTO( - email: json[r'email'], - password: json[r'password'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => LoginDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = LoginDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of LoginDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = LoginDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/map_dto.dart b/manager_api_old/lib/model/map_dto.dart deleted file mode 100644 index f8e229d..0000000 --- a/manager_api_old/lib/model/map_dto.dart +++ /dev/null @@ -1,107 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// 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.points, - this.iconResourceId, - this.iconSource, - }); - - int zoom; - - MapTypeApp mapType; - - List points; - - String iconResourceId; - - String iconSource; - - @override - bool operator ==(Object other) => identical(this, other) || other is MapDTO && - other.zoom == zoom && - other.mapType == mapType && - other.points == points && - other.iconResourceId == iconResourceId && - other.iconSource == iconSource; - - @override - int get hashCode => - (zoom == null ? 0 : zoom.hashCode) + - (mapType == null ? 0 : mapType.hashCode) + - (points == null ? 0 : points.hashCode) + - (iconResourceId == null ? 0 : iconResourceId.hashCode) + - (iconSource == null ? 0 : iconSource.hashCode); - - @override - String toString() => 'MapDTO[zoom=$zoom, mapType=$mapType, points=$points, iconResourceId=$iconResourceId, iconSource=$iconSource]'; - - Map toJson() { - final json = {}; - if (zoom != null) { - json[r'zoom'] = zoom; - } - if (mapType != null) { - json[r'mapType'] = mapType; - } - if (points != null) { - json[r'points'] = points; - } - if (iconResourceId != null) { - json[r'iconResourceId'] = iconResourceId; - } - if (iconSource != null) { - json[r'iconSource'] = iconSource; - } - return json; - } - - /// Returns a new [MapDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static MapDTO fromJson(Map json) => json == null - ? null - : MapDTO( - zoom: json[r'zoom'], - mapType: MapTypeApp.fromJson(json[r'mapType']), - points: GeoPointDTO.listFromJson(json[r'points']), - iconResourceId: json[r'iconResourceId'], - iconSource: json[r'iconSource'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => MapDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = MapDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of MapDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = MapDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/map_type.dart b/manager_api_old/lib/model/map_type.dart deleted file mode 100644 index e59e94b..0000000 --- a/manager_api_old/lib/model/map_type.dart +++ /dev/null @@ -1,85 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class MapType { - /// Instantiate a new enum with the provided [value]. - const MapType._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const none = MapType._(r'none'); - static const normal = MapType._(r'normal'); - static const satellite = MapType._(r'satellite'); - static const terrain = MapType._(r'terrain'); - static const hybrid = MapType._(r'hybrid'); - - /// List of all possible values in this [enum][MapType]. - static const values = [ - none, - normal, - satellite, - terrain, - hybrid, - ]; - - static MapType fromJson(dynamic value) => - MapTypeTypeTransformer().decode(value); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json - .map((value) => MapType.fromJson(value)) - .toList(growable: true == growable); -} - -/// Transformation class that can [encode] an instance of [MapType] to String, -/// and [decode] dynamic data back to [MapType]. -class MapTypeTypeTransformer { - const MapTypeTypeTransformer._(); - - factory MapTypeTypeTransformer() => _instance ??= MapTypeTypeTransformer._(); - - String encode(MapType data) => data.value; - - /// Decodes a [dynamic value][data] to a MapType. - /// - /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, - /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] - /// cannot be decoded successfully, then an [UnimplementedError] is thrown. - /// - /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, - /// and users are still using an old app with the old code. - MapType decode(dynamic data, {bool allowNull}) { - switch (data) { - case r'none': return MapType.none; - case r'normal': return MapType.normal; - case r'satellite': return MapType.satellite; - case r'terrain': return MapType.terrain; - case r'hybrid': return MapType.hybrid; - default: - if (allowNull == false) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - return null; - } - - /// Singleton [MapTypeTypeTransformer] instance. - static MapTypeTypeTransformer _instance; -} diff --git a/manager_api_old/lib/model/map_type_app.dart b/manager_api_old/lib/model/map_type_app.dart deleted file mode 100644 index 893968e..0000000 --- a/manager_api_old/lib/model/map_type_app.dart +++ /dev/null @@ -1,85 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class MapTypeApp { - /// Instantiate a new enum with the provided [value]. - const MapTypeApp._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const none = MapTypeApp._(r'none'); - static const normal = MapTypeApp._(r'normal'); - static const satellite = MapTypeApp._(r'satellite'); - static const terrain = MapTypeApp._(r'terrain'); - static const hybrid = MapTypeApp._(r'hybrid'); - - /// List of all possible values in this [enum][MapTypeApp]. - static const values = [ - none, - normal, - satellite, - terrain, - hybrid, - ]; - - static MapTypeApp fromJson(dynamic value) => - MapTypeAppTypeTransformer().decode(value); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json - .map((value) => MapTypeApp.fromJson(value)) - .toList(growable: true == growable); -} - -/// Transformation class that can [encode] an instance of [MapTypeApp] to String, -/// and [decode] dynamic data back to [MapTypeApp]. -class MapTypeAppTypeTransformer { - const MapTypeAppTypeTransformer._(); - - factory MapTypeAppTypeTransformer() => _instance ??= MapTypeAppTypeTransformer._(); - - String encode(MapTypeApp data) => data.value; - - /// Decodes a [dynamic value][data] to a MapTypeApp. - /// - /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, - /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] - /// cannot be decoded successfully, then an [UnimplementedError] is thrown. - /// - /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, - /// and users are still using an old app with the old code. - MapTypeApp decode(dynamic data, {bool allowNull}) { - switch (data) { - case r'none': return MapTypeApp.none; - case r'normal': return MapTypeApp.normal; - case r'satellite': return MapTypeApp.satellite; - case r'terrain': return MapTypeApp.terrain; - case r'hybrid': return MapTypeApp.hybrid; - default: - if (allowNull == false) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - return null; - } - - /// Singleton [MapTypeAppTypeTransformer] instance. - static MapTypeAppTypeTransformer _instance; -} diff --git a/manager_api_old/lib/model/menu_dto.dart b/manager_api_old/lib/model/menu_dto.dart deleted file mode 100644 index bcde011..0000000 --- a/manager_api_old/lib/model/menu_dto.dart +++ /dev/null @@ -1,71 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MenuDTO { - /// Returns a new [MenuDTO] instance. - MenuDTO({ - this.sections, - }); - - List sections; - - @override - bool operator ==(Object other) => identical(this, other) || other is MenuDTO && - other.sections == sections; - - @override - int get hashCode => - (sections == null ? 0 : sections.hashCode); - - @override - String toString() => 'MenuDTO[sections=$sections]'; - - Map toJson() { - final json = {}; - if (sections != null) { - json[r'sections'] = sections; - } - return json; - } - - /// Returns a new [MenuDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static MenuDTO fromJson(Map json) => json == null - ? null - : MenuDTO( - sections: SectionDTO.listFromJson(json[r'sections']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => MenuDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = MenuDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of MenuDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = MenuDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/player_message_dto.dart b/manager_api_old/lib/model/player_message_dto.dart deleted file mode 100644 index 0341a99..0000000 --- a/manager_api_old/lib/model/player_message_dto.dart +++ /dev/null @@ -1,80 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PlayerMessageDTO { - /// Returns a new [PlayerMessageDTO] instance. - PlayerMessageDTO({ - this.configChanged, - this.isDeleted, - }); - - bool configChanged; - - bool isDeleted; - - @override - bool operator ==(Object other) => identical(this, other) || other is PlayerMessageDTO && - other.configChanged == configChanged && - other.isDeleted == isDeleted; - - @override - int get hashCode => - (configChanged == null ? 0 : configChanged.hashCode) + - (isDeleted == null ? 0 : isDeleted.hashCode); - - @override - String toString() => 'PlayerMessageDTO[configChanged=$configChanged, isDeleted=$isDeleted]'; - - Map toJson() { - final json = {}; - if (configChanged != null) { - json[r'configChanged'] = configChanged; - } - if (isDeleted != null) { - json[r'isDeleted'] = isDeleted; - } - return json; - } - - /// Returns a new [PlayerMessageDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static PlayerMessageDTO fromJson(Map json) => json == null - ? null - : PlayerMessageDTO( - configChanged: json[r'configChanged'], - isDeleted: json[r'isDeleted'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => PlayerMessageDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = PlayerMessageDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of PlayerMessageDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = PlayerMessageDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/question_dto.dart b/manager_api_old/lib/model/question_dto.dart deleted file mode 100644 index 0584111..0000000 --- a/manager_api_old/lib/model/question_dto.dart +++ /dev/null @@ -1,107 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuestionDTO { - /// Returns a new [QuestionDTO] instance. - QuestionDTO({ - this.label, - this.responses, - this.resourceId, - this.source_, - this.order, - }); - - List label; - - List responses; - - String resourceId; - - String source_; - - int order; - - @override - bool operator ==(Object other) => identical(this, other) || other is QuestionDTO && - other.label == label && - other.responses == responses && - other.resourceId == resourceId && - other.source_ == source_ && - other.order == order; - - @override - int get hashCode => - (label == null ? 0 : label.hashCode) + - (responses == null ? 0 : responses.hashCode) + - (resourceId == null ? 0 : resourceId.hashCode) + - (source_ == null ? 0 : source_.hashCode) + - (order == null ? 0 : order.hashCode); - - @override - String toString() => 'QuestionDTO[label=$label, responses=$responses, resourceId=$resourceId, source_=$source_, order=$order]'; - - Map toJson() { - final json = {}; - if (label != null) { - json[r'label'] = label; - } - if (responses != null) { - json[r'responses'] = responses; - } - if (resourceId != null) { - json[r'resourceId'] = resourceId; - } - if (source_ != null) { - json[r'source'] = source_; - } - if (order != null) { - json[r'order'] = order; - } - return json; - } - - /// Returns a new [QuestionDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static QuestionDTO fromJson(Map json) => json == null - ? null - : QuestionDTO( - label: TranslationDTO.listFromJson(json[r'label']), - responses: ResponseDTO.listFromJson(json[r'responses']), - resourceId: json[r'resourceId'], - source_: json[r'source'], - order: json[r'order'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => QuestionDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = QuestionDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of QuestionDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = QuestionDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/quizz_dto.dart b/manager_api_old/lib/model/quizz_dto.dart deleted file mode 100644 index 20c22f2..0000000 --- a/manager_api_old/lib/model/quizz_dto.dart +++ /dev/null @@ -1,107 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuizzDTO { - /// Returns a new [QuizzDTO] instance. - QuizzDTO({ - this.questions, - this.badLevel, - this.mediumLevel, - this.goodLevel, - this.greatLevel, - }); - - List questions; - - LevelDTO badLevel; - - LevelDTO mediumLevel; - - LevelDTO goodLevel; - - LevelDTO greatLevel; - - @override - bool operator ==(Object other) => identical(this, other) || other is QuizzDTO && - other.questions == questions && - other.badLevel == badLevel && - other.mediumLevel == mediumLevel && - other.goodLevel == goodLevel && - other.greatLevel == greatLevel; - - @override - int get hashCode => - (questions == null ? 0 : questions.hashCode) + - (badLevel == null ? 0 : badLevel.hashCode) + - (mediumLevel == null ? 0 : mediumLevel.hashCode) + - (goodLevel == null ? 0 : goodLevel.hashCode) + - (greatLevel == null ? 0 : greatLevel.hashCode); - - @override - String toString() => 'QuizzDTO[questions=$questions, badLevel=$badLevel, mediumLevel=$mediumLevel, goodLevel=$goodLevel, greatLevel=$greatLevel]'; - - Map toJson() { - final json = {}; - if (questions != null) { - json[r'questions'] = questions; - } - if (badLevel != null) { - json[r'bad_level'] = badLevel; - } - if (mediumLevel != null) { - json[r'medium_level'] = mediumLevel; - } - if (goodLevel != null) { - json[r'good_level'] = goodLevel; - } - if (greatLevel != null) { - json[r'great_level'] = greatLevel; - } - return json; - } - - /// Returns a new [QuizzDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static QuizzDTO fromJson(Map json) => json == null - ? null - : QuizzDTO( - questions: QuestionDTO.listFromJson(json[r'questions']), - badLevel: LevelDTO.fromJson(json[r'bad_level']), - mediumLevel: LevelDTO.fromJson(json[r'medium_level']), - goodLevel: LevelDTO.fromJson(json[r'good_level']), - greatLevel: LevelDTO.fromJson(json[r'great_level']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => QuizzDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = QuizzDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of QuizzDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = QuizzDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/resource_detail_dto.dart b/manager_api_old/lib/model/resource_detail_dto.dart deleted file mode 100644 index 106fc52..0000000 --- a/manager_api_old/lib/model/resource_detail_dto.dart +++ /dev/null @@ -1,109 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ResourceDetailDTO { - /// Returns a new [ResourceDetailDTO] instance. - ResourceDetailDTO({ - this.id, - this.type, - this.label, - this.dateCreation, - this.data, - }); - - String id; - - ResourceType type; - - String label; - - DateTime dateCreation; - - String data; - - @override - bool operator ==(Object other) => identical(this, other) || other is ResourceDetailDTO && - other.id == id && - other.type == type && - other.label == label && - other.dateCreation == dateCreation && - other.data == data; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (type == null ? 0 : type.hashCode) + - (label == null ? 0 : label.hashCode) + - (dateCreation == null ? 0 : dateCreation.hashCode) + - (data == null ? 0 : data.hashCode); - - @override - String toString() => 'ResourceDetailDTO[id=$id, type=$type, label=$label, dateCreation=$dateCreation, data=$data]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (type != null) { - json[r'type'] = type; - } - if (label != null) { - json[r'label'] = label; - } - if (dateCreation != null) { - json[r'dateCreation'] = dateCreation.toUtc().toIso8601String(); - } - if (data != null) { - json[r'data'] = data; - } - return json; - } - - /// Returns a new [ResourceDetailDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ResourceDetailDTO fromJson(Map json) => json == null - ? null - : ResourceDetailDTO( - id: json[r'id'], - type: ResourceType.fromJson(json[r'type']), - label: json[r'label'], - dateCreation: json[r'dateCreation'] == null - ? null - : DateTime.parse(json[r'dateCreation']), - data: json[r'data'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => ResourceDetailDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = ResourceDetailDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of ResourceDetailDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = ResourceDetailDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/resource_dto.dart b/manager_api_old/lib/model/resource_dto.dart deleted file mode 100644 index 81f6382..0000000 --- a/manager_api_old/lib/model/resource_dto.dart +++ /dev/null @@ -1,109 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ResourceDTO { - /// Returns a new [ResourceDTO] instance. - ResourceDTO({ - this.id, - this.type, - this.label, - this.dateCreation, - this.data, - }); - - String id; - - ResourceType type; - - String label; - - DateTime dateCreation; - - String data; - - @override - bool operator ==(Object other) => identical(this, other) || other is ResourceDTO && - other.id == id && - other.type == type && - other.label == label && - other.dateCreation == dateCreation && - other.data == data; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (type == null ? 0 : type.hashCode) + - (label == null ? 0 : label.hashCode) + - (dateCreation == null ? 0 : dateCreation.hashCode) + - (data == null ? 0 : data.hashCode); - - @override - String toString() => 'ResourceDTO[id=$id, type=$type, label=$label, dateCreation=$dateCreation, data=$data]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (type != null) { - json[r'type'] = type; - } - if (label != null) { - json[r'label'] = label; - } - if (dateCreation != null) { - json[r'dateCreation'] = dateCreation.toUtc().toIso8601String(); - } - if (data != null) { - json[r'data'] = data; - } - return json; - } - - /// Returns a new [ResourceDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ResourceDTO fromJson(Map json) => json == null - ? null - : ResourceDTO( - id: json[r'id'], - type: ResourceType.fromJson(json[r'type']), - label: json[r'label'], - dateCreation: json[r'dateCreation'] == null - ? null - : DateTime.parse(json[r'dateCreation']), - data: json[r'data'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => ResourceDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = ResourceDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of ResourceDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = ResourceDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/resource_type.dart b/manager_api_old/lib/model/resource_type.dart deleted file mode 100644 index cb501a3..0000000 --- a/manager_api_old/lib/model/resource_type.dart +++ /dev/null @@ -1,82 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class ResourceType { - /// Instantiate a new enum with the provided [value]. - const ResourceType._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const image = ResourceType._(r'Image'); - static const video = ResourceType._(r'Video'); - static const imageUrl = ResourceType._(r'ImageUrl'); - static const videoUrl = ResourceType._(r'VideoUrl'); - - /// List of all possible values in this [enum][ResourceType]. - static const values = [ - image, - video, - imageUrl, - videoUrl, - ]; - - static ResourceType fromJson(dynamic value) => - ResourceTypeTypeTransformer().decode(value); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json - .map((value) => ResourceType.fromJson(value)) - .toList(growable: true == growable); -} - -/// Transformation class that can [encode] an instance of [ResourceType] to String, -/// and [decode] dynamic data back to [ResourceType]. -class ResourceTypeTypeTransformer { - const ResourceTypeTypeTransformer._(); - - factory ResourceTypeTypeTransformer() => _instance ??= ResourceTypeTypeTransformer._(); - - String encode(ResourceType data) => data.value; - - /// Decodes a [dynamic value][data] to a ResourceType. - /// - /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, - /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] - /// cannot be decoded successfully, then an [UnimplementedError] is thrown. - /// - /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, - /// and users are still using an old app with the old code. - ResourceType decode(dynamic data, {bool allowNull}) { - switch (data) { - case r'Image': return ResourceType.image; - case r'Video': return ResourceType.video; - case r'ImageUrl': return ResourceType.imageUrl; - case r'VideoUrl': return ResourceType.videoUrl; - default: - if (allowNull == false) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - return null; - } - - /// Singleton [ResourceTypeTypeTransformer] instance. - static ResourceTypeTypeTransformer _instance; -} diff --git a/manager_api_old/lib/model/response_dto.dart b/manager_api_old/lib/model/response_dto.dart deleted file mode 100644 index 1415493..0000000 --- a/manager_api_old/lib/model/response_dto.dart +++ /dev/null @@ -1,89 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ResponseDTO { - /// Returns a new [ResponseDTO] instance. - ResponseDTO({ - this.label, - this.isGood, - this.order, - }); - - List label; - - bool isGood; - - int order; - - @override - bool operator ==(Object other) => identical(this, other) || other is ResponseDTO && - other.label == label && - other.isGood == isGood && - other.order == order; - - @override - int get hashCode => - (label == null ? 0 : label.hashCode) + - (isGood == null ? 0 : isGood.hashCode) + - (order == null ? 0 : order.hashCode); - - @override - String toString() => 'ResponseDTO[label=$label, isGood=$isGood, order=$order]'; - - Map toJson() { - final json = {}; - if (label != null) { - json[r'label'] = label; - } - if (isGood != null) { - json[r'isGood'] = isGood; - } - if (order != null) { - json[r'order'] = order; - } - return json; - } - - /// Returns a new [ResponseDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static ResponseDTO fromJson(Map json) => json == null - ? null - : ResponseDTO( - label: TranslationDTO.listFromJson(json[r'label']), - isGood: json[r'isGood'], - order: json[r'order'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => ResponseDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = ResponseDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of ResponseDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = ResponseDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/section_dto.dart b/manager_api_old/lib/model/section_dto.dart deleted file mode 100644 index 7d29c5e..0000000 --- a/manager_api_old/lib/model/section_dto.dart +++ /dev/null @@ -1,181 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionDTO { - /// Returns a new [SectionDTO] instance. - SectionDTO({ - this.id, - this.label, - this.title, - this.description, - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.data, - this.dateCreation, - this.order, - }); - - String id; - - String label; - - List title; - - List description; - - String imageId; - - String imageSource; - - String configurationId; - - bool isSubSection; - - String parentId; - - SectionType type; - - String data; - - DateTime dateCreation; - - int order; - - @override - bool operator ==(Object other) => identical(this, other) || other is SectionDTO && - other.id == id && - other.label == label && - other.title == title && - other.description == description && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.data == data && - other.dateCreation == dateCreation && - other.order == order; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (label == null ? 0 : label.hashCode) + - (title == null ? 0 : title.hashCode) + - (description == null ? 0 : description.hashCode) + - (imageId == null ? 0 : imageId.hashCode) + - (imageSource == null ? 0 : imageSource.hashCode) + - (configurationId == null ? 0 : configurationId.hashCode) + - (isSubSection == null ? 0 : isSubSection.hashCode) + - (parentId == null ? 0 : parentId.hashCode) + - (type == null ? 0 : type.hashCode) + - (data == null ? 0 : data.hashCode) + - (dateCreation == null ? 0 : dateCreation.hashCode) + - (order == null ? 0 : order.hashCode); - - @override - String toString() => 'SectionDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, data=$data, dateCreation=$dateCreation, order=$order]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (label != null) { - json[r'label'] = label; - } - if (title != null) { - json[r'title'] = title; - } - if (description != null) { - json[r'description'] = description; - } - if (imageId != null) { - json[r'imageId'] = imageId; - } - if (imageSource != null) { - json[r'imageSource'] = imageSource; - } - if (configurationId != null) { - json[r'configurationId'] = configurationId; - } - if (isSubSection != null) { - json[r'isSubSection'] = isSubSection; - } - if (parentId != null) { - json[r'parentId'] = parentId; - } - if (type != null) { - json[r'type'] = type; - } - if (data != null) { - json[r'data'] = data; - } - if (dateCreation != null) { - json[r'dateCreation'] = dateCreation.toUtc().toIso8601String(); - } - if (order != null) { - json[r'order'] = order; - } - return json; - } - - /// Returns a new [SectionDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static SectionDTO fromJson(Map json) => json == null - ? null - : SectionDTO( - id: json[r'id'], - label: json[r'label'], - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: json[r'imageId'], - imageSource: json[r'imageSource'], - configurationId: json[r'configurationId'], - isSubSection: json[r'isSubSection'], - parentId: json[r'parentId'], - type: SectionType.fromJson(json[r'type']), - data: json[r'data'], - dateCreation: json[r'dateCreation'] == null - ? null - : DateTime.parse(json[r'dateCreation']), - order: json[r'order'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => SectionDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = SectionDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of SectionDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = SectionDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/section_type.dart b/manager_api_old/lib/model/section_type.dart deleted file mode 100644 index 4d6cbc2..0000000 --- a/manager_api_old/lib/model/section_type.dart +++ /dev/null @@ -1,88 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class SectionType { - /// Instantiate a new enum with the provided [value]. - const SectionType._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const map = SectionType._(r'Map'); - static const slider = SectionType._(r'Slider'); - static const video = SectionType._(r'Video'); - static const web = SectionType._(r'Web'); - static const menu = SectionType._(r'Menu'); - static const quizz = SectionType._(r'Quizz'); - - /// List of all possible values in this [enum][SectionType]. - static const values = [ - map, - slider, - video, - web, - menu, - quizz, - ]; - - static SectionType fromJson(dynamic value) => - SectionTypeTypeTransformer().decode(value); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json - .map((value) => SectionType.fromJson(value)) - .toList(growable: true == growable); -} - -/// Transformation class that can [encode] an instance of [SectionType] to String, -/// and [decode] dynamic data back to [SectionType]. -class SectionTypeTypeTransformer { - const SectionTypeTypeTransformer._(); - - factory SectionTypeTypeTransformer() => _instance ??= SectionTypeTypeTransformer._(); - - String encode(SectionType data) => data.value; - - /// Decodes a [dynamic value][data] to a SectionType. - /// - /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, - /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] - /// cannot be decoded successfully, then an [UnimplementedError] is thrown. - /// - /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, - /// and users are still using an old app with the old code. - SectionType decode(dynamic data, {bool allowNull}) { - switch (data) { - case r'Map': return SectionType.map; - case r'Slider': return SectionType.slider; - case r'Video': return SectionType.video; - case r'Web': return SectionType.web; - case r'Menu': return SectionType.menu; - case r'Quizz': return SectionType.quizz; - default: - if (allowNull == false) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - return null; - } - - /// Singleton [SectionTypeTypeTransformer] instance. - static SectionTypeTypeTransformer _instance; -} diff --git a/manager_api_old/lib/model/slider_dto.dart b/manager_api_old/lib/model/slider_dto.dart deleted file mode 100644 index fd714c7..0000000 --- a/manager_api_old/lib/model/slider_dto.dart +++ /dev/null @@ -1,71 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SliderDTO { - /// Returns a new [SliderDTO] instance. - SliderDTO({ - this.images, - }); - - List images; - - @override - bool operator ==(Object other) => identical(this, other) || other is SliderDTO && - other.images == images; - - @override - int get hashCode => - (images == null ? 0 : images.hashCode); - - @override - String toString() => 'SliderDTO[images=$images]'; - - Map toJson() { - final json = {}; - if (images != null) { - json[r'images'] = images; - } - return json; - } - - /// Returns a new [SliderDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static SliderDTO fromJson(Map json) => json == null - ? null - : SliderDTO( - images: ImageDTO.listFromJson(json[r'images']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => SliderDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = SliderDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of SliderDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = SliderDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/token_dto.dart b/manager_api_old/lib/model/token_dto.dart deleted file mode 100644 index 5ef4e57..0000000 --- a/manager_api_old/lib/model/token_dto.dart +++ /dev/null @@ -1,118 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class TokenDTO { - /// Returns a new [TokenDTO] instance. - TokenDTO({ - this.accessToken, - this.refreshToken, - this.scope, - this.tokenType, - this.expiresIn, - this.expiration, - }); - - String accessToken; - - String refreshToken; - - String scope; - - String tokenType; - - int expiresIn; - - DateTime expiration; - - @override - bool operator ==(Object other) => identical(this, other) || other is TokenDTO && - other.accessToken == accessToken && - other.refreshToken == refreshToken && - other.scope == scope && - other.tokenType == tokenType && - other.expiresIn == expiresIn && - other.expiration == expiration; - - @override - int get hashCode => - (accessToken == null ? 0 : accessToken.hashCode) + - (refreshToken == null ? 0 : refreshToken.hashCode) + - (scope == null ? 0 : scope.hashCode) + - (tokenType == null ? 0 : tokenType.hashCode) + - (expiresIn == null ? 0 : expiresIn.hashCode) + - (expiration == null ? 0 : expiration.hashCode); - - @override - String toString() => 'TokenDTO[accessToken=$accessToken, refreshToken=$refreshToken, scope=$scope, tokenType=$tokenType, expiresIn=$expiresIn, expiration=$expiration]'; - - Map toJson() { - final json = {}; - if (accessToken != null) { - json[r'access_token'] = accessToken; - } - if (refreshToken != null) { - json[r'refresh_token'] = refreshToken; - } - if (scope != null) { - json[r'scope'] = scope; - } - if (tokenType != null) { - json[r'token_type'] = tokenType; - } - if (expiresIn != null) { - json[r'expires_in'] = expiresIn; - } - if (expiration != null) { - json[r'expiration'] = expiration.toUtc().toIso8601String(); - } - return json; - } - - /// Returns a new [TokenDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static TokenDTO fromJson(Map json) => json == null - ? null - : TokenDTO( - accessToken: json[r'access_token'], - refreshToken: json[r'refresh_token'], - scope: json[r'scope'], - tokenType: json[r'token_type'], - expiresIn: json[r'expires_in'], - expiration: json[r'expiration'] == null - ? null - : DateTime.parse(json[r'expiration']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => TokenDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = TokenDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of TokenDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = TokenDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/translation_dto.dart b/manager_api_old/lib/model/translation_dto.dart deleted file mode 100644 index 186d9c1..0000000 --- a/manager_api_old/lib/model/translation_dto.dart +++ /dev/null @@ -1,80 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class TranslationDTO { - /// Returns a new [TranslationDTO] instance. - TranslationDTO({ - this.language, - this.value, - }); - - String language; - - String value; - - @override - bool operator ==(Object other) => identical(this, other) || other is TranslationDTO && - other.language == language && - other.value == value; - - @override - int get hashCode => - (language == null ? 0 : language.hashCode) + - (value == null ? 0 : value.hashCode); - - @override - String toString() => 'TranslationDTO[language=$language, value=$value]'; - - Map toJson() { - final json = {}; - if (language != null) { - json[r'language'] = language; - } - if (value != null) { - json[r'value'] = value; - } - return json; - } - - /// Returns a new [TranslationDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static TranslationDTO fromJson(Map json) => json == null - ? null - : TranslationDTO( - language: json[r'language'], - value: json[r'value'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => TranslationDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = TranslationDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of TranslationDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = TranslationDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/user.dart b/manager_api_old/lib/model/user.dart deleted file mode 100644 index 58d6440..0000000 --- a/manager_api_old/lib/model/user.dart +++ /dev/null @@ -1,127 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class User { - /// Returns a new [User] instance. - User({ - this.id, - this.email, - this.password, - this.firstName, - this.lastName, - this.token, - this.dateCreation, - }); - - String id; - - String email; - - String password; - - String firstName; - - String lastName; - - String token; - - DateTime dateCreation; - - @override - bool operator ==(Object other) => identical(this, other) || other is User && - other.id == id && - other.email == email && - other.password == password && - other.firstName == firstName && - other.lastName == lastName && - other.token == token && - other.dateCreation == dateCreation; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (email == null ? 0 : email.hashCode) + - (password == null ? 0 : password.hashCode) + - (firstName == null ? 0 : firstName.hashCode) + - (lastName == null ? 0 : lastName.hashCode) + - (token == null ? 0 : token.hashCode) + - (dateCreation == null ? 0 : dateCreation.hashCode); - - @override - String toString() => 'User[id=$id, email=$email, password=$password, firstName=$firstName, lastName=$lastName, token=$token, dateCreation=$dateCreation]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (email != null) { - json[r'email'] = email; - } - if (password != null) { - json[r'password'] = password; - } - if (firstName != null) { - json[r'firstName'] = firstName; - } - if (lastName != null) { - json[r'lastName'] = lastName; - } - if (token != null) { - json[r'token'] = token; - } - if (dateCreation != null) { - json[r'dateCreation'] = dateCreation.toUtc().toIso8601String(); - } - return json; - } - - /// Returns a new [User] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static User fromJson(Map json) => json == null - ? null - : User( - id: json[r'id'], - email: json[r'email'], - password: json[r'password'], - firstName: json[r'firstName'], - lastName: json[r'lastName'], - token: json[r'token'], - dateCreation: json[r'dateCreation'] == null - ? null - : DateTime.parse(json[r'dateCreation']), - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => User.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = User.fromJson(v)); - } - return map; - } - - // maps a json object with a list of User-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = User.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/user_detail_dto.dart b/manager_api_old/lib/model/user_detail_dto.dart deleted file mode 100644 index 0b67418..0000000 --- a/manager_api_old/lib/model/user_detail_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class UserDetailDTO { - /// Returns a new [UserDetailDTO] instance. - UserDetailDTO({ - this.id, - this.email, - this.firstName, - this.lastName, - }); - - String id; - - String email; - - String firstName; - - String lastName; - - @override - bool operator ==(Object other) => identical(this, other) || other is UserDetailDTO && - other.id == id && - other.email == email && - other.firstName == firstName && - other.lastName == lastName; - - @override - int get hashCode => - (id == null ? 0 : id.hashCode) + - (email == null ? 0 : email.hashCode) + - (firstName == null ? 0 : firstName.hashCode) + - (lastName == null ? 0 : lastName.hashCode); - - @override - String toString() => 'UserDetailDTO[id=$id, email=$email, firstName=$firstName, lastName=$lastName]'; - - Map toJson() { - final json = {}; - if (id != null) { - json[r'id'] = id; - } - if (email != null) { - json[r'email'] = email; - } - if (firstName != null) { - json[r'firstName'] = firstName; - } - if (lastName != null) { - json[r'lastName'] = lastName; - } - return json; - } - - /// Returns a new [UserDetailDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static UserDetailDTO fromJson(Map json) => json == null - ? null - : UserDetailDTO( - id: json[r'id'], - email: json[r'email'], - firstName: json[r'firstName'], - lastName: json[r'lastName'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => UserDetailDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = UserDetailDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of UserDetailDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = UserDetailDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/video_dto.dart b/manager_api_old/lib/model/video_dto.dart deleted file mode 100644 index 339d04b..0000000 --- a/manager_api_old/lib/model/video_dto.dart +++ /dev/null @@ -1,71 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class VideoDTO { - /// Returns a new [VideoDTO] instance. - VideoDTO({ - this.source_, - }); - - String source_; - - @override - bool operator ==(Object other) => identical(this, other) || other is VideoDTO && - other.source_ == source_; - - @override - int get hashCode => - (source_ == null ? 0 : source_.hashCode); - - @override - String toString() => 'VideoDTO[source_=$source_]'; - - Map toJson() { - final json = {}; - if (source_ != null) { - json[r'source'] = source_; - } - return json; - } - - /// Returns a new [VideoDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static VideoDTO fromJson(Map json) => json == null - ? null - : VideoDTO( - source_: json[r'source'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => VideoDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = VideoDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of VideoDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = VideoDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/lib/model/web_dto.dart b/manager_api_old/lib/model/web_dto.dart deleted file mode 100644 index 5dc905b..0000000 --- a/manager_api_old/lib/model/web_dto.dart +++ /dev/null @@ -1,71 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class WebDTO { - /// Returns a new [WebDTO] instance. - WebDTO({ - this.source_, - }); - - String source_; - - @override - bool operator ==(Object other) => identical(this, other) || other is WebDTO && - other.source_ == source_; - - @override - int get hashCode => - (source_ == null ? 0 : source_.hashCode); - - @override - String toString() => 'WebDTO[source_=$source_]'; - - Map toJson() { - final json = {}; - if (source_ != null) { - json[r'source'] = source_; - } - return json; - } - - /// Returns a new [WebDTO] instance and imports its values from - /// [json] if it's non-null, null if [json] is null. - static WebDTO fromJson(Map json) => json == null - ? null - : WebDTO( - source_: json[r'source'], - ); - - static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => - json == null || json.isEmpty - ? true == emptyIsNull ? null : [] - : json.map((v) => WebDTO.fromJson(v)).toList(growable: true == growable); - - static Map mapFromJson(Map json) { - final map = {}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) => map[key] = WebDTO.fromJson(v)); - } - return map; - } - - // maps a json object with a list of WebDTO-objects as value to a dart map - static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { - final map = >{}; - if (json != null && json.isNotEmpty) { - json.forEach((String key, dynamic v) { - map[key] = WebDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); - }); - } - return map; - } -} - diff --git a/manager_api_old/openapi-generator-cli-5.1.0.jar b/manager_api_old/openapi-generator-cli-5.1.0.jar deleted file mode 100644 index 693779b..0000000 Binary files a/manager_api_old/openapi-generator-cli-5.1.0.jar and /dev/null differ diff --git a/manager_api_old/pubspec.yaml b/manager_api_old/pubspec.yaml deleted file mode 100644 index 8a6a2bc..0000000 --- a/manager_api_old/pubspec.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# -# AUTO-GENERATED FILE, DO NOT MODIFY! -# - -name: 'managerapi' -version: '1.0.0' -description: 'OpenAPI API client' -authors: - - 'Author ' -homepage: 'homepage' -environment: - sdk: '>=2.0.0 <3.0.0' -dependencies: - http: '>=0.12.0 <0.13.0' - intl: '^0.16.1' - meta: '^1.1.8' - -dev_dependencies: - test: '>=1.3.0 <1.16.0' - diff --git a/manager_api_old/swagger.yaml b/manager_api_old/swagger.yaml deleted file mode 100644 index 2d33fae..0000000 --- a/manager_api_old/swagger.yaml +++ /dev/null @@ -1,1888 +0,0 @@ -x-generator: NSwag v13.10.8.0 (NJsonSchema v10.3.11.0 (Newtonsoft.Json v10.0.0.0)) -openapi: 3.0.0 -info: - title: Manager Service - description: API Manager Service - version: Version Alpha -servers: - - url: http://192.168.31.140 -paths: - /api/Configuration: - get: - tags: - - Configuration - operationId: Configuration_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigurationDTO' - '500': - description: '' - content: - application/json: - schema: - type: string - post: - tags: - - Configuration - operationId: Configuration_Create - requestBody: - x-name: newConfiguration - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - put: - tags: - - Configuration - operationId: Configuration_Update - requestBody: - x-name: updatedConfiguration - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Configuration/{id}: - get: - tags: - - Configuration - operationId: Configuration_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - delete: - tags: - - Configuration - operationId: Configuration_Delete - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Configuration/{id}/export: - get: - tags: - - Configuration - operationId: Configuration_Export - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ExportConfigurationDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Configuration/import: - post: - tags: - - Configuration - operationId: Configuration_Import - requestBody: - x-name: exportConfiguration - content: - application/json: - schema: - $ref: '#/components/schemas/ExportConfigurationDTO' - required: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Device: - get: - tags: - - Device - operationId: Device_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceDTO' - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - post: - tags: - - Device - operationId: Device_Create - requestBody: - x-name: newDevice - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - put: - tags: - - Device - operationId: Device_Update - requestBody: - x-name: updatedDevice - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Device/{id}/detail: - get: - tags: - - Device - operationId: Device_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - /api/Device/mainInfos: - put: - tags: - - Device - operationId: Device_UpdateMainInfos - requestBody: - x-name: deviceIn - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Device/{id}: - delete: - tags: - - Device - operationId: Device_Delete - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Resource: - get: - tags: - - Resource - operationId: Resource_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ResourceDTO' - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - post: - tags: - - Resource - operationId: Resource_Create - requestBody: - x-name: newResource - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - put: - tags: - - Resource - operationId: Resource_Update - requestBody: - x-name: updatedResource - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Resource/{id}/detail: - get: - tags: - - Resource - operationId: Resource_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - /api/Resource/{id}: - get: - tags: - - Resource - operationId: Resource_Show - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/octet-stream: - schema: - type: string - format: binary - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - delete: - tags: - - Resource - operationId: Resource_Delete - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Resource/upload: - post: - tags: - - Resource - operationId: Resource_Upload - requestBody: - content: - multipart/form-data: - schema: - properties: - label: - type: string - nullable: true - type: - type: string - nullable: true - responses: - '200': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section: - get: - tags: - - Section - operationId: Section_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/SectionDTO' - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - post: - tags: - - Section - operationId: Section_Create - requestBody: - x-name: newSection - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - put: - tags: - - Section - operationId: Section_Update - requestBody: - x-name: updatedSection - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/configuration/{id}: - get: - tags: - - Section - operationId: Section_GetFromConfiguration - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/SectionDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - delete: - tags: - - Section - operationId: Section_DeleteAllForConfiguration - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/{id}/subsections: - get: - tags: - - Section - operationId: Section_GetAllSectionSubSections - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: {} - '400': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/{id}: - get: - tags: - - Section - operationId: Section_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - delete: - tags: - - Section - operationId: Section_Delete - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/order: - put: - tags: - - Section - operationId: Section_UpdateOrder - requestBody: - x-name: updatedSectionsOrder - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/SectionDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/MapDTO: - get: - tags: - - Section - operationId: Section_GetMapDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/MapDTO' - security: - - bearer: [] - /api/Section/SliderDTO: - get: - tags: - - Section - operationId: Section_GetSliderDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/SliderDTO' - security: - - bearer: [] - /api/Section/VideoDTO: - get: - tags: - - Section - operationId: Section_GetVideoDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/VideoDTO' - security: - - bearer: [] - /api/Section/WebDTO: - get: - tags: - - Section - operationId: Section_GetWebDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/WebDTO' - security: - - bearer: [] - /api/Section/MenuDTO: - get: - tags: - - Section - operationId: Section_GetMenuDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/MenuDTO' - security: - - bearer: [] - /api/Section/PlayerMessageDTO: - get: - tags: - - Section - operationId: Section_PlayerMessageDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/PlayerMessageDTO' - security: - - bearer: [] - /api/Section/QuizzDTO: - get: - tags: - - Section - operationId: Section_GetQuizzDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/QuizzDTO' - security: - - bearer: [] - /api/User: - get: - tags: - - User - operationId: User_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/User' - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - post: - tags: - - User - operationId: User_CreateUser - requestBody: - x-name: newUser - content: - application/json: - schema: - $ref: '#/components/schemas/User' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UserDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - put: - tags: - - User - operationId: User_UpdateUser - requestBody: - x-name: updatedUser - content: - application/json: - schema: - $ref: '#/components/schemas/User' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UserDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/User/{id}: - get: - tags: - - User - operationId: User_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UserDetailDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - delete: - tags: - - User - operationId: User_DeleteUser - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Authentication/Token: - post: - tags: - - Authentication - operationId: Authentication_AuthenticateWithForm - requestBody: - content: - multipart/form-data: - schema: - properties: - grant_type: - type: string - nullable: true - username: - type: string - nullable: true - password: - type: string - nullable: true - client_id: - type: string - nullable: true - client_secret: - type: string - nullable: true - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/TokenDTO' - '401': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - /api/Authentication/Authenticate: - post: - tags: - - Authentication - operationId: Authentication_AuthenticateWithJson - requestBody: - x-name: login - content: - application/json: - schema: - $ref: '#/components/schemas/LoginDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/TokenDTO' - '401': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string -components: - schemas: - ConfigurationDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - label: - type: string - nullable: true - primaryColor: - type: string - nullable: true - secondaryColor: - type: string - nullable: true - languages: - type: array - nullable: true - items: - type: string - dateCreation: - type: string - format: date-time - ExportConfigurationDTO: - allOf: - - $ref: '#/components/schemas/ConfigurationDTO' - - type: object - additionalProperties: false - properties: - sections: - type: array - nullable: true - items: - $ref: '#/components/schemas/SectionDTO' - resources: - type: array - nullable: true - items: - $ref: '#/components/schemas/ResourceDTO' - SectionDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - label: - type: string - nullable: true - title: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - description: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - imageId: - type: string - nullable: true - imageSource: - type: string - nullable: true - configurationId: - type: string - nullable: true - isSubSection: - type: boolean - parentId: - type: string - nullable: true - type: - $ref: '#/components/schemas/SectionType' - data: - type: string - nullable: true - dateCreation: - type: string - format: date-time - order: - type: integer - format: int32 - TranslationDTO: - type: object - additionalProperties: false - properties: - language: - type: string - nullable: true - value: - type: string - nullable: true - SectionType: - type: string - description: '' - x-enumNames: - - Map - - Slider - - Video - - Web - - Menu - - Quizz - enum: - - Map - - Slider - - Video - - Web - - Menu - - Quizz - ResourceDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - type: - $ref: '#/components/schemas/ResourceType' - label: - type: string - nullable: true - dateCreation: - type: string - format: date-time - data: - type: string - nullable: true - ResourceType: - type: string - description: '' - x-enumNames: - - Image - - Video - - ImageUrl - - VideoUrl - enum: - - Image - - Video - - ImageUrl - - VideoUrl - DeviceDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - identifier: - type: string - nullable: true - name: - type: string - nullable: true - ipAddressWLAN: - type: string - nullable: true - ipAddressETH: - type: string - nullable: true - configurationId: - type: string - nullable: true - configuration: - type: string - nullable: true - connected: - type: boolean - dateCreation: - type: string - format: date-time - dateUpdate: - type: string - format: date-time - DeviceDetailDTO: - allOf: - - $ref: '#/components/schemas/DeviceDTO' - - type: object - additionalProperties: false - properties: - connectionLevel: - type: string - nullable: true - lastConnectionLevel: - type: string - format: date-time - batteryLevel: - type: string - nullable: true - lastBatteryLevel: - type: string - format: date-time - MapDTO: - type: object - additionalProperties: false - properties: - zoom: - type: integer - format: int32 - mapType: - $ref: '#/components/schemas/MapTypeApp' - points: - type: array - nullable: true - items: - $ref: '#/components/schemas/GeoPointDTO' - iconResourceId: - type: string - nullable: true - iconSource: - type: string - nullable: true - MapTypeApp: - type: string - description: '' - x-enumNames: - - none - - normal - - satellite - - terrain - - hybrid - enum: - - none - - normal - - satellite - - terrain - - hybrid - GeoPointDTO: - type: object - additionalProperties: false - properties: - id: - type: integer - format: int32 - title: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - description: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - images: - type: array - nullable: true - items: - $ref: '#/components/schemas/ImageGeoPoint' - latitude: - type: string - nullable: true - longitude: - type: string - nullable: true - ImageGeoPoint: - type: object - additionalProperties: false - properties: - imageResourceId: - type: string - nullable: true - imageSource: - type: string - nullable: true - SliderDTO: - type: object - additionalProperties: false - properties: - images: - type: array - nullable: true - items: - $ref: '#/components/schemas/ImageDTO' - ImageDTO: - type: object - additionalProperties: false - properties: - title: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - description: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - resourceId: - type: string - nullable: true - source: - type: string - nullable: true - order: - type: integer - format: int32 - VideoDTO: - type: object - additionalProperties: false - properties: - source: - type: string - nullable: true - WebDTO: - type: object - additionalProperties: false - properties: - source: - type: string - nullable: true - MenuDTO: - type: object - additionalProperties: false - properties: - sections: - type: array - nullable: true - items: - $ref: '#/components/schemas/SectionDTO' - PlayerMessageDTO: - type: object - additionalProperties: false - properties: - configChanged: - type: boolean - isDeleted: - type: boolean - QuizzDTO: - type: object - additionalProperties: false - properties: - questions: - type: array - nullable: true - items: - $ref: '#/components/schemas/QuestionDTO' - bad_level: - nullable: true - oneOf: - - $ref: '#/components/schemas/LevelDTO' - medium_level: - nullable: true - oneOf: - - $ref: '#/components/schemas/LevelDTO' - good_level: - nullable: true - oneOf: - - $ref: '#/components/schemas/LevelDTO' - great_level: - nullable: true - oneOf: - - $ref: '#/components/schemas/LevelDTO' - QuestionDTO: - type: object - additionalProperties: false - properties: - label: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - responses: - type: array - nullable: true - items: - $ref: '#/components/schemas/ResponseDTO' - resourceId: - type: string - nullable: true - source: - type: string - nullable: true - order: - type: integer - format: int32 - ResponseDTO: - type: object - additionalProperties: false - properties: - label: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - isGood: - type: boolean - order: - type: integer - format: int32 - LevelDTO: - type: object - additionalProperties: false - properties: - label: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - resourceId: - type: string - nullable: true - source: - type: string - nullable: true - User: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - email: - type: string - nullable: true - password: - type: string - nullable: true - firstName: - type: string - nullable: true - lastName: - type: string - nullable: true - token: - type: string - nullable: true - dateCreation: - type: string - format: date-time - UserDetailDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - email: - type: string - nullable: true - firstName: - type: string - nullable: true - lastName: - type: string - nullable: true - TokenDTO: - type: object - additionalProperties: false - properties: - access_token: - type: string - nullable: true - refresh_token: - type: string - nullable: true - scope: - type: string - nullable: true - token_type: - type: string - nullable: true - expires_in: - type: integer - format: int32 - expiration: - type: string - format: date-time - LoginDTO: - type: object - additionalProperties: false - properties: - email: - type: string - nullable: true - password: - type: string - nullable: true - securitySchemes: - bearer: - type: oauth2 - description: Manager Authentication - flows: - password: - authorizationUrl: /authentication/Token - tokenUrl: /api/authentication/Token - scopes: - Manager-api: Manager WebAPI -security: - - bearer: [] -tags: - - name: Configuration - description: Configuration management - - name: Device - description: Device management - - name: Resource - description: Resource management - - name: Section - description: Section management - - name: User - description: User management - - name: Authentication - description: Authentication management diff --git a/manager_api_old/swagger.yaml.bak b/manager_api_old/swagger.yaml.bak deleted file mode 100644 index e6e57ee..0000000 --- a/manager_api_old/swagger.yaml.bak +++ /dev/null @@ -1,1708 +0,0 @@ -x-generator: NSwag v13.10.8.0 (NJsonSchema v10.3.11.0 (Newtonsoft.Json v10.0.0.0)) -openapi: 3.0.0 -info: - title: Manager Service - description: API Manager Service - version: Version Alpha -servers: - - url: http://192.168.31.96 -paths: - /api/Configuration: - get: - tags: - - Configuration - operationId: Configuration_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigurationDTO' - '500': - description: '' - content: - application/json: - schema: - type: string - post: - tags: - - Configuration - operationId: Configuration_Create - requestBody: - x-name: newConfiguration - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - put: - tags: - - Configuration - operationId: Configuration_Update - requestBody: - x-name: updatedConfiguration - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Configuration/{id}: - get: - tags: - - Configuration - operationId: Configuration_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - delete: - tags: - - Configuration - operationId: Configuration_Delete - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Device: - get: - tags: - - Device - operationId: Device_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceDTO' - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - post: - tags: - - Device - operationId: Device_Create - requestBody: - x-name: newDevice - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - put: - tags: - - Device - operationId: Device_Update - requestBody: - x-name: updatedDevice - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Device/{id}/detail: - get: - tags: - - Device - operationId: Device_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDetailDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - /api/Device/mainInfos: - put: - tags: - - Device - operationId: Device_UpdateMainInfos - requestBody: - x-name: deviceIn - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Device/{id}: - delete: - tags: - - Device - operationId: Device_Delete - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Resource: - get: - tags: - - Resource - operationId: Resource_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ResourceDTO' - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - post: - tags: - - Resource - operationId: Resource_Create - requestBody: - x-name: newResource - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDetailDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - put: - tags: - - Resource - operationId: Resource_Update - requestBody: - x-name: updatedResource - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDetailDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Resource/{id}/detail: - get: - tags: - - Resource - operationId: Resource_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ResourceDetailDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - /api/Resource/{id}: - get: - tags: - - Resource - operationId: Resource_Show - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/octet-stream: - schema: - type: string - format: binary - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - delete: - tags: - - Resource - operationId: Resource_Delete - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Resource/upload: - post: - tags: - - Resource - operationId: Resource_Upload - requestBody: - content: - multipart/form-data: - schema: - properties: - label: - type: string - nullable: true - type: - type: string - nullable: true - responses: - '200': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section: - get: - tags: - - Section - operationId: Section_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/SectionDTO' - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - post: - tags: - - Section - operationId: Section_Create - requestBody: - x-name: newSection - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - put: - tags: - - Section - operationId: Section_Update - requestBody: - x-name: updatedSection - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/configuration/{id}: - get: - tags: - - Section - operationId: Section_GetFromConfiguration - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/SectionDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - delete: - tags: - - Section - operationId: Section_DeleteAllForConfiguration - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/{id}/subsections: - get: - tags: - - Section - operationId: Section_GetAllSectionSubSections - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: {} - '400': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/{id}: - get: - tags: - - Section - operationId: Section_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/SectionDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - delete: - tags: - - Section - operationId: Section_Delete - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/order: - put: - tags: - - Section - operationId: Section_UpdateOrder - requestBody: - x-name: updatedSectionsOrder - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/SectionDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Section/MapDTO: - get: - tags: - - Section - operationId: Section_GetMapDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/MapDTO' - security: - - bearer: [] - /api/Section/SliderDTO: - get: - tags: - - Section - operationId: Section_GetSliderDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/SliderDTO' - security: - - bearer: [] - /api/Section/VideoDTO: - get: - tags: - - Section - operationId: Section_GetVideoDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/VideoDTO' - security: - - bearer: [] - /api/Section/WebDTO: - get: - tags: - - Section - operationId: Section_GetWebDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/WebDTO' - security: - - bearer: [] - /api/Section/MenuDTO: - get: - tags: - - Section - operationId: Section_GetMenuDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/MenuDTO' - security: - - bearer: [] - /api/Section/PlayerMessageDTO: - get: - tags: - - Section - operationId: Section_PlayerMessageDTO - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/PlayerMessageDTO' - security: - - bearer: [] - /api/User: - get: - tags: - - User - operationId: User_Get - responses: - '200': - description: '' - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/User' - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - post: - tags: - - User - operationId: User_CreateUser - requestBody: - x-name: newUser - content: - application/json: - schema: - $ref: '#/components/schemas/User' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UserDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '409': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - put: - tags: - - User - operationId: User_UpdateUser - requestBody: - x-name: updatedUser - content: - application/json: - schema: - $ref: '#/components/schemas/User' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UserDetailDTO' - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/User/{id}: - get: - tags: - - User - operationId: User_GetDetail - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/UserDetailDTO' - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - delete: - tags: - - User - operationId: User_DeleteUser - parameters: - - name: id - in: path - required: true - schema: - type: string - nullable: true - x-position: 1 - responses: - '202': - description: '' - content: - application/json: - schema: - type: string - '400': - description: '' - content: - application/json: - schema: - type: string - '404': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - security: - - bearer: [] - /api/Authentication/Token: - post: - tags: - - Authentication - operationId: Authentication_AuthenticateWithForm - requestBody: - content: - multipart/form-data: - schema: - properties: - grant_type: - type: string - nullable: true - username: - type: string - nullable: true - password: - type: string - nullable: true - client_id: - type: string - nullable: true - client_secret: - type: string - nullable: true - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/TokenDTO' - '401': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string - /api/Authentication/Authenticate: - post: - tags: - - Authentication - operationId: Authentication_AuthenticateWithJson - requestBody: - x-name: login - content: - application/json: - schema: - $ref: '#/components/schemas/LoginDTO' - required: true - x-position: 1 - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/TokenDTO' - '401': - description: '' - content: - application/json: - schema: - type: string - '500': - description: '' - content: - application/json: - schema: - type: string -components: - schemas: - ConfigurationDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - label: - type: string - nullable: true - primaryColor: - type: string - nullable: true - secondaryColor: - type: string - nullable: true - languages: - type: array - nullable: true - items: - type: string - dateCreation: - type: string - format: date-time - DeviceDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - identifier: - type: string - nullable: true - name: - type: string - nullable: true - ipAddressWLAN: - type: string - nullable: true - ipAddressETH: - type: string - nullable: true - configurationId: - type: string - nullable: true - configuration: - type: string - nullable: true - connected: - type: boolean - dateCreation: - type: string - format: date-time - dateUpdate: - type: string - format: date-time - DeviceDetailDTO: - allOf: - - $ref: '#/components/schemas/DeviceDTO' - - type: object - additionalProperties: false - properties: - connectionLevel: - type: string - nullable: true - lastConnectionLevel: - type: string - format: date-time - batteryLevel: - type: string - nullable: true - lastBatteryLevel: - type: string - format: date-time - ResourceDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - type: - $ref: '#/components/schemas/ResourceType' - label: - type: string - nullable: true - data: - type: string - nullable: true - ResourceType: - type: string - description: '' - x-enumNames: - - Image - - Video - - ImageUrl - - VideoUrl - enum: - - Image - - Video - - ImageUrl - - VideoUrl - ResourceDetailDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - type: - $ref: '#/components/schemas/ResourceType' - label: - type: string - nullable: true - dateCreation: - type: string - format: date-time - data: - type: string - nullable: true - SectionDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - label: - type: string - nullable: true - title: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - description: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - imageId: - type: string - nullable: true - imageSource: - type: string - nullable: true - configurationId: - type: string - nullable: true - isSubSection: - type: boolean - parentId: - type: string - nullable: true - type: - $ref: '#/components/schemas/SectionType' - data: - type: string - nullable: true - dateCreation: - type: string - format: date-time - order: - type: integer - format: int32 - TranslationDTO: - type: object - additionalProperties: false - properties: - language: - type: string - nullable: true - value: - type: string - nullable: true - SectionType: - type: string - description: '' - x-enumNames: - - Map - - Slider - - Video - - Web - - Menu - enum: - - Map - - Slider - - Video - - Web - - Menu - MapDTO: - type: object - additionalProperties: false - properties: - zoom: - type: integer - format: int32 - mapType: - $ref: '#/components/schemas/MapTypeApp' - points: - type: array - nullable: true - items: - $ref: '#/components/schemas/GeoPointDTO' - iconResourceId: - type: string - nullable: true - iconSource: - type: string - nullable: true - MapTypeApp: - type: string - description: '' - x-enumNames: - - none - - normal - - satellite - - terrain - - hybrid - enum: - - none - - normal - - satellite - - terrain - - hybrid - GeoPointDTO: - type: object - additionalProperties: false - properties: - id: - type: integer - format: int32 - title: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - description: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - images: - type: array - nullable: true - items: - $ref: '#/components/schemas/ImageGeoPoint' - latitude: - type: string - nullable: true - longitude: - type: string - nullable: true - ImageGeoPoint: - type: object - additionalProperties: false - properties: - imageResourceId: - type: string - nullable: true - imageSource: - type: string - nullable: true - SliderDTO: - type: object - additionalProperties: false - properties: - images: - type: array - nullable: true - items: - $ref: '#/components/schemas/ImageDTO' - ImageDTO: - type: object - additionalProperties: false - properties: - title: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - description: - type: array - nullable: true - items: - $ref: '#/components/schemas/TranslationDTO' - resourceId: - type: string - nullable: true - source: - type: string - nullable: true - order: - type: integer - format: int32 - VideoDTO: - type: object - additionalProperties: false - properties: - source: - type: string - nullable: true - WebDTO: - type: object - additionalProperties: false - properties: - source: - type: string - nullable: true - MenuDTO: - type: object - additionalProperties: false - properties: - sections: - type: array - nullable: true - items: - $ref: '#/components/schemas/SectionDTO' - PlayerMessageDTO: - type: object - additionalProperties: false - properties: - configChanged: - type: boolean - isDeleted: - type: boolean - User: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - email: - type: string - nullable: true - password: - type: string - nullable: true - firstName: - type: string - nullable: true - lastName: - type: string - nullable: true - token: - type: string - nullable: true - dateCreation: - type: string - format: date-time - UserDetailDTO: - type: object - additionalProperties: false - properties: - id: - type: string - nullable: true - email: - type: string - nullable: true - firstName: - type: string - nullable: true - lastName: - type: string - nullable: true - TokenDTO: - type: object - additionalProperties: false - properties: - access_token: - type: string - nullable: true - refresh_token: - type: string - nullable: true - scope: - type: string - nullable: true - token_type: - type: string - nullable: true - expires_in: - type: integer - format: int32 - expiration: - type: string - format: date-time - LoginDTO: - type: object - additionalProperties: false - properties: - email: - type: string - nullable: true - password: - type: string - nullable: true - securitySchemes: - bearer: - type: oauth2 - description: Manager Authentication - flows: - password: - authorizationUrl: /authentication/Token - tokenUrl: /api/authentication/Token - scopes: - Manager-api: Manager WebAPI -security: - - bearer: [] -tags: - - name: Configuration - description: Configuration management - - name: Device - description: Device management - - name: Resource - description: Resource management - - name: Section - description: Section management - - name: User - description: User management - - name: Authentication - description: Authentication management diff --git a/manager_api_old/test/authentication_api_test.dart b/manager_api_old/test/authentication_api_test.dart deleted file mode 100644 index 36facc7..0000000 --- a/manager_api_old/test/authentication_api_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for AuthenticationApi -void main() { - final instance = AuthenticationApi(); - - group('tests for AuthenticationApi', () { - //Future authenticationAuthenticateWithForm({ String grantType, String username, String password, String clientId, String clientSecret }) async - test('test authenticationAuthenticateWithForm', () async { - // TODO - }); - - //Future authenticationAuthenticateWithJson(LoginDTO loginDTO) async - test('test authenticationAuthenticateWithJson', () async { - // TODO - }); - - }); -} diff --git a/manager_api_old/test/configuration_api_test.dart b/manager_api_old/test/configuration_api_test.dart deleted file mode 100644 index 66671d7..0000000 --- a/manager_api_old/test/configuration_api_test.dart +++ /dev/null @@ -1,45 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for ConfigurationApi -void main() { - final instance = ConfigurationApi(); - - group('tests for ConfigurationApi', () { - //Future configurationCreate(ConfigurationDTO configurationDTO) async - test('test configurationCreate', () async { - // TODO - }); - - //Future configurationDelete(String id) async - test('test configurationDelete', () async { - // TODO - }); - - //Future> configurationGet() async - test('test configurationGet', () async { - // TODO - }); - - //Future configurationGetDetail(String id) async - test('test configurationGetDetail', () async { - // TODO - }); - - //Future configurationUpdate(ConfigurationDTO configurationDTO) async - test('test configurationUpdate', () async { - // TODO - }); - - }); -} diff --git a/manager_api_old/test/configuration_dto_test.dart b/manager_api_old/test/configuration_dto_test.dart deleted file mode 100644 index 083682b..0000000 --- a/manager_api_old/test/configuration_dto_test.dart +++ /dev/null @@ -1,51 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ConfigurationDTO -void main() { - final instance = ConfigurationDTO(); - - group('test ConfigurationDTO', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String label - test('to test the property `label`', () async { - // TODO - }); - - // String primaryColor - test('to test the property `primaryColor`', () async { - // TODO - }); - - // String secondaryColor - test('to test the property `secondaryColor`', () async { - // TODO - }); - - // List languages (default value: const []) - test('to test the property `languages`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/device_api_test.dart b/manager_api_old/test/device_api_test.dart deleted file mode 100644 index d9267a1..0000000 --- a/manager_api_old/test/device_api_test.dart +++ /dev/null @@ -1,50 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for DeviceApi -void main() { - final instance = DeviceApi(); - - group('tests for DeviceApi', () { - //Future deviceCreate(DeviceDetailDTO deviceDetailDTO) async - test('test deviceCreate', () async { - // TODO - }); - - //Future deviceDelete(String id) async - test('test deviceDelete', () async { - // TODO - }); - - //Future> deviceGet() async - test('test deviceGet', () async { - // TODO - }); - - //Future deviceGetDetail(String id) async - test('test deviceGetDetail', () async { - // TODO - }); - - //Future deviceUpdate(DeviceDetailDTO deviceDetailDTO) async - test('test deviceUpdate', () async { - // TODO - }); - - //Future deviceUpdateMainInfos(DeviceDTO deviceDTO) async - test('test deviceUpdateMainInfos', () async { - // TODO - }); - - }); -} diff --git a/manager_api_old/test/device_detail_dto_all_of_test.dart b/manager_api_old/test/device_detail_dto_all_of_test.dart deleted file mode 100644 index 52e846c..0000000 --- a/manager_api_old/test/device_detail_dto_all_of_test.dart +++ /dev/null @@ -1,41 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for DeviceDetailDTOAllOf -void main() { - final instance = DeviceDetailDTOAllOf(); - - group('test DeviceDetailDTOAllOf', () { - // String connectionLevel - test('to test the property `connectionLevel`', () async { - // TODO - }); - - // DateTime lastConnectionLevel - test('to test the property `lastConnectionLevel`', () async { - // TODO - }); - - // String batteryLevel - test('to test the property `batteryLevel`', () async { - // TODO - }); - - // DateTime lastBatteryLevel - test('to test the property `lastBatteryLevel`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/device_detail_dto_test.dart b/manager_api_old/test/device_detail_dto_test.dart deleted file mode 100644 index 6ad6492..0000000 --- a/manager_api_old/test/device_detail_dto_test.dart +++ /dev/null @@ -1,76 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for DeviceDetailDTO -void main() { - final instance = DeviceDetailDTO(); - - group('test DeviceDetailDTO', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - // String ipAddress - test('to test the property `ipAddress`', () async { - // TODO - }); - - // String configurationId - test('to test the property `configurationId`', () async { - // TODO - }); - - // String configuration - test('to test the property `configuration`', () async { - // TODO - }); - - // bool connected - test('to test the property `connected`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String connectionLevel - test('to test the property `connectionLevel`', () async { - // TODO - }); - - // DateTime lastConnectionLevel - test('to test the property `lastConnectionLevel`', () async { - // TODO - }); - - // String batteryLevel - test('to test the property `batteryLevel`', () async { - // TODO - }); - - // DateTime lastBatteryLevel - test('to test the property `lastBatteryLevel`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/device_dto_test.dart b/manager_api_old/test/device_dto_test.dart deleted file mode 100644 index 6557c52..0000000 --- a/manager_api_old/test/device_dto_test.dart +++ /dev/null @@ -1,56 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for DeviceDTO -void main() { - final instance = DeviceDTO(); - - group('test DeviceDTO', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - // String ipAddress - test('to test the property `ipAddress`', () async { - // TODO - }); - - // String configurationId - test('to test the property `configurationId`', () async { - // TODO - }); - - // String configuration - test('to test the property `configuration`', () async { - // TODO - }); - - // bool connected - test('to test the property `connected`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/export_configuration_dto_all_of_test.dart b/manager_api_old/test/export_configuration_dto_all_of_test.dart deleted file mode 100644 index b497052..0000000 --- a/manager_api_old/test/export_configuration_dto_all_of_test.dart +++ /dev/null @@ -1,31 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ExportConfigurationDTOAllOf -void main() { - final instance = ExportConfigurationDTOAllOf(); - - group('test ExportConfigurationDTOAllOf', () { - // List sections (default value: const []) - test('to test the property `sections`', () async { - // TODO - }); - - // List resources (default value: const []) - test('to test the property `resources`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/export_configuration_dto_test.dart b/manager_api_old/test/export_configuration_dto_test.dart deleted file mode 100644 index adc2fb5..0000000 --- a/manager_api_old/test/export_configuration_dto_test.dart +++ /dev/null @@ -1,61 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ExportConfigurationDTO -void main() { - final instance = ExportConfigurationDTO(); - - group('test ExportConfigurationDTO', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String label - test('to test the property `label`', () async { - // TODO - }); - - // String primaryColor - test('to test the property `primaryColor`', () async { - // TODO - }); - - // String secondaryColor - test('to test the property `secondaryColor`', () async { - // TODO - }); - - // List languages (default value: const []) - test('to test the property `languages`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // List sections (default value: const []) - test('to test the property `sections`', () async { - // TODO - }); - - // List resources (default value: const []) - test('to test the property `resources`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/geo_point_dto_test.dart b/manager_api_old/test/geo_point_dto_test.dart deleted file mode 100644 index e274af9..0000000 --- a/manager_api_old/test/geo_point_dto_test.dart +++ /dev/null @@ -1,51 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for GeoPointDTO -void main() { - final instance = GeoPointDTO(); - - group('test GeoPointDTO', () { - // int id - test('to test the property `id`', () async { - // TODO - }); - - // List title (default value: const []) - test('to test the property `title`', () async { - // TODO - }); - - // List description (default value: const []) - test('to test the property `description`', () async { - // TODO - }); - - // List images (default value: const []) - test('to test the property `images`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - - // String longitude - test('to test the property `longitude`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/image_dto_test.dart b/manager_api_old/test/image_dto_test.dart deleted file mode 100644 index 3d051c5..0000000 --- a/manager_api_old/test/image_dto_test.dart +++ /dev/null @@ -1,46 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ImageDTO -void main() { - final instance = ImageDTO(); - - group('test ImageDTO', () { - // List title (default value: const []) - test('to test the property `title`', () async { - // TODO - }); - - // List description (default value: const []) - test('to test the property `description`', () async { - // TODO - }); - - // String resourceId - test('to test the property `resourceId`', () async { - // TODO - }); - - // String source_ - test('to test the property `source_`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/image_geo_point_test.dart b/manager_api_old/test/image_geo_point_test.dart deleted file mode 100644 index 527fe9c..0000000 --- a/manager_api_old/test/image_geo_point_test.dart +++ /dev/null @@ -1,31 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ImageGeoPoint -void main() { - final instance = ImageGeoPoint(); - - group('test ImageGeoPoint', () { - // String imageResourceId - test('to test the property `imageResourceId`', () async { - // TODO - }); - - // String imageSource - test('to test the property `imageSource`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/level_dto_test.dart b/manager_api_old/test/level_dto_test.dart deleted file mode 100644 index 9120f3b..0000000 --- a/manager_api_old/test/level_dto_test.dart +++ /dev/null @@ -1,36 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for LevelDTO -void main() { - final instance = LevelDTO(); - - group('test LevelDTO', () { - // List label (default value: const []) - test('to test the property `label`', () async { - // TODO - }); - - // String resourceId - test('to test the property `resourceId`', () async { - // TODO - }); - - // String source_ - test('to test the property `source_`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/login_dto_test.dart b/manager_api_old/test/login_dto_test.dart deleted file mode 100644 index b313772..0000000 --- a/manager_api_old/test/login_dto_test.dart +++ /dev/null @@ -1,31 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for LoginDTO -void main() { - final instance = LoginDTO(); - - group('test LoginDTO', () { - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String password - test('to test the property `password`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/map_dto_test.dart b/manager_api_old/test/map_dto_test.dart deleted file mode 100644 index 5775d96..0000000 --- a/manager_api_old/test/map_dto_test.dart +++ /dev/null @@ -1,46 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTO -void main() { - final instance = MapDTO(); - - group('test MapDTO', () { - // int zoom - test('to test the property `zoom`', () async { - // TODO - }); - - // MapType mapType - test('to test the property `mapType`', () async { - // TODO - }); - - // List points (default value: const []) - test('to test the property `points`', () async { - // TODO - }); - - // String iconResourceId - test('to test the property `iconResourceId`', () async { - // TODO - }); - - // String iconSource - test('to test the property `iconSource`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/map_type_app_test.dart b/manager_api_old/test/map_type_app_test.dart deleted file mode 100644 index 4145313..0000000 --- a/manager_api_old/test/map_type_app_test.dart +++ /dev/null @@ -1,20 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for MapTypeApp -void main() { - - group('test MapTypeApp', () { - - }); - -} diff --git a/manager_api_old/test/map_type_test.dart b/manager_api_old/test/map_type_test.dart deleted file mode 100644 index 45cc587..0000000 --- a/manager_api_old/test/map_type_test.dart +++ /dev/null @@ -1,20 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for MapType -void main() { - - group('test MapType', () { - - }); - -} diff --git a/manager_api_old/test/menu_dto_test.dart b/manager_api_old/test/menu_dto_test.dart deleted file mode 100644 index 9414c07..0000000 --- a/manager_api_old/test/menu_dto_test.dart +++ /dev/null @@ -1,26 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for MenuDTO -void main() { - final instance = MenuDTO(); - - group('test MenuDTO', () { - // List sections (default value: const []) - test('to test the property `sections`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/player_message_dto_test.dart b/manager_api_old/test/player_message_dto_test.dart deleted file mode 100644 index 44cd9f8..0000000 --- a/manager_api_old/test/player_message_dto_test.dart +++ /dev/null @@ -1,26 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for PlayerMessageDTO -void main() { - final instance = PlayerMessageDTO(); - - group('test PlayerMessageDTO', () { - // bool configChanged - test('to test the property `configChanged`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/question_dto_test.dart b/manager_api_old/test/question_dto_test.dart deleted file mode 100644 index e4e2f99..0000000 --- a/manager_api_old/test/question_dto_test.dart +++ /dev/null @@ -1,46 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for QuestionDTO -void main() { - final instance = QuestionDTO(); - - group('test QuestionDTO', () { - // List label (default value: const []) - test('to test the property `label`', () async { - // TODO - }); - - // List responses (default value: const []) - test('to test the property `responses`', () async { - // TODO - }); - - // String resourceId - test('to test the property `resourceId`', () async { - // TODO - }); - - // String source_ - test('to test the property `source_`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/quizz_dto_test.dart b/manager_api_old/test/quizz_dto_test.dart deleted file mode 100644 index e30067d..0000000 --- a/manager_api_old/test/quizz_dto_test.dart +++ /dev/null @@ -1,46 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for QuizzDTO -void main() { - final instance = QuizzDTO(); - - group('test QuizzDTO', () { - // List questions (default value: const []) - test('to test the property `questions`', () async { - // TODO - }); - - // OneOfLevelDTO badLevel - test('to test the property `badLevel`', () async { - // TODO - }); - - // OneOfLevelDTO mediumLevel - test('to test the property `mediumLevel`', () async { - // TODO - }); - - // OneOfLevelDTO goodLevel - test('to test the property `goodLevel`', () async { - // TODO - }); - - // OneOfLevelDTO greatLevel - test('to test the property `greatLevel`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/resource_api_test.dart b/manager_api_old/test/resource_api_test.dart deleted file mode 100644 index eade329..0000000 --- a/manager_api_old/test/resource_api_test.dart +++ /dev/null @@ -1,55 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for ResourceApi -void main() { - final instance = ResourceApi(); - - group('tests for ResourceApi', () { - //Future resourceCreate(ResourceDetailDTO resourceDetailDTO) async - test('test resourceCreate', () async { - // TODO - }); - - //Future resourceDelete(String id) async - test('test resourceDelete', () async { - // TODO - }); - - //Future> resourceGet() async - test('test resourceGet', () async { - // TODO - }); - - //Future resourceGetDetail(String id) async - test('test resourceGetDetail', () async { - // TODO - }); - - //Future resourceShow(String id) async - test('test resourceShow', () async { - // TODO - }); - - //Future resourceUpdate(ResourceDetailDTO resourceDetailDTO) async - test('test resourceUpdate', () async { - // TODO - }); - - //Future resourceUpload({ String label, String type }) async - test('test resourceUpload', () async { - // TODO - }); - - }); -} diff --git a/manager_api_old/test/resource_detail_dto_test.dart b/manager_api_old/test/resource_detail_dto_test.dart deleted file mode 100644 index dab61ef..0000000 --- a/manager_api_old/test/resource_detail_dto_test.dart +++ /dev/null @@ -1,46 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ResourceDetailDTO -void main() { - final instance = ResourceDetailDTO(); - - group('test ResourceDetailDTO', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // ResourceType type - test('to test the property `type`', () async { - // TODO - }); - - // String label - test('to test the property `label`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String data - test('to test the property `data`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/resource_dto_test.dart b/manager_api_old/test/resource_dto_test.dart deleted file mode 100644 index 7001e72..0000000 --- a/manager_api_old/test/resource_dto_test.dart +++ /dev/null @@ -1,41 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ResourceDTO -void main() { - final instance = ResourceDTO(); - - group('test ResourceDTO', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // ResourceType type - test('to test the property `type`', () async { - // TODO - }); - - // String label - test('to test the property `label`', () async { - // TODO - }); - - // String data - test('to test the property `data`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/resource_type_test.dart b/manager_api_old/test/resource_type_test.dart deleted file mode 100644 index d96076b..0000000 --- a/manager_api_old/test/resource_type_test.dart +++ /dev/null @@ -1,20 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ResourceType -void main() { - - group('test ResourceType', () { - - }); - -} diff --git a/manager_api_old/test/response_dto_test.dart b/manager_api_old/test/response_dto_test.dart deleted file mode 100644 index e96de00..0000000 --- a/manager_api_old/test/response_dto_test.dart +++ /dev/null @@ -1,36 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ResponseDTO -void main() { - final instance = ResponseDTO(); - - group('test ResponseDTO', () { - // List label (default value: const []) - test('to test the property `label`', () async { - // TODO - }); - - // bool isGood - test('to test the property `isGood`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/section_api_test.dart b/manager_api_old/test/section_api_test.dart deleted file mode 100644 index e830b11..0000000 --- a/manager_api_old/test/section_api_test.dart +++ /dev/null @@ -1,90 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for SectionApi -void main() { - final instance = SectionApi(); - - group('tests for SectionApi', () { - //Future sectionCreate(SectionDTO sectionDTO) async - test('test sectionCreate', () async { - // TODO - }); - - //Future sectionDelete(String id) async - test('test sectionDelete', () async { - // TODO - }); - - //Future sectionDeleteAllForConfiguration(String id) async - test('test sectionDeleteAllForConfiguration', () async { - // TODO - }); - - //Future> sectionGet() async - test('test sectionGet', () async { - // TODO - }); - - //Future> sectionGetAllSectionSubSections(String id) async - test('test sectionGetAllSectionSubSections', () async { - // TODO - }); - - //Future sectionGetDetail(String id) async - test('test sectionGetDetail', () async { - // TODO - }); - - //Future> sectionGetFromConfiguration(String id) async - test('test sectionGetFromConfiguration', () async { - // TODO - }); - - //Future sectionGetMapDTO() async - test('test sectionGetMapDTO', () async { - // TODO - }); - - //Future sectionGetMenuDTO() async - test('test sectionGetMenuDTO', () async { - // TODO - }); - - //Future sectionGetSliderDTO() async - test('test sectionGetSliderDTO', () async { - // TODO - }); - - //Future sectionGetVideoDTO() async - test('test sectionGetVideoDTO', () async { - // TODO - }); - - //Future sectionGetWebDTO() async - test('test sectionGetWebDTO', () async { - // TODO - }); - - //Future sectionUpdate(SectionDTO sectionDTO) async - test('test sectionUpdate', () async { - // TODO - }); - - //Future sectionUpdateOrder(List sectionDTO) async - test('test sectionUpdateOrder', () async { - // TODO - }); - - }); -} diff --git a/manager_api_old/test/section_dto_test.dart b/manager_api_old/test/section_dto_test.dart deleted file mode 100644 index 1bb51a7..0000000 --- a/manager_api_old/test/section_dto_test.dart +++ /dev/null @@ -1,86 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionDTO -void main() { - final instance = SectionDTO(); - - group('test SectionDTO', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String label - test('to test the property `label`', () async { - // TODO - }); - - // List title (default value: const []) - test('to test the property `title`', () async { - // TODO - }); - - // List description (default value: const []) - test('to test the property `description`', () async { - // TODO - }); - - // String imageId - test('to test the property `imageId`', () async { - // TODO - }); - - // String imageSource - test('to test the property `imageSource`', () async { - // TODO - }); - - // String configurationId - test('to test the property `configurationId`', () async { - // TODO - }); - - // bool isSubSection - test('to test the property `isSubSection`', () async { - // TODO - }); - - // String parentId - test('to test the property `parentId`', () async { - // TODO - }); - - // SectionType type - test('to test the property `type`', () async { - // TODO - }); - - // String data - test('to test the property `data`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/section_type_test.dart b/manager_api_old/test/section_type_test.dart deleted file mode 100644 index f0b8fb6..0000000 --- a/manager_api_old/test/section_type_test.dart +++ /dev/null @@ -1,20 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionType -void main() { - - group('test SectionType', () { - - }); - -} diff --git a/manager_api_old/test/slider_dto_test.dart b/manager_api_old/test/slider_dto_test.dart deleted file mode 100644 index 19da350..0000000 --- a/manager_api_old/test/slider_dto_test.dart +++ /dev/null @@ -1,26 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SliderDTO -void main() { - final instance = SliderDTO(); - - group('test SliderDTO', () { - // List images (default value: const []) - test('to test the property `images`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/token_dto_test.dart b/manager_api_old/test/token_dto_test.dart deleted file mode 100644 index df90e8c..0000000 --- a/manager_api_old/test/token_dto_test.dart +++ /dev/null @@ -1,51 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for TokenDTO -void main() { - final instance = TokenDTO(); - - group('test TokenDTO', () { - // String accessToken - test('to test the property `accessToken`', () async { - // TODO - }); - - // String refreshToken - test('to test the property `refreshToken`', () async { - // TODO - }); - - // String scope - test('to test the property `scope`', () async { - // TODO - }); - - // String tokenType - test('to test the property `tokenType`', () async { - // TODO - }); - - // int expiresIn - test('to test the property `expiresIn`', () async { - // TODO - }); - - // DateTime expiration - test('to test the property `expiration`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/translation_dto_test.dart b/manager_api_old/test/translation_dto_test.dart deleted file mode 100644 index 46f0c5e..0000000 --- a/manager_api_old/test/translation_dto_test.dart +++ /dev/null @@ -1,31 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for TranslationDTO -void main() { - final instance = TranslationDTO(); - - group('test TranslationDTO', () { - // String language - test('to test the property `language`', () async { - // TODO - }); - - // String value - test('to test the property `value`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/user_api_test.dart b/manager_api_old/test/user_api_test.dart deleted file mode 100644 index 9edeebe..0000000 --- a/manager_api_old/test/user_api_test.dart +++ /dev/null @@ -1,45 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for UserApi -void main() { - final instance = UserApi(); - - group('tests for UserApi', () { - //Future userCreateUser(User user) async - test('test userCreateUser', () async { - // TODO - }); - - //Future userDeleteUser(String id) async - test('test userDeleteUser', () async { - // TODO - }); - - //Future> userGet() async - test('test userGet', () async { - // TODO - }); - - //Future userGetDetail(String id) async - test('test userGetDetail', () async { - // TODO - }); - - //Future userUpdateUser(User user) async - test('test userUpdateUser', () async { - // TODO - }); - - }); -} diff --git a/manager_api_old/test/user_detail_dto_test.dart b/manager_api_old/test/user_detail_dto_test.dart deleted file mode 100644 index c52b019..0000000 --- a/manager_api_old/test/user_detail_dto_test.dart +++ /dev/null @@ -1,41 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for UserDetailDTO -void main() { - final instance = UserDetailDTO(); - - group('test UserDetailDTO', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String firstName - test('to test the property `firstName`', () async { - // TODO - }); - - // String lastName - test('to test the property `lastName`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/user_test.dart b/manager_api_old/test/user_test.dart deleted file mode 100644 index 6b22208..0000000 --- a/manager_api_old/test/user_test.dart +++ /dev/null @@ -1,56 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for User -void main() { - final instance = User(); - - group('test User', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String password - test('to test the property `password`', () async { - // TODO - }); - - // String firstName - test('to test the property `firstName`', () async { - // TODO - }); - - // String lastName - test('to test the property `lastName`', () async { - // TODO - }); - - // String token - test('to test the property `token`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/video_dto_test.dart b/manager_api_old/test/video_dto_test.dart deleted file mode 100644 index ac0e810..0000000 --- a/manager_api_old/test/video_dto_test.dart +++ /dev/null @@ -1,26 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for VideoDTO -void main() { - final instance = VideoDTO(); - - group('test VideoDTO', () { - // String source_ - test('to test the property `source_`', () async { - // TODO - }); - - - }); - -} diff --git a/manager_api_old/test/web_dto_test.dart b/manager_api_old/test/web_dto_test.dart deleted file mode 100644 index cdbc614..0000000 --- a/manager_api_old/test/web_dto_test.dart +++ /dev/null @@ -1,26 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.0 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: lines_longer_than_80_chars - -import 'package:managerapi/api.dart'; -import 'package:test/test.dart'; - -// tests for WebDTO -void main() { - final instance = WebDTO(); - - group('test WebDTO', () { - // String source_ - test('to test the property `source_`', () async { - // TODO - }); - - - }); - -} diff --git a/pubspec.yaml b/pubspec.yaml index 5c1d7d5..9bbc82f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,12 +36,17 @@ dependencies: mapbox_maps_flutter: ^1.0.0 + ota_update: ^6.0.0 + #package_info_plus: ^6.0.0 + qr_flutter: ^4.1.0 + flare_flutter: ^3.0.2 provider: ^6.0.5 http: ^1.2.0 auto_size_text: ^3.0.0 fluttertoast: device_info: ^2.0.2 # DISCONTINUED + #device_info_plus: ^10.0.1 // chewie version casse couille, retourne à la 1.0.0 qui fout la merde enum_to_string: ^2.0.1 carousel_slider: ^4.2.1 mqtt_client: ^10.0.0