From 2701f4c9638269c94bd44355263fadf672dcb0ef Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Thu, 26 Mar 2026 16:20:05 +0100 Subject: [PATCH] Remove useless local manager api folder generation --- manager_api_new/.gitignore | 19 - manager_api_new/.openapi-generator-ignore | 23 - manager_api_new/.openapi-generator/FILES | 139 -- manager_api_new/.openapi-generator/VERSION | 1 - manager_api_new/.travis.yml | 14 - manager_api_new/README.md | 208 --- manager_api_new/analysis_options.yaml | 0 manager_api_new/doc/AgendaDTO.md | 34 - .../doc/AgendaDTOAllOfAgendaMapProvider.md | 14 - manager_api_new/doc/ArticleDTO.md | 37 - manager_api_new/doc/AuthenticationApi.md | 109 -- manager_api_new/doc/CategorieDTO.md | 19 - manager_api_new/doc/ConfigurationApi.md | 367 ------ manager_api_new/doc/ConfigurationDTO.md | 35 - manager_api_new/doc/ContentDTO.md | 19 - manager_api_new/doc/ContentDTOResource.md | 20 - manager_api_new/doc/ContentGeoPoint.md | 18 - manager_api_new/doc/DeviceApi.md | 277 ---- manager_api_new/doc/DeviceDTO.md | 25 - manager_api_new/doc/DeviceDetailDTO.md | 29 - manager_api_new/doc/DeviceDetailDTOAllOf.md | 18 - manager_api_new/doc/ExportConfigurationDTO.md | 37 - .../doc/ExportConfigurationDTOAllOf.md | 16 - manager_api_new/doc/GeoPoint.md | 30 - manager_api_new/doc/GeoPointDTO.md | 28 - manager_api_new/doc/GeoPointDTOCategorie.md | 20 - manager_api_new/doc/GeoPointSectionMap.md | 42 - manager_api_new/doc/ImageDTO.md | 20 - manager_api_new/doc/ImageGeoPoint.md | 16 - manager_api_new/doc/Instance.md | 18 - manager_api_new/doc/InstanceApi.md | 273 ---- manager_api_new/doc/InstanceDTO.md | 18 - manager_api_new/doc/LevelDTO.md | 15 - manager_api_new/doc/LoginDTO.md | 16 - manager_api_new/doc/MapDTO.md | 42 - manager_api_new/doc/MapDTOAllOfMapProvider.md | 14 - manager_api_new/doc/MapDTOAllOfMapType.md | 14 - .../doc/MapDTOAllOfMapTypeMapbox.md | 14 - manager_api_new/doc/MapDTOMapProvider.md | 14 - manager_api_new/doc/MapDTOMapType.md | 14 - manager_api_new/doc/MapDTOMapTypeMapbox.md | 14 - manager_api_new/doc/MapProvider.md | 14 - manager_api_new/doc/MapTypeApp.md | 14 - manager_api_new/doc/MapTypeMapBox.md | 14 - manager_api_new/doc/MenuDTO.md | 33 - .../doc/OrderedTranslationAndResourceDTO.md | 16 - manager_api_new/doc/PDFFileDTO.md | 16 - manager_api_new/doc/PdfDTO.md | 33 - manager_api_new/doc/PlayerMessageDTO.md | 16 - manager_api_new/doc/PuzzleDTO.md | 38 - .../doc/PuzzleDTOAllOfPuzzleImage.md | 20 - manager_api_new/doc/PuzzleDTOImage.md | 20 - manager_api_new/doc/QuestionDTO.md | 21 - .../QuestionDTOImageBackgroundResourceType.md | 14 - manager_api_new/doc/QuizDTO.md | 37 - manager_api_new/doc/QuizQuestion.md | 22 - manager_api_new/doc/QuizQuestionResource.md | 20 - .../doc/QuizQuestionSectionQuiz.md | 37 - manager_api_new/doc/QuizzDTO.md | 19 - manager_api_new/doc/QuizzDTOBadLevel.md | 15 - manager_api_new/doc/Resource.md | 20 - manager_api_new/doc/ResourceApi.md | 327 ----- manager_api_new/doc/ResourceDTO.md | 20 - manager_api_new/doc/ResourceType.md | 14 - manager_api_new/doc/ResponseDTO.md | 17 - manager_api_new/doc/Section.md | 32 - manager_api_new/doc/SectionApi.md | 977 -------------- manager_api_new/doc/SectionDTO.md | 32 - manager_api_new/doc/SectionMap.md | 42 - .../doc/SectionMapAllOfMapMapProvider.md | 14 - .../doc/SectionMapAllOfMapMapType.md | 14 - .../doc/SectionMapAllOfMapResource.md | 20 - .../doc/SectionMapAllOfMapTypeMapbox.md | 14 - manager_api_new/doc/SectionMapApi.md | 191 --- manager_api_new/doc/SectionQuiz.md | 37 - manager_api_new/doc/SectionQuizApi.md | 191 --- manager_api_new/doc/SectionType.md | 14 - manager_api_new/doc/SliderDTO.md | 33 - manager_api_new/doc/TokenDTO.md | 22 - .../doc/TranslationAndResourceDTO.md | 18 - manager_api_new/doc/TranslationDTO.md | 16 - manager_api_new/doc/User.md | 22 - manager_api_new/doc/UserApi.md | 229 ---- manager_api_new/doc/UserDetailDTO.md | 19 - manager_api_new/doc/VideoDTO.md | 33 - manager_api_new/doc/WeatherDTO.md | 35 - manager_api_new/doc/WebDTO.md | 33 - manager_api_new/git_push.sh | 57 - manager_api_new/lib/api.dart | 121 -- .../lib/api/authentication_api.dart | 182 --- .../lib/api/configuration_api.dart | 476 ------- manager_api_new/lib/api/device_api.dart | 352 ----- manager_api_new/lib/api/instance_api.dart | 341 ----- manager_api_new/lib/api/resource_api.dart | 450 ------- manager_api_new/lib/api/section_api.dart | 1159 ----------------- manager_api_new/lib/api/section_map_api.dart | 249 ---- manager_api_new/lib/api/section_quiz_api.dart | 249 ---- manager_api_new/lib/api/user_api.dart | 281 ---- manager_api_new/lib/api_client.dart | 431 ------ manager_api_new/lib/api_exception.dart | 34 - manager_api_new/lib/api_helper.dart | 129 -- manager_api_new/lib/auth/api_key_auth.dart | 43 - manager_api_new/lib/auth/authentication.dart | 18 - manager_api_new/lib/auth/http_basic_auth.dart | 30 - .../lib/auth/http_bearer_auth.dart | 53 - manager_api_new/lib/auth/oauth.dart | 27 - manager_api_new/lib/model/agenda_dto.dart | 357 ----- ...agenda_dto_all_of_agenda_map_provider.dart | 100 -- .../lib/model/app_configuration_link.dart | 369 ------ ...nfiguration_link_application_instance.dart | 277 ---- .../app_configuration_link_configuration.dart | 21 - .../model/app_configuration_link_device.dart | 21 - manager_api_new/lib/model/app_type.dart | 110 -- .../lib/model/application_instance_dto.dart | 295 ----- ...cation_instance_dto_section_event_dto.dart | 409 ------ .../application_instance_section_event.dart | 387 ------ manager_api_new/lib/model/article_dto.dart | 402 ------ manager_api_new/lib/model/categorie_dto.dart | 174 --- .../lib/model/configuration_dto.dart | 402 ------ manager_api_new/lib/model/content_dto.dart | 174 --- .../lib/model/content_dto_resource.dart | 191 --- .../lib/model/content_geo_point.dart | 163 --- .../lib/model/device_detail_dto.dart | 298 ----- .../lib/model/device_detail_dto_all_of.dart | 171 --- manager_api_new/lib/model/device_dto.dart | 240 ---- .../lib/model/export_configuration_dto.dart | 424 ------ .../export_configuration_dto_all_of.dart | 135 -- manager_api_new/lib/model/geo_point.dart | 263 ---- manager_api_new/lib/model/geo_point_dto.dart | 267 ---- .../lib/model/geo_point_dto_categorie.dart | 179 --- .../lib/model/geo_point_section_map.dart | 424 ------ manager_api_new/lib/model/image_dto.dart | 174 --- .../lib/model/image_geo_point.dart | 135 -- manager_api_new/lib/model/instance.dart | 158 --- manager_api_new/lib/model/instance_dto.dart | 283 ---- .../lib/model/layout_main_page_type.dart | 102 -- manager_api_new/lib/model/level_dto.dart | 121 -- manager_api_new/lib/model/login_dto.dart | 132 -- manager_api_new/lib/model/map_annotation.dart | 31 - manager_api_new/lib/model/map_dto.dart | 451 ------- .../model/map_dto_all_of_map_provider.dart | 100 -- .../lib/model/map_dto_all_of_map_type.dart | 100 -- .../model/map_dto_all_of_map_type_mapbox.dart | 100 -- .../lib/model/map_dto_map_provider.dart | 105 -- .../lib/model/map_dto_map_type.dart | 105 -- .../lib/model/map_dto_map_type_mapbox.dart | 105 -- manager_api_new/lib/model/map_provider.dart | 98 -- manager_api_new/lib/model/map_type_app.dart | 103 -- .../lib/model/map_type_map_box.dart | 118 -- manager_api_new/lib/model/menu_dto.dart | 346 ----- .../ordered_translation_and_resource_dto.dart | 146 --- manager_api_new/lib/model/pdf_dto.dart | 346 ----- manager_api_new/lib/model/pdf_file_dto.dart | 136 -- .../lib/model/player_message_dto.dart | 147 --- .../lib/model/programme_block.dart | 31 - manager_api_new/lib/model/puzzle_dto.dart | 414 ------ .../model/puzzle_dto_all_of_puzzle_image.dart | 191 --- .../lib/model/puzzle_dto_image.dart | 191 --- manager_api_new/lib/model/question_dto.dart | 208 --- ...on_dto_image_background_resource_type.dart | 100 -- manager_api_new/lib/model/quiz_dto.dart | 392 ------ manager_api_new/lib/model/quiz_question.dart | 199 --- .../lib/model/quiz_question_resource.dart | 174 --- .../lib/model/quiz_question_section_quiz.dart | 353 ----- manager_api_new/lib/model/quizz_dto.dart | 168 --- .../lib/model/quizz_dto_bad_level.dart | 122 -- manager_api_new/lib/model/resource.dart | 174 --- manager_api_new/lib/model/resource_dto.dart | 191 --- manager_api_new/lib/model/resource_type.dart | 122 -- manager_api_new/lib/model/response_dto.dart | 158 --- manager_api_new/lib/model/section.dart | 309 ----- manager_api_new/lib/model/section_dto.dart | 335 ----- manager_api_new/lib/model/section_event.dart | 386 ------ .../lib/model/section_event_dto.dart | 406 ------ manager_api_new/lib/model/section_map.dart | 424 ------ .../section_map_all_of_map_map_provider.dart | 100 -- .../section_map_all_of_map_map_type.dart | 100 -- .../section_map_all_of_map_resource.dart | 174 --- .../section_map_all_of_map_type_mapbox.dart | 100 -- manager_api_new/lib/model/section_quiz.dart | 353 ----- manager_api_new/lib/model/section_type.dart | 134 -- manager_api_new/lib/model/slider_dto.dart | 346 ----- manager_api_new/lib/model/token_dto.dart | 213 --- .../model/translation_and_resource_dto.dart | 157 --- .../lib/model/translation_dto.dart | 134 -- manager_api_new/lib/model/user.dart | 190 --- .../lib/model/user_detail_dto.dart | 168 --- manager_api_new/lib/model/video_dto.dart | 346 ----- manager_api_new/lib/model/weather_dto.dart | 368 ------ manager_api_new/lib/model/web_dto.dart | 346 ----- manager_api_new/pubspec.yaml | 17 - ...a_dto_all_of_agenda_map_provider_test.dart | 19 - manager_api_new/test/agenda_dto_test.dart | 24 - manager_api_new/test/article_dto_test.dart | 49 - .../test/authentication_api_test.dart | 29 - manager_api_new/test/categorie_dto_test.dart | 29 - .../test/configuration_api_test.dart | 54 - .../test/configuration_dto_test.dart | 84 -- .../test/content_dto_resource_test.dart | 49 - manager_api_new/test/content_dto_test.dart | 49 - .../test/content_geo_point_test.dart | 39 - manager_api_new/test/device_api_test.dart | 49 - .../test/device_detail_dto_all_of_test.dart | 39 - .../test/device_detail_dto_test.dart | 94 -- manager_api_new/test/device_dto_test.dart | 74 -- .../export_configuration_dto_all_of_test.dart | 29 - .../test/export_configuration_dto_test.dart | 94 -- .../test/geo_point_dto_categorie_test.dart | 29 - manager_api_new/test/geo_point_dto_test.dart | 49 - .../test/geo_point_section_map_test.dart | 159 --- manager_api_new/test/geo_point_test.dart | 89 -- manager_api_new/test/image_dto_test.dart | 44 - .../test/image_geo_point_test.dart | 29 - manager_api_new/test/instance_api_test.dart | 44 - manager_api_new/test/instance_dto_test.dart | 34 - manager_api_new/test/instance_test.dart | 34 - manager_api_new/test/level_dto_test.dart | 34 - manager_api_new/test/login_dto_test.dart | 29 - .../map_dto_all_of_map_provider_test.dart | 19 - .../map_dto_all_of_map_type_mapbox_test.dart | 19 - .../test/map_dto_all_of_map_type_test.dart | 19 - .../test/map_dto_map_provider_test.dart | 19 - .../test/map_dto_map_type_mapbox_test.dart | 19 - .../test/map_dto_map_type_test.dart | 19 - manager_api_new/test/map_dto_test.dart | 44 - manager_api_new/test/map_provider_test.dart | 17 - manager_api_new/test/map_type_app_test.dart | 17 - .../test/map_type_map_box_test.dart | 17 - manager_api_new/test/menu_dto_test.dart | 24 - ...red_translation_and_resource_dto_test.dart | 29 - manager_api_new/test/pdf_dto_test.dart | 24 - manager_api_new/test/pdf_file_dto_test.dart | 24 - .../test/player_message_dto_test.dart | 29 - .../puzzle_dto_all_of_puzzle_image_test.dart | 49 - .../test/puzzle_dto_image_test.dart | 49 - manager_api_new/test/puzzle_dto_test.dart | 34 - ...o_image_background_resource_type_test.dart | 19 - manager_api_new/test/question_dto_test.dart | 44 - manager_api_new/test/quiz_dto_test.dart | 134 -- .../test/quiz_question_resource_test.dart | 49 - .../test/quiz_question_section_quiz_test.dart | 134 -- manager_api_new/test/quiz_question_test.dart | 49 - .../test/quizz_dto_bad_level_test.dart | 34 - manager_api_new/test/quizz_dto_test.dart | 44 - manager_api_new/test/resource_api_test.dart | 54 - manager_api_new/test/resource_dto_test.dart | 49 - manager_api_new/test/resource_test.dart | 49 - manager_api_new/test/resource_type_test.dart | 17 - manager_api_new/test/response_dto_test.dart | 34 - manager_api_new/test/section_api_test.dart | 104 -- manager_api_new/test/section_dto_test.dart | 89 -- ...tion_map_all_of_map_map_provider_test.dart | 19 - .../section_map_all_of_map_map_type_test.dart | 19 - .../section_map_all_of_map_resource_test.dart | 49 - ...ction_map_all_of_map_type_mapbox_test.dart | 19 - .../test/section_map_api_test.dart | 39 - manager_api_new/test/section_map_test.dart | 159 --- .../test/section_quiz_api_test.dart | 39 - manager_api_new/test/section_quiz_test.dart | 134 -- manager_api_new/test/section_test.dart | 109 -- manager_api_new/test/section_type_test.dart | 17 - manager_api_new/test/slider_dto_test.dart | 24 - manager_api_new/test/token_dto_test.dart | 54 - .../translation_and_resource_dto_test.dart | 44 - .../test/translation_dto_test.dart | 29 - manager_api_new/test/user_api_test.dart | 44 - .../test/user_detail_dto_test.dart | 39 - manager_api_new/test/user_test.dart | 59 - manager_api_new/test/video_dto_test.dart | 24 - manager_api_new/test/weather_dto_test.dart | 34 - manager_api_new/test/web_dto_test.dart | 24 - 271 files changed, 31556 deletions(-) delete mode 100644 manager_api_new/.gitignore delete mode 100644 manager_api_new/.openapi-generator-ignore delete mode 100644 manager_api_new/.openapi-generator/FILES delete mode 100644 manager_api_new/.openapi-generator/VERSION delete mode 100644 manager_api_new/.travis.yml delete mode 100644 manager_api_new/README.md delete mode 100644 manager_api_new/analysis_options.yaml delete mode 100644 manager_api_new/doc/AgendaDTO.md delete mode 100644 manager_api_new/doc/AgendaDTOAllOfAgendaMapProvider.md delete mode 100644 manager_api_new/doc/ArticleDTO.md delete mode 100644 manager_api_new/doc/AuthenticationApi.md delete mode 100644 manager_api_new/doc/CategorieDTO.md delete mode 100644 manager_api_new/doc/ConfigurationApi.md delete mode 100644 manager_api_new/doc/ConfigurationDTO.md delete mode 100644 manager_api_new/doc/ContentDTO.md delete mode 100644 manager_api_new/doc/ContentDTOResource.md delete mode 100644 manager_api_new/doc/ContentGeoPoint.md delete mode 100644 manager_api_new/doc/DeviceApi.md delete mode 100644 manager_api_new/doc/DeviceDTO.md delete mode 100644 manager_api_new/doc/DeviceDetailDTO.md delete mode 100644 manager_api_new/doc/DeviceDetailDTOAllOf.md delete mode 100644 manager_api_new/doc/ExportConfigurationDTO.md delete mode 100644 manager_api_new/doc/ExportConfigurationDTOAllOf.md delete mode 100644 manager_api_new/doc/GeoPoint.md delete mode 100644 manager_api_new/doc/GeoPointDTO.md delete mode 100644 manager_api_new/doc/GeoPointDTOCategorie.md delete mode 100644 manager_api_new/doc/GeoPointSectionMap.md delete mode 100644 manager_api_new/doc/ImageDTO.md delete mode 100644 manager_api_new/doc/ImageGeoPoint.md delete mode 100644 manager_api_new/doc/Instance.md delete mode 100644 manager_api_new/doc/InstanceApi.md delete mode 100644 manager_api_new/doc/InstanceDTO.md delete mode 100644 manager_api_new/doc/LevelDTO.md delete mode 100644 manager_api_new/doc/LoginDTO.md delete mode 100644 manager_api_new/doc/MapDTO.md delete mode 100644 manager_api_new/doc/MapDTOAllOfMapProvider.md delete mode 100644 manager_api_new/doc/MapDTOAllOfMapType.md delete mode 100644 manager_api_new/doc/MapDTOAllOfMapTypeMapbox.md delete mode 100644 manager_api_new/doc/MapDTOMapProvider.md delete mode 100644 manager_api_new/doc/MapDTOMapType.md delete mode 100644 manager_api_new/doc/MapDTOMapTypeMapbox.md delete mode 100644 manager_api_new/doc/MapProvider.md delete mode 100644 manager_api_new/doc/MapTypeApp.md delete mode 100644 manager_api_new/doc/MapTypeMapBox.md delete mode 100644 manager_api_new/doc/MenuDTO.md delete mode 100644 manager_api_new/doc/OrderedTranslationAndResourceDTO.md delete mode 100644 manager_api_new/doc/PDFFileDTO.md delete mode 100644 manager_api_new/doc/PdfDTO.md delete mode 100644 manager_api_new/doc/PlayerMessageDTO.md delete mode 100644 manager_api_new/doc/PuzzleDTO.md delete mode 100644 manager_api_new/doc/PuzzleDTOAllOfPuzzleImage.md delete mode 100644 manager_api_new/doc/PuzzleDTOImage.md delete mode 100644 manager_api_new/doc/QuestionDTO.md delete mode 100644 manager_api_new/doc/QuestionDTOImageBackgroundResourceType.md delete mode 100644 manager_api_new/doc/QuizDTO.md delete mode 100644 manager_api_new/doc/QuizQuestion.md delete mode 100644 manager_api_new/doc/QuizQuestionResource.md delete mode 100644 manager_api_new/doc/QuizQuestionSectionQuiz.md delete mode 100644 manager_api_new/doc/QuizzDTO.md delete mode 100644 manager_api_new/doc/QuizzDTOBadLevel.md delete mode 100644 manager_api_new/doc/Resource.md delete mode 100644 manager_api_new/doc/ResourceApi.md delete mode 100644 manager_api_new/doc/ResourceDTO.md delete mode 100644 manager_api_new/doc/ResourceType.md delete mode 100644 manager_api_new/doc/ResponseDTO.md delete mode 100644 manager_api_new/doc/Section.md delete mode 100644 manager_api_new/doc/SectionApi.md delete mode 100644 manager_api_new/doc/SectionDTO.md delete mode 100644 manager_api_new/doc/SectionMap.md delete mode 100644 manager_api_new/doc/SectionMapAllOfMapMapProvider.md delete mode 100644 manager_api_new/doc/SectionMapAllOfMapMapType.md delete mode 100644 manager_api_new/doc/SectionMapAllOfMapResource.md delete mode 100644 manager_api_new/doc/SectionMapAllOfMapTypeMapbox.md delete mode 100644 manager_api_new/doc/SectionMapApi.md delete mode 100644 manager_api_new/doc/SectionQuiz.md delete mode 100644 manager_api_new/doc/SectionQuizApi.md delete mode 100644 manager_api_new/doc/SectionType.md delete mode 100644 manager_api_new/doc/SliderDTO.md delete mode 100644 manager_api_new/doc/TokenDTO.md delete mode 100644 manager_api_new/doc/TranslationAndResourceDTO.md delete mode 100644 manager_api_new/doc/TranslationDTO.md delete mode 100644 manager_api_new/doc/User.md delete mode 100644 manager_api_new/doc/UserApi.md delete mode 100644 manager_api_new/doc/UserDetailDTO.md delete mode 100644 manager_api_new/doc/VideoDTO.md delete mode 100644 manager_api_new/doc/WeatherDTO.md delete mode 100644 manager_api_new/doc/WebDTO.md delete mode 100644 manager_api_new/git_push.sh delete mode 100644 manager_api_new/lib/api.dart delete mode 100644 manager_api_new/lib/api/authentication_api.dart delete mode 100644 manager_api_new/lib/api/configuration_api.dart delete mode 100644 manager_api_new/lib/api/device_api.dart delete mode 100644 manager_api_new/lib/api/instance_api.dart delete mode 100644 manager_api_new/lib/api/resource_api.dart delete mode 100644 manager_api_new/lib/api/section_api.dart delete mode 100644 manager_api_new/lib/api/section_map_api.dart delete mode 100644 manager_api_new/lib/api/section_quiz_api.dart delete mode 100644 manager_api_new/lib/api/user_api.dart delete mode 100644 manager_api_new/lib/api_client.dart delete mode 100644 manager_api_new/lib/api_exception.dart delete mode 100644 manager_api_new/lib/api_helper.dart delete mode 100644 manager_api_new/lib/auth/api_key_auth.dart delete mode 100644 manager_api_new/lib/auth/authentication.dart delete mode 100644 manager_api_new/lib/auth/http_basic_auth.dart delete mode 100644 manager_api_new/lib/auth/http_bearer_auth.dart delete mode 100644 manager_api_new/lib/auth/oauth.dart delete mode 100644 manager_api_new/lib/model/agenda_dto.dart delete mode 100644 manager_api_new/lib/model/agenda_dto_all_of_agenda_map_provider.dart delete mode 100644 manager_api_new/lib/model/app_configuration_link.dart delete mode 100644 manager_api_new/lib/model/app_configuration_link_application_instance.dart delete mode 100644 manager_api_new/lib/model/app_configuration_link_configuration.dart delete mode 100644 manager_api_new/lib/model/app_configuration_link_device.dart delete mode 100644 manager_api_new/lib/model/app_type.dart delete mode 100644 manager_api_new/lib/model/application_instance_dto.dart delete mode 100644 manager_api_new/lib/model/application_instance_dto_section_event_dto.dart delete mode 100644 manager_api_new/lib/model/application_instance_section_event.dart delete mode 100644 manager_api_new/lib/model/article_dto.dart delete mode 100644 manager_api_new/lib/model/categorie_dto.dart delete mode 100644 manager_api_new/lib/model/configuration_dto.dart delete mode 100644 manager_api_new/lib/model/content_dto.dart delete mode 100644 manager_api_new/lib/model/content_dto_resource.dart delete mode 100644 manager_api_new/lib/model/content_geo_point.dart delete mode 100644 manager_api_new/lib/model/device_detail_dto.dart delete mode 100644 manager_api_new/lib/model/device_detail_dto_all_of.dart delete mode 100644 manager_api_new/lib/model/device_dto.dart delete mode 100644 manager_api_new/lib/model/export_configuration_dto.dart delete mode 100644 manager_api_new/lib/model/export_configuration_dto_all_of.dart delete mode 100644 manager_api_new/lib/model/geo_point.dart delete mode 100644 manager_api_new/lib/model/geo_point_dto.dart delete mode 100644 manager_api_new/lib/model/geo_point_dto_categorie.dart delete mode 100644 manager_api_new/lib/model/geo_point_section_map.dart delete mode 100644 manager_api_new/lib/model/image_dto.dart delete mode 100644 manager_api_new/lib/model/image_geo_point.dart delete mode 100644 manager_api_new/lib/model/instance.dart delete mode 100644 manager_api_new/lib/model/instance_dto.dart delete mode 100644 manager_api_new/lib/model/layout_main_page_type.dart delete mode 100644 manager_api_new/lib/model/level_dto.dart delete mode 100644 manager_api_new/lib/model/login_dto.dart delete mode 100644 manager_api_new/lib/model/map_annotation.dart delete mode 100644 manager_api_new/lib/model/map_dto.dart delete mode 100644 manager_api_new/lib/model/map_dto_all_of_map_provider.dart delete mode 100644 manager_api_new/lib/model/map_dto_all_of_map_type.dart delete mode 100644 manager_api_new/lib/model/map_dto_all_of_map_type_mapbox.dart delete mode 100644 manager_api_new/lib/model/map_dto_map_provider.dart delete mode 100644 manager_api_new/lib/model/map_dto_map_type.dart delete mode 100644 manager_api_new/lib/model/map_dto_map_type_mapbox.dart delete mode 100644 manager_api_new/lib/model/map_provider.dart delete mode 100644 manager_api_new/lib/model/map_type_app.dart delete mode 100644 manager_api_new/lib/model/map_type_map_box.dart delete mode 100644 manager_api_new/lib/model/menu_dto.dart delete mode 100644 manager_api_new/lib/model/ordered_translation_and_resource_dto.dart delete mode 100644 manager_api_new/lib/model/pdf_dto.dart delete mode 100644 manager_api_new/lib/model/pdf_file_dto.dart delete mode 100644 manager_api_new/lib/model/player_message_dto.dart delete mode 100644 manager_api_new/lib/model/programme_block.dart delete mode 100644 manager_api_new/lib/model/puzzle_dto.dart delete mode 100644 manager_api_new/lib/model/puzzle_dto_all_of_puzzle_image.dart delete mode 100644 manager_api_new/lib/model/puzzle_dto_image.dart delete mode 100644 manager_api_new/lib/model/question_dto.dart delete mode 100644 manager_api_new/lib/model/question_dto_image_background_resource_type.dart delete mode 100644 manager_api_new/lib/model/quiz_dto.dart delete mode 100644 manager_api_new/lib/model/quiz_question.dart delete mode 100644 manager_api_new/lib/model/quiz_question_resource.dart delete mode 100644 manager_api_new/lib/model/quiz_question_section_quiz.dart delete mode 100644 manager_api_new/lib/model/quizz_dto.dart delete mode 100644 manager_api_new/lib/model/quizz_dto_bad_level.dart delete mode 100644 manager_api_new/lib/model/resource.dart delete mode 100644 manager_api_new/lib/model/resource_dto.dart delete mode 100644 manager_api_new/lib/model/resource_type.dart delete mode 100644 manager_api_new/lib/model/response_dto.dart delete mode 100644 manager_api_new/lib/model/section.dart delete mode 100644 manager_api_new/lib/model/section_dto.dart delete mode 100644 manager_api_new/lib/model/section_event.dart delete mode 100644 manager_api_new/lib/model/section_event_dto.dart delete mode 100644 manager_api_new/lib/model/section_map.dart delete mode 100644 manager_api_new/lib/model/section_map_all_of_map_map_provider.dart delete mode 100644 manager_api_new/lib/model/section_map_all_of_map_map_type.dart delete mode 100644 manager_api_new/lib/model/section_map_all_of_map_resource.dart delete mode 100644 manager_api_new/lib/model/section_map_all_of_map_type_mapbox.dart delete mode 100644 manager_api_new/lib/model/section_quiz.dart delete mode 100644 manager_api_new/lib/model/section_type.dart delete mode 100644 manager_api_new/lib/model/slider_dto.dart delete mode 100644 manager_api_new/lib/model/token_dto.dart delete mode 100644 manager_api_new/lib/model/translation_and_resource_dto.dart delete mode 100644 manager_api_new/lib/model/translation_dto.dart delete mode 100644 manager_api_new/lib/model/user.dart delete mode 100644 manager_api_new/lib/model/user_detail_dto.dart delete mode 100644 manager_api_new/lib/model/video_dto.dart delete mode 100644 manager_api_new/lib/model/weather_dto.dart delete mode 100644 manager_api_new/lib/model/web_dto.dart delete mode 100644 manager_api_new/pubspec.yaml delete mode 100644 manager_api_new/test/agenda_dto_all_of_agenda_map_provider_test.dart delete mode 100644 manager_api_new/test/agenda_dto_test.dart delete mode 100644 manager_api_new/test/article_dto_test.dart delete mode 100644 manager_api_new/test/authentication_api_test.dart delete mode 100644 manager_api_new/test/categorie_dto_test.dart delete mode 100644 manager_api_new/test/configuration_api_test.dart delete mode 100644 manager_api_new/test/configuration_dto_test.dart delete mode 100644 manager_api_new/test/content_dto_resource_test.dart delete mode 100644 manager_api_new/test/content_dto_test.dart delete mode 100644 manager_api_new/test/content_geo_point_test.dart delete mode 100644 manager_api_new/test/device_api_test.dart delete mode 100644 manager_api_new/test/device_detail_dto_all_of_test.dart delete mode 100644 manager_api_new/test/device_detail_dto_test.dart delete mode 100644 manager_api_new/test/device_dto_test.dart delete mode 100644 manager_api_new/test/export_configuration_dto_all_of_test.dart delete mode 100644 manager_api_new/test/export_configuration_dto_test.dart delete mode 100644 manager_api_new/test/geo_point_dto_categorie_test.dart delete mode 100644 manager_api_new/test/geo_point_dto_test.dart delete mode 100644 manager_api_new/test/geo_point_section_map_test.dart delete mode 100644 manager_api_new/test/geo_point_test.dart delete mode 100644 manager_api_new/test/image_dto_test.dart delete mode 100644 manager_api_new/test/image_geo_point_test.dart delete mode 100644 manager_api_new/test/instance_api_test.dart delete mode 100644 manager_api_new/test/instance_dto_test.dart delete mode 100644 manager_api_new/test/instance_test.dart delete mode 100644 manager_api_new/test/level_dto_test.dart delete mode 100644 manager_api_new/test/login_dto_test.dart delete mode 100644 manager_api_new/test/map_dto_all_of_map_provider_test.dart delete mode 100644 manager_api_new/test/map_dto_all_of_map_type_mapbox_test.dart delete mode 100644 manager_api_new/test/map_dto_all_of_map_type_test.dart delete mode 100644 manager_api_new/test/map_dto_map_provider_test.dart delete mode 100644 manager_api_new/test/map_dto_map_type_mapbox_test.dart delete mode 100644 manager_api_new/test/map_dto_map_type_test.dart delete mode 100644 manager_api_new/test/map_dto_test.dart delete mode 100644 manager_api_new/test/map_provider_test.dart delete mode 100644 manager_api_new/test/map_type_app_test.dart delete mode 100644 manager_api_new/test/map_type_map_box_test.dart delete mode 100644 manager_api_new/test/menu_dto_test.dart delete mode 100644 manager_api_new/test/ordered_translation_and_resource_dto_test.dart delete mode 100644 manager_api_new/test/pdf_dto_test.dart delete mode 100644 manager_api_new/test/pdf_file_dto_test.dart delete mode 100644 manager_api_new/test/player_message_dto_test.dart delete mode 100644 manager_api_new/test/puzzle_dto_all_of_puzzle_image_test.dart delete mode 100644 manager_api_new/test/puzzle_dto_image_test.dart delete mode 100644 manager_api_new/test/puzzle_dto_test.dart delete mode 100644 manager_api_new/test/question_dto_image_background_resource_type_test.dart delete mode 100644 manager_api_new/test/question_dto_test.dart delete mode 100644 manager_api_new/test/quiz_dto_test.dart delete mode 100644 manager_api_new/test/quiz_question_resource_test.dart delete mode 100644 manager_api_new/test/quiz_question_section_quiz_test.dart delete mode 100644 manager_api_new/test/quiz_question_test.dart delete mode 100644 manager_api_new/test/quizz_dto_bad_level_test.dart delete mode 100644 manager_api_new/test/quizz_dto_test.dart delete mode 100644 manager_api_new/test/resource_api_test.dart delete mode 100644 manager_api_new/test/resource_dto_test.dart delete mode 100644 manager_api_new/test/resource_test.dart delete mode 100644 manager_api_new/test/resource_type_test.dart delete mode 100644 manager_api_new/test/response_dto_test.dart delete mode 100644 manager_api_new/test/section_api_test.dart delete mode 100644 manager_api_new/test/section_dto_test.dart delete mode 100644 manager_api_new/test/section_map_all_of_map_map_provider_test.dart delete mode 100644 manager_api_new/test/section_map_all_of_map_map_type_test.dart delete mode 100644 manager_api_new/test/section_map_all_of_map_resource_test.dart delete mode 100644 manager_api_new/test/section_map_all_of_map_type_mapbox_test.dart delete mode 100644 manager_api_new/test/section_map_api_test.dart delete mode 100644 manager_api_new/test/section_map_test.dart delete mode 100644 manager_api_new/test/section_quiz_api_test.dart delete mode 100644 manager_api_new/test/section_quiz_test.dart delete mode 100644 manager_api_new/test/section_test.dart delete mode 100644 manager_api_new/test/section_type_test.dart delete mode 100644 manager_api_new/test/slider_dto_test.dart delete mode 100644 manager_api_new/test/token_dto_test.dart delete mode 100644 manager_api_new/test/translation_and_resource_dto_test.dart delete mode 100644 manager_api_new/test/translation_dto_test.dart delete mode 100644 manager_api_new/test/user_api_test.dart delete mode 100644 manager_api_new/test/user_detail_dto_test.dart delete mode 100644 manager_api_new/test/user_test.dart delete mode 100644 manager_api_new/test/video_dto_test.dart delete mode 100644 manager_api_new/test/weather_dto_test.dart delete mode 100644 manager_api_new/test/web_dto_test.dart diff --git a/manager_api_new/.gitignore b/manager_api_new/.gitignore deleted file mode 100644 index 0f74d29..0000000 --- a/manager_api_new/.gitignore +++ /dev/null @@ -1,19 +0,0 @@ -# See https://dart.dev/guides/libraries/private-files - -.dart_tool/ -.packages -build/ - -# Except for application packages -pubspec.lock - -doc/api/ - -# IntelliJ -*.iml -*.ipr -*.iws -.idea/ - -# Mac -.DS_Store diff --git a/manager_api_new/.openapi-generator-ignore b/manager_api_new/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/manager_api_new/.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_new/.openapi-generator/FILES b/manager_api_new/.openapi-generator/FILES deleted file mode 100644 index 8f248e2..0000000 --- a/manager_api_new/.openapi-generator/FILES +++ /dev/null @@ -1,139 +0,0 @@ -.gitignore -.travis.yml -README.md -analysis_options.yaml -doc/AgendaDTO.md -doc/AgendaDTOAllOfAgendaMapProvider.md -doc/ArticleDTO.md -doc/AuthenticationApi.md -doc/CategorieDTO.md -doc/ConfigurationApi.md -doc/ConfigurationDTO.md -doc/ContentDTO.md -doc/ContentDTOResource.md -doc/DeviceApi.md -doc/DeviceDTO.md -doc/DeviceDetailDTO.md -doc/ExportConfigurationDTO.md -doc/GeoPoint.md -doc/GeoPointDTO.md -doc/GeoPointSectionMap.md -doc/Instance.md -doc/InstanceApi.md -doc/InstanceDTO.md -doc/LoginDTO.md -doc/MapDTO.md -doc/MapDTOAllOfMapProvider.md -doc/MapDTOAllOfMapType.md -doc/MapDTOAllOfMapTypeMapbox.md -doc/MapProvider.md -doc/MapTypeApp.md -doc/MapTypeMapBox.md -doc/MenuDTO.md -doc/OrderedTranslationAndResourceDTO.md -doc/PdfDTO.md -doc/PlayerMessageDTO.md -doc/PuzzleDTO.md -doc/PuzzleDTOAllOfPuzzleImage.md -doc/QuestionDTO.md -doc/QuestionDTOImageBackgroundResourceType.md -doc/QuizDTO.md -doc/Resource.md -doc/ResourceApi.md -doc/ResourceDTO.md -doc/ResourceType.md -doc/ResponseDTO.md -doc/Section.md -doc/SectionApi.md -doc/SectionDTO.md -doc/SectionMap.md -doc/SectionMapAllOfMapMapProvider.md -doc/SectionMapAllOfMapMapType.md -doc/SectionMapAllOfMapResource.md -doc/SectionMapAllOfMapTypeMapbox.md -doc/SectionMapApi.md -doc/SectionQuizApi.md -doc/SectionType.md -doc/SliderDTO.md -doc/TokenDTO.md -doc/TranslationAndResourceDTO.md -doc/TranslationDTO.md -doc/User.md -doc/UserApi.md -doc/UserDetailDTO.md -doc/VideoDTO.md -doc/WeatherDTO.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/instance_api.dart -lib/api/resource_api.dart -lib/api/section_api.dart -lib/api/section_map_api.dart -lib/api/section_quiz_api.dart -lib/api/user_api.dart -lib/api_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/agenda_dto.dart -lib/model/agenda_dto_all_of_agenda_map_provider.dart -lib/model/article_dto.dart -lib/model/categorie_dto.dart -lib/model/configuration_dto.dart -lib/model/content_dto.dart -lib/model/content_dto_resource.dart -lib/model/device_detail_dto.dart -lib/model/device_dto.dart -lib/model/export_configuration_dto.dart -lib/model/geo_point.dart -lib/model/geo_point_dto.dart -lib/model/geo_point_section_map.dart -lib/model/instance.dart -lib/model/instance_dto.dart -lib/model/login_dto.dart -lib/model/map_dto.dart -lib/model/map_dto_all_of_map_provider.dart -lib/model/map_dto_all_of_map_type.dart -lib/model/map_dto_all_of_map_type_mapbox.dart -lib/model/map_provider.dart -lib/model/map_type_app.dart -lib/model/map_type_map_box.dart -lib/model/menu_dto.dart -lib/model/ordered_translation_and_resource_dto.dart -lib/model/pdf_dto.dart -lib/model/player_message_dto.dart -lib/model/puzzle_dto.dart -lib/model/puzzle_dto_all_of_puzzle_image.dart -lib/model/question_dto.dart -lib/model/question_dto_image_background_resource_type.dart -lib/model/quiz_dto.dart -lib/model/resource.dart -lib/model/resource_dto.dart -lib/model/resource_type.dart -lib/model/response_dto.dart -lib/model/section.dart -lib/model/section_dto.dart -lib/model/section_map.dart -lib/model/section_map_all_of_map_map_provider.dart -lib/model/section_map_all_of_map_map_type.dart -lib/model/section_map_all_of_map_resource.dart -lib/model/section_map_all_of_map_type_mapbox.dart -lib/model/section_type.dart -lib/model/slider_dto.dart -lib/model/token_dto.dart -lib/model/translation_and_resource_dto.dart -lib/model/translation_dto.dart -lib/model/user.dart -lib/model/user_detail_dto.dart -lib/model/video_dto.dart -lib/model/weather_dto.dart -lib/model/web_dto.dart -pubspec.yaml diff --git a/manager_api_new/.openapi-generator/VERSION b/manager_api_new/.openapi-generator/VERSION deleted file mode 100644 index 4bc5d61..0000000 --- a/manager_api_new/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.9.0 diff --git a/manager_api_new/.travis.yml b/manager_api_new/.travis.yml deleted file mode 100644 index 2774ccb..0000000 --- a/manager_api_new/.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.12" -install: -- pub get - -script: -- pub run test diff --git a/manager_api_new/README.md b/manager_api_new/README.md deleted file mode 100644 index ca87372..0000000 --- a/manager_api_new/README.md +++ /dev/null @@ -1,208 +0,0 @@ -# manager_api_new -API Manager Service - -This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: Version Alpha 3 -- Generator version: 7.9.0 -- Build package: org.openapitools.codegen.languages.DartClientCodegen - -## Requirements - -Dart 2.12 or later - -## Installation & Usage - -### Github -If this Dart package is published to Github, add the following dependency to your pubspec.yaml -``` -dependencies: - manager_api_new: - git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` - -### Local -To use the package in your local drive, add the following dependency to your pubspec.yaml -``` -dependencies: - manager_api_new: - path: /path/to/manager_api_new -``` - -## Tests - -TODO - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```dart -import 'package:manager_api_new/api.dart'; - -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = AuthenticationApi(); -final grantType = grantType_example; // String | -final username = username_example; // String | -final password = password_example; // String | -final clientId = clientId_example; // String | -final clientSecret = clientSecret_example; // String | - -try { - final result = api_instance.authenticationAuthenticateWithForm(grantType, username, password, clientId, clientSecret); - print(result); -} catch (e) { - print('Exception when calling AuthenticationApi->authenticationAuthenticateWithForm: $e\n'); -} - -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://localhost:5001* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AuthenticationApi* | [**authenticationAuthenticateWithForm**](doc//AuthenticationApi.md#authenticationauthenticatewithform) | **POST** /api/Authentication/Token | -*AuthenticationApi* | [**authenticationAuthenticateWithJson**](doc//AuthenticationApi.md#authenticationauthenticatewithjson) | **POST** /api/Authentication/Authenticate | -*ConfigurationApi* | [**configurationCreate**](doc//ConfigurationApi.md#configurationcreate) | **POST** /api/Configuration | -*ConfigurationApi* | [**configurationDelete**](doc//ConfigurationApi.md#configurationdelete) | **DELETE** /api/Configuration/{id} | -*ConfigurationApi* | [**configurationExport**](doc//ConfigurationApi.md#configurationexport) | **GET** /api/Configuration/{id}/export | -*ConfigurationApi* | [**configurationGet**](doc//ConfigurationApi.md#configurationget) | **GET** /api/Configuration | -*ConfigurationApi* | [**configurationGetConfigurationsByPinCode**](doc//ConfigurationApi.md#configurationgetconfigurationsbypincode) | **GET** /api/Configuration/byPin | -*ConfigurationApi* | [**configurationGetDetail**](doc//ConfigurationApi.md#configurationgetdetail) | **GET** /api/Configuration/{id} | -*ConfigurationApi* | [**configurationImport**](doc//ConfigurationApi.md#configurationimport) | **POST** /api/Configuration/import | -*ConfigurationApi* | [**configurationUpdate**](doc//ConfigurationApi.md#configurationupdate) | **PUT** /api/Configuration | -*DeviceApi* | [**deviceCreate**](doc//DeviceApi.md#devicecreate) | **POST** /api/Device | -*DeviceApi* | [**deviceDelete**](doc//DeviceApi.md#devicedelete) | **DELETE** /api/Device/{id} | -*DeviceApi* | [**deviceGet**](doc//DeviceApi.md#deviceget) | **GET** /api/Device | -*DeviceApi* | [**deviceGetDetail**](doc//DeviceApi.md#devicegetdetail) | **GET** /api/Device/{id}/detail | -*DeviceApi* | [**deviceUpdate**](doc//DeviceApi.md#deviceupdate) | **PUT** /api/Device | -*DeviceApi* | [**deviceUpdateMainInfos**](doc//DeviceApi.md#deviceupdatemaininfos) | **PUT** /api/Device/mainInfos | -*InstanceApi* | [**instanceCreateInstance**](doc//InstanceApi.md#instancecreateinstance) | **POST** /api/Instance | -*InstanceApi* | [**instanceDeleteInstance**](doc//InstanceApi.md#instancedeleteinstance) | **DELETE** /api/Instance/{id} | -*InstanceApi* | [**instanceGet**](doc//InstanceApi.md#instanceget) | **GET** /api/Instance | -*InstanceApi* | [**instanceGetDetail**](doc//InstanceApi.md#instancegetdetail) | **GET** /api/Instance/{id} | -*InstanceApi* | [**instanceGetInstanceByPinCode**](doc//InstanceApi.md#instancegetinstancebypincode) | **GET** /api/Instance/byPin | -*InstanceApi* | [**instanceUpdateinstance**](doc//InstanceApi.md#instanceupdateinstance) | **PUT** /api/Instance | -*ResourceApi* | [**resourceCreate**](doc//ResourceApi.md#resourcecreate) | **POST** /api/Resource | -*ResourceApi* | [**resourceDelete**](doc//ResourceApi.md#resourcedelete) | **DELETE** /api/Resource/{id} | -*ResourceApi* | [**resourceGet**](doc//ResourceApi.md#resourceget) | **GET** /api/Resource | -*ResourceApi* | [**resourceGetDetail**](doc//ResourceApi.md#resourcegetdetail) | **GET** /api/Resource/{id}/detail | -*ResourceApi* | [**resourceShow**](doc//ResourceApi.md#resourceshow) | **GET** /api/Resource/{id} | -*ResourceApi* | [**resourceUpdate**](doc//ResourceApi.md#resourceupdate) | **PUT** /api/Resource | -*ResourceApi* | [**resourceUpload**](doc//ResourceApi.md#resourceupload) | **POST** /api/Resource/upload | -*SectionApi* | [**sectionCreate**](doc//SectionApi.md#sectioncreate) | **POST** /api/Section | -*SectionApi* | [**sectionDelete**](doc//SectionApi.md#sectiondelete) | **DELETE** /api/Section/{id} | -*SectionApi* | [**sectionDeleteAllForConfiguration**](doc//SectionApi.md#sectiondeleteallforconfiguration) | **DELETE** /api/Section/configuration/{id} | -*SectionApi* | [**sectionGet**](doc//SectionApi.md#sectionget) | **GET** /api/Section | -*SectionApi* | [**sectionGetAgendaDTO**](doc//SectionApi.md#sectiongetagendadto) | **GET** /api/Section/AgendaDTO | -*SectionApi* | [**sectionGetAllBeaconsForInstance**](doc//SectionApi.md#sectiongetallbeaconsforinstance) | **GET** /api/Section/beacons/{instanceId} | -*SectionApi* | [**sectionGetAllSectionSubSections**](doc//SectionApi.md#sectiongetallsectionsubsections) | **GET** /api/Section/{id}/subsections | -*SectionApi* | [**sectionGetArticleDTO**](doc//SectionApi.md#sectiongetarticledto) | **GET** /api/Section/ArticleDTO | -*SectionApi* | [**sectionGetDetail**](doc//SectionApi.md#sectiongetdetail) | **GET** /api/Section/{id} | -*SectionApi* | [**sectionGetFromConfiguration**](doc//SectionApi.md#sectiongetfromconfiguration) | **GET** /api/Section/configuration/{id} | -*SectionApi* | [**sectionGetFromConfigurationDetail**](doc//SectionApi.md#sectiongetfromconfigurationdetail) | **GET** /api/Section/configuration/{id}/detail | -*SectionApi* | [**sectionGetMapDTO**](doc//SectionApi.md#sectiongetmapdto) | **GET** /api/Section/MapDTO | -*SectionApi* | [**sectionGetMenuDTO**](doc//SectionApi.md#sectiongetmenudto) | **GET** /api/Section/MenuDTO | -*SectionApi* | [**sectionGetPdfDTO**](doc//SectionApi.md#sectiongetpdfdto) | **GET** /api/Section/PdfDTO | -*SectionApi* | [**sectionGetPuzzleDTO**](doc//SectionApi.md#sectiongetpuzzledto) | **GET** /api/Section/PuzzleDTO | -*SectionApi* | [**sectionGetQuizDTO**](doc//SectionApi.md#sectiongetquizdto) | **GET** /api/Section/QuizDTO | -*SectionApi* | [**sectionGetSliderDTO**](doc//SectionApi.md#sectiongetsliderdto) | **GET** /api/Section/SliderDTO | -*SectionApi* | [**sectionGetVideoDTO**](doc//SectionApi.md#sectiongetvideodto) | **GET** /api/Section/VideoDTO | -*SectionApi* | [**sectionGetWeatherDTO**](doc//SectionApi.md#sectiongetweatherdto) | **GET** /api/Section/WeatherDTO | -*SectionApi* | [**sectionGetWebDTO**](doc//SectionApi.md#sectiongetwebdto) | **GET** /api/Section/WebDTO | -*SectionApi* | [**sectionPlayerMessageDTO**](doc//SectionApi.md#sectionplayermessagedto) | **GET** /api/Section/PlayerMessageDTO | -*SectionApi* | [**sectionUpdate**](doc//SectionApi.md#sectionupdate) | **PUT** /api/Section | -*SectionApi* | [**sectionUpdateOrder**](doc//SectionApi.md#sectionupdateorder) | **PUT** /api/Section/order | -*SectionMapApi* | [**sectionMapCreate**](doc//SectionMapApi.md#sectionmapcreate) | **POST** /api/SectionMap/{sectionId}/points | -*SectionMapApi* | [**sectionMapDelete**](doc//SectionMapApi.md#sectionmapdelete) | **DELETE** /api/SectionMap/points/delete/{geoPointId} | -*SectionMapApi* | [**sectionMapGetAllGeoPointsFromSection**](doc//SectionMapApi.md#sectionmapgetallgeopointsfromsection) | **GET** /api/SectionMap/{sectionId}/points | -*SectionMapApi* | [**sectionMapUpdate**](doc//SectionMapApi.md#sectionmapupdate) | **PUT** /api/SectionMap | -*SectionQuizApi* | [**sectionQuizCreate**](doc//SectionQuizApi.md#sectionquizcreate) | **POST** /api/SectionQuiz/{sectionId}/questions | -*SectionQuizApi* | [**sectionQuizDelete**](doc//SectionQuizApi.md#sectionquizdelete) | **DELETE** /api/SectionQuiz/questions/delete/{quizQuestionId} | -*SectionQuizApi* | [**sectionQuizGetAllQuizQuestionFromSection**](doc//SectionQuizApi.md#sectionquizgetallquizquestionfromsection) | **GET** /api/SectionQuiz/{sectionId}/questions | -*SectionQuizApi* | [**sectionQuizUpdate**](doc//SectionQuizApi.md#sectionquizupdate) | **PUT** /api/SectionQuiz | -*UserApi* | [**userCreateUser**](doc//UserApi.md#usercreateuser) | **POST** /api/User | -*UserApi* | [**userDeleteUser**](doc//UserApi.md#userdeleteuser) | **DELETE** /api/User/{id} | -*UserApi* | [**userGet**](doc//UserApi.md#userget) | **GET** /api/User | -*UserApi* | [**userGetDetail**](doc//UserApi.md#usergetdetail) | **GET** /api/User/{id} | -*UserApi* | [**userUpdateUser**](doc//UserApi.md#userupdateuser) | **PUT** /api/User | - - -## Documentation For Models - - - [AgendaDTO](doc//AgendaDTO.md) - - [AgendaDTOAllOfAgendaMapProvider](doc//AgendaDTOAllOfAgendaMapProvider.md) - - [ArticleDTO](doc//ArticleDTO.md) - - [CategorieDTO](doc//CategorieDTO.md) - - [ConfigurationDTO](doc//ConfigurationDTO.md) - - [ContentDTO](doc//ContentDTO.md) - - [ContentDTOResource](doc//ContentDTOResource.md) - - [DeviceDTO](doc//DeviceDTO.md) - - [DeviceDetailDTO](doc//DeviceDetailDTO.md) - - [ExportConfigurationDTO](doc//ExportConfigurationDTO.md) - - [GeoPoint](doc//GeoPoint.md) - - [GeoPointDTO](doc//GeoPointDTO.md) - - [GeoPointSectionMap](doc//GeoPointSectionMap.md) - - [Instance](doc//Instance.md) - - [InstanceDTO](doc//InstanceDTO.md) - - [LoginDTO](doc//LoginDTO.md) - - [MapDTO](doc//MapDTO.md) - - [MapDTOAllOfMapProvider](doc//MapDTOAllOfMapProvider.md) - - [MapDTOAllOfMapType](doc//MapDTOAllOfMapType.md) - - [MapDTOAllOfMapTypeMapbox](doc//MapDTOAllOfMapTypeMapbox.md) - - [MapProvider](doc//MapProvider.md) - - [MapTypeApp](doc//MapTypeApp.md) - - [MapTypeMapBox](doc//MapTypeMapBox.md) - - [MenuDTO](doc//MenuDTO.md) - - [OrderedTranslationAndResourceDTO](doc//OrderedTranslationAndResourceDTO.md) - - [PdfDTO](doc//PdfDTO.md) - - [PlayerMessageDTO](doc//PlayerMessageDTO.md) - - [PuzzleDTO](doc//PuzzleDTO.md) - - [PuzzleDTOAllOfPuzzleImage](doc//PuzzleDTOAllOfPuzzleImage.md) - - [QuestionDTO](doc//QuestionDTO.md) - - [QuestionDTOImageBackgroundResourceType](doc//QuestionDTOImageBackgroundResourceType.md) - - [QuizDTO](doc//QuizDTO.md) - - [Resource](doc//Resource.md) - - [ResourceDTO](doc//ResourceDTO.md) - - [ResourceType](doc//ResourceType.md) - - [ResponseDTO](doc//ResponseDTO.md) - - [Section](doc//Section.md) - - [SectionDTO](doc//SectionDTO.md) - - [SectionMap](doc//SectionMap.md) - - [SectionMapAllOfMapMapProvider](doc//SectionMapAllOfMapMapProvider.md) - - [SectionMapAllOfMapMapType](doc//SectionMapAllOfMapMapType.md) - - [SectionMapAllOfMapResource](doc//SectionMapAllOfMapResource.md) - - [SectionMapAllOfMapTypeMapbox](doc//SectionMapAllOfMapTypeMapbox.md) - - [SectionType](doc//SectionType.md) - - [SliderDTO](doc//SliderDTO.md) - - [TokenDTO](doc//TokenDTO.md) - - [TranslationAndResourceDTO](doc//TranslationAndResourceDTO.md) - - [TranslationDTO](doc//TranslationDTO.md) - - [User](doc//User.md) - - [UserDetailDTO](doc//UserDetailDTO.md) - - [VideoDTO](doc//VideoDTO.md) - - [WeatherDTO](doc//WeatherDTO.md) - - [WebDTO](doc//WebDTO.md) - - -## Documentation For Authorization - - -Authentication schemes defined for the API: -### bearer - -- **Type**: OAuth -- **Flow**: password -- **Authorization URL**: /authentication/Token -- **Scopes**: - - **Manager-api**: Manager WebAPI - - -## Author - - - diff --git a/manager_api_new/analysis_options.yaml b/manager_api_new/analysis_options.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/manager_api_new/doc/AgendaDTO.md b/manager_api_new/doc/AgendaDTO.md deleted file mode 100644 index 39f1981..0000000 --- a/manager_api_new/doc/AgendaDTO.md +++ /dev/null @@ -1,34 +0,0 @@ -# manager_api_new.model.AgendaDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**resourceIds** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**agendaMapProvider** | [**AgendaDTOAllOfAgendaMapProvider**](AgendaDTOAllOfAgendaMapProvider.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/AgendaDTOAllOfAgendaMapProvider.md b/manager_api_new/doc/AgendaDTOAllOfAgendaMapProvider.md deleted file mode 100644 index 46aabe9..0000000 --- a/manager_api_new/doc/AgendaDTOAllOfAgendaMapProvider.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.AgendaDTOAllOfAgendaMapProvider - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/ArticleDTO.md b/manager_api_new/doc/ArticleDTO.md deleted file mode 100644 index b23a827..0000000 --- a/manager_api_new/doc/ArticleDTO.md +++ /dev/null @@ -1,37 +0,0 @@ -# manager_api_new.model.ArticleDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**content** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**isContentTop** | **bool** | | [optional] -**audioIds** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**isReadAudioAuto** | **bool** | | [optional] -**contents** | [**List**](ContentDTO.md) | | [optional] [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/AuthenticationApi.md b/manager_api_new/doc/AuthenticationApi.md deleted file mode 100644 index 9ef127e..0000000 --- a/manager_api_new/doc/AuthenticationApi.md +++ /dev/null @@ -1,109 +0,0 @@ -# manager_api_new.api.AuthenticationApi - -## Load the API package -```dart -import 'package:manager_api_new/api.dart'; -``` - -All URIs are relative to *https://localhost:5001* - -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:manager_api_new/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:manager_api_new/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_new/doc/CategorieDTO.md b/manager_api_new/doc/CategorieDTO.md deleted file mode 100644 index 688a61d..0000000 --- a/manager_api_new/doc/CategorieDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# manager_api_new.model.CategorieDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**label** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**icon** | **String** | | [optional] -**resourceDTO** | [**ContentDTOResource**](ContentDTOResource.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_new/doc/ConfigurationApi.md b/manager_api_new/doc/ConfigurationApi.md deleted file mode 100644 index 8e88412..0000000 --- a/manager_api_new/doc/ConfigurationApi.md +++ /dev/null @@ -1,367 +0,0 @@ -# manager_api_new.api.ConfigurationApi - -## Load the API package -```dart -import 'package:manager_api_new/api.dart'; -``` - -All URIs are relative to *https://localhost:5001* - -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 | -[**configurationGetConfigurationsByPinCode**](ConfigurationApi.md#configurationgetconfigurationsbypincode) | **GET** /api/Configuration/byPin | -[**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:manager_api_new/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:manager_api_new/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** -> MultipartFile configurationExport(id, language) - - - -### Example -```dart -import 'package:manager_api_new/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 | -final language = language_example; // String | - -try { - final result = api_instance.configurationExport(id, language); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationExport: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **language** | **String**| | [optional] - -### 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) - -# **configurationGet** -> List configurationGet(instanceId) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ConfigurationApi(); -final instanceId = instanceId_example; // String | - -try { - final result = api_instance.configurationGet(instanceId); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationGet: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| | [optional] - -### 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) - -# **configurationGetConfigurationsByPinCode** -> List configurationGetConfigurationsByPinCode(pinCode) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ConfigurationApi(); -final pinCode = pinCode_example; // String | - -try { - final result = api_instance.configurationGetConfigurationsByPinCode(pinCode); - print(result); -} catch (e) { - print('Exception when calling ConfigurationApi->configurationGetConfigurationsByPinCode: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pinCode** | **String**| | [optional] - -### 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:manager_api_new/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:manager_api_new/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:manager_api_new/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_new/doc/ConfigurationDTO.md b/manager_api_new/doc/ConfigurationDTO.md deleted file mode 100644 index 3f099f6..0000000 --- a/manager_api_new/doc/ConfigurationDTO.md +++ /dev/null @@ -1,35 +0,0 @@ -# manager_api_new.model.ConfigurationDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**imageId** | **String** | | [optional] -**imageSource** | **String** | | [optional] -**primaryColor** | **String** | | [optional] -**secondaryColor** | **String** | | [optional] -**languages** | **List** | | [optional] [default to const []] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**isMobile** | **bool** | | [optional] -**isTablet** | **bool** | | [optional] -**isOffline** | **bool** | | [optional] -**instanceId** | **String** | | [optional] -**sectionIds** | **List** | | [optional] [default to const []] -**loaderImageId** | **String** | | [optional] -**loaderImageUrl** | **String** | | [optional] -**isDate** | **bool** | | [optional] -**isHour** | **bool** | | [optional] -**isSectionImageBackground** | **bool** | | [optional] -**roundedValue** | **int** | | [optional] -**screenPercentageSectionsMainPage** | **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_new/doc/ContentDTO.md b/manager_api_new/doc/ContentDTO.md deleted file mode 100644 index eccf209..0000000 --- a/manager_api_new/doc/ContentDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# manager_api_new.model.ContentDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**order** | **int** | | [optional] -**resourceId** | **String** | | [optional] -**resource** | [**ContentDTOResource**](ContentDTOResource.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/ContentDTOResource.md b/manager_api_new/doc/ContentDTOResource.md deleted file mode 100644 index 2315aec..0000000 --- a/manager_api_new/doc/ContentDTOResource.md +++ /dev/null @@ -1,20 +0,0 @@ -# manager_api_new.model.ContentDTOResource - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**type** | [**ResourceType**](ResourceType.md) | | [optional] -**label** | **String** | | [optional] -**url** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**instanceId** | **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_new/doc/ContentGeoPoint.md b/manager_api_new/doc/ContentGeoPoint.md deleted file mode 100644 index 682228e..0000000 --- a/manager_api_new/doc/ContentGeoPoint.md +++ /dev/null @@ -1,18 +0,0 @@ -# manager_api_new.model.ContentGeoPoint - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**resourceId** | **String** | | [optional] -**resourceType** | [**ResourceType**](ResourceType.md) | | [optional] -**resourceUrl** | **String** | | [optional] -**resourceName** | **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_new/doc/DeviceApi.md b/manager_api_new/doc/DeviceApi.md deleted file mode 100644 index 1173900..0000000 --- a/manager_api_new/doc/DeviceApi.md +++ /dev/null @@ -1,277 +0,0 @@ -# manager_api_new.api.DeviceApi - -## Load the API package -```dart -import 'package:manager_api_new/api.dart'; -``` - -All URIs are relative to *https://localhost:5001* - -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:manager_api_new/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:manager_api_new/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(instanceId) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = DeviceApi(); -final instanceId = instanceId_example; // String | - -try { - final result = api_instance.deviceGet(instanceId); - print(result); -} catch (e) { - print('Exception when calling DeviceApi->deviceGet: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| | [optional] - -### 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:manager_api_new/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:manager_api_new/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:manager_api_new/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_new/doc/DeviceDTO.md b/manager_api_new/doc/DeviceDTO.md deleted file mode 100644 index d2c0be2..0000000 --- a/manager_api_new/doc/DeviceDTO.md +++ /dev/null @@ -1,25 +0,0 @@ -# manager_api_new.model.DeviceDTO - -## Load the model package -```dart -import 'package:manager_api_new/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] -**instanceId** | **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_new/doc/DeviceDetailDTO.md b/manager_api_new/doc/DeviceDetailDTO.md deleted file mode 100644 index 2899936..0000000 --- a/manager_api_new/doc/DeviceDetailDTO.md +++ /dev/null @@ -1,29 +0,0 @@ -# manager_api_new.model.DeviceDetailDTO - -## Load the model package -```dart -import 'package:manager_api_new/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] -**instanceId** | **String** | | [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_new/doc/DeviceDetailDTOAllOf.md b/manager_api_new/doc/DeviceDetailDTOAllOf.md deleted file mode 100644 index 0b6c098..0000000 --- a/manager_api_new/doc/DeviceDetailDTOAllOf.md +++ /dev/null @@ -1,18 +0,0 @@ -# manager_api_new.model.DeviceDetailDTOAllOf - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/ExportConfigurationDTO.md b/manager_api_new/doc/ExportConfigurationDTO.md deleted file mode 100644 index e2abee5..0000000 --- a/manager_api_new/doc/ExportConfigurationDTO.md +++ /dev/null @@ -1,37 +0,0 @@ -# manager_api_new.model.ExportConfigurationDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**imageId** | **String** | | [optional] -**imageSource** | **String** | | [optional] -**primaryColor** | **String** | | [optional] -**secondaryColor** | **String** | | [optional] -**languages** | **List** | | [optional] [default to const []] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**isMobile** | **bool** | | [optional] -**isTablet** | **bool** | | [optional] -**isOffline** | **bool** | | [optional] -**instanceId** | **String** | | [optional] -**sectionIds** | **List** | | [optional] [default to const []] -**loaderImageId** | **String** | | [optional] -**loaderImageUrl** | **String** | | [optional] -**isDate** | **bool** | | [optional] -**isHour** | **bool** | | [optional] -**isSectionImageBackground** | **bool** | | [optional] -**roundedValue** | **int** | | [optional] -**screenPercentageSectionsMainPage** | **int** | | [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_new/doc/ExportConfigurationDTOAllOf.md b/manager_api_new/doc/ExportConfigurationDTOAllOf.md deleted file mode 100644 index 6e8eeff..0000000 --- a/manager_api_new/doc/ExportConfigurationDTOAllOf.md +++ /dev/null @@ -1,16 +0,0 @@ -# manager_api_new.model.ExportConfigurationDTOAllOf - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/GeoPoint.md b/manager_api_new/doc/GeoPoint.md deleted file mode 100644 index 60f5aa0..0000000 --- a/manager_api_new/doc/GeoPoint.md +++ /dev/null @@ -1,30 +0,0 @@ -# manager_api_new.model.GeoPoint - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**title** | [**List**](TranslationDTO.md) | | [default to const []] -**description** | [**List**](TranslationDTO.md) | | [default to const []] -**contents** | [**List**](ContentDTO.md) | | [default to const []] -**schedules** | [**List**](TranslationDTO.md) | | [default to const []] -**prices** | [**List**](TranslationDTO.md) | | [default to const []] -**phone** | [**List**](TranslationDTO.md) | | [default to const []] -**email** | [**List**](TranslationDTO.md) | | [default to const []] -**site** | [**List**](TranslationDTO.md) | | [default to const []] -**categorieId** | **int** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**imageResourceId** | **String** | | [optional] -**imageUrl** | **String** | | [optional] -**sectionMapId** | **String** | | [optional] -**sectionMap** | [**GeoPointSectionMap**](GeoPointSectionMap.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/GeoPointDTO.md b/manager_api_new/doc/GeoPointDTO.md deleted file mode 100644 index 2ec2498..0000000 --- a/manager_api_new/doc/GeoPointDTO.md +++ /dev/null @@ -1,28 +0,0 @@ -# manager_api_new.model.GeoPointDTO - -## Load the model package -```dart -import 'package:manager_api_new/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 []] -**contents** | [**List**](ContentDTO.md) | | [optional] [default to const []] -**categorieId** | **int** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**imageResourceId** | **String** | | [optional] -**imageUrl** | **String** | | [optional] -**schedules** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**prices** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**phone** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**email** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**site** | [**List**](TranslationDTO.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_new/doc/GeoPointDTOCategorie.md b/manager_api_new/doc/GeoPointDTOCategorie.md deleted file mode 100644 index eeefaed..0000000 --- a/manager_api_new/doc/GeoPointDTOCategorie.md +++ /dev/null @@ -1,20 +0,0 @@ -# manager_api_new.model.GeoPointDTOCategorie - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**label** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**icon** | **String** | | [optional] -**iconResourceId** | **String** | | [optional] -**iconUrl** | **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_new/doc/GeoPointSectionMap.md b/manager_api_new/doc/GeoPointSectionMap.md deleted file mode 100644 index 1eb7bb9..0000000 --- a/manager_api_new/doc/GeoPointSectionMap.md +++ /dev/null @@ -1,42 +0,0 @@ -# manager_api_new.model.GeoPointSectionMap - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**label** | **String** | | -**title** | [**List**](TranslationDTO.md) | | [default to const []] -**configurationId** | **String** | | -**type** | [**SectionType**](SectionType.md) | | -**isSubSection** | **bool** | | -**instanceId** | **String** | | -**mapCategories** | [**List**](CategorieDTO.md) | | [default to const []] -**description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**order** | **int** | | [optional] -**imageId** | **String** | | [optional] -**imageSource** | **String** | | [optional] -**parentId** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**mapZoom** | **int** | | [optional] -**mapMapType** | [**SectionMapAllOfMapMapType**](SectionMapAllOfMapMapType.md) | | [optional] -**mapTypeMapbox** | [**SectionMapAllOfMapTypeMapbox**](SectionMapAllOfMapTypeMapbox.md) | | [optional] -**mapMapProvider** | [**SectionMapAllOfMapMapProvider**](SectionMapAllOfMapMapProvider.md) | | [optional] -**mapPoints** | [**List**](GeoPoint.md) | | [optional] [default to const []] -**mapResourceId** | **String** | | [optional] -**mapResource** | [**SectionMapAllOfMapResource**](SectionMapAllOfMapResource.md) | | [optional] -**mapCenterLatitude** | **String** | | [optional] -**mapCenterLongitude** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/ImageDTO.md b/manager_api_new/doc/ImageDTO.md deleted file mode 100644 index 20db40a..0000000 --- a/manager_api_new/doc/ImageDTO.md +++ /dev/null @@ -1,20 +0,0 @@ -# manager_api_new.model.ImageDTO - -## Load the model package -```dart -import 'package:manager_api_new/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] -**type** | [**ResourceType**](ResourceType.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/ImageGeoPoint.md b/manager_api_new/doc/ImageGeoPoint.md deleted file mode 100644 index 7460899..0000000 --- a/manager_api_new/doc/ImageGeoPoint.md +++ /dev/null @@ -1,16 +0,0 @@ -# manager_api_new.model.ImageGeoPoint - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/Instance.md b/manager_api_new/doc/Instance.md deleted file mode 100644 index 4fa498d..0000000 --- a/manager_api_new/doc/Instance.md +++ /dev/null @@ -1,18 +0,0 @@ -# manager_api_new.model.Instance - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**name** | **String** | | -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**pinCode** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/InstanceApi.md b/manager_api_new/doc/InstanceApi.md deleted file mode 100644 index 5d8e006..0000000 --- a/manager_api_new/doc/InstanceApi.md +++ /dev/null @@ -1,273 +0,0 @@ -# manager_api_new.api.InstanceApi - -## Load the API package -```dart -import 'package:manager_api_new/api.dart'; -``` - -All URIs are relative to *https://localhost:5001* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**instanceCreateInstance**](InstanceApi.md#instancecreateinstance) | **POST** /api/Instance | -[**instanceDeleteInstance**](InstanceApi.md#instancedeleteinstance) | **DELETE** /api/Instance/{id} | -[**instanceGet**](InstanceApi.md#instanceget) | **GET** /api/Instance | -[**instanceGetDetail**](InstanceApi.md#instancegetdetail) | **GET** /api/Instance/{id} | -[**instanceGetInstanceByPinCode**](InstanceApi.md#instancegetinstancebypincode) | **GET** /api/Instance/byPin | -[**instanceUpdateinstance**](InstanceApi.md#instanceupdateinstance) | **PUT** /api/Instance | - - -# **instanceCreateInstance** -> InstanceDTO instanceCreateInstance(instanceDTO) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = InstanceApi(); -final instanceDTO = InstanceDTO(); // InstanceDTO | - -try { - final result = api_instance.instanceCreateInstance(instanceDTO); - print(result); -} catch (e) { - print('Exception when calling InstanceApi->instanceCreateInstance: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **instanceDTO** | [**InstanceDTO**](InstanceDTO.md)| | - -### Return type - -[**InstanceDTO**](InstanceDTO.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) - -# **instanceDeleteInstance** -> String instanceDeleteInstance(id) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = InstanceApi(); -final id = id_example; // String | - -try { - final result = api_instance.instanceDeleteInstance(id); - print(result); -} catch (e) { - print('Exception when calling InstanceApi->instanceDeleteInstance: $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) - -# **instanceGet** -> List instanceGet() - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = InstanceApi(); - -try { - final result = api_instance.instanceGet(); - print(result); -} catch (e) { - print('Exception when calling InstanceApi->instanceGet: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](Instance.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) - -# **instanceGetDetail** -> InstanceDTO instanceGetDetail(id) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = InstanceApi(); -final id = id_example; // String | - -try { - final result = api_instance.instanceGetDetail(id); - print(result); -} catch (e) { - print('Exception when calling InstanceApi->instanceGetDetail: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**InstanceDTO**](InstanceDTO.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) - -# **instanceGetInstanceByPinCode** -> InstanceDTO instanceGetInstanceByPinCode(pinCode) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = InstanceApi(); -final pinCode = pinCode_example; // String | - -try { - final result = api_instance.instanceGetInstanceByPinCode(pinCode); - print(result); -} catch (e) { - print('Exception when calling InstanceApi->instanceGetInstanceByPinCode: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pinCode** | **String**| | [optional] - -### Return type - -[**InstanceDTO**](InstanceDTO.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) - -# **instanceUpdateinstance** -> InstanceDTO instanceUpdateinstance(instanceDTO) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = InstanceApi(); -final instanceDTO = InstanceDTO(); // InstanceDTO | - -try { - final result = api_instance.instanceUpdateinstance(instanceDTO); - print(result); -} catch (e) { - print('Exception when calling InstanceApi->instanceUpdateinstance: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **instanceDTO** | [**InstanceDTO**](InstanceDTO.md)| | - -### Return type - -[**InstanceDTO**](InstanceDTO.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_new/doc/InstanceDTO.md b/manager_api_new/doc/InstanceDTO.md deleted file mode 100644 index 9bc7fab..0000000 --- a/manager_api_new/doc/InstanceDTO.md +++ /dev/null @@ -1,18 +0,0 @@ -# manager_api_new.model.InstanceDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**name** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**pinCode** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/LevelDTO.md b/manager_api_new/doc/LevelDTO.md deleted file mode 100644 index 5627672..0000000 --- a/manager_api_new/doc/LevelDTO.md +++ /dev/null @@ -1,15 +0,0 @@ -# manager_api_new.model.LevelDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | [**List**](TranslationAndResourceDTO.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_new/doc/LoginDTO.md b/manager_api_new/doc/LoginDTO.md deleted file mode 100644 index a07728f..0000000 --- a/manager_api_new/doc/LoginDTO.md +++ /dev/null @@ -1,16 +0,0 @@ -# manager_api_new.model.LoginDTO - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MapDTO.md b/manager_api_new/doc/MapDTO.md deleted file mode 100644 index 84aa572..0000000 --- a/manager_api_new/doc/MapDTO.md +++ /dev/null @@ -1,42 +0,0 @@ -# manager_api_new.model.MapDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**zoom** | **int** | | [optional] -**mapType** | [**MapDTOAllOfMapType**](MapDTOAllOfMapType.md) | | [optional] -**mapTypeMapbox** | [**MapDTOAllOfMapTypeMapbox**](MapDTOAllOfMapTypeMapbox.md) | | [optional] -**mapProvider** | [**MapDTOAllOfMapProvider**](MapDTOAllOfMapProvider.md) | | [optional] -**points** | [**List**](GeoPointDTO.md) | | [optional] [default to const []] -**iconResourceId** | **String** | | [optional] -**iconSource** | **String** | | [optional] -**categories** | [**List**](CategorieDTO.md) | | [optional] [default to const []] -**centerLatitude** | **String** | | [optional] -**centerLongitude** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/MapDTOAllOfMapProvider.md b/manager_api_new/doc/MapDTOAllOfMapProvider.md deleted file mode 100644 index 0a1a2ea..0000000 --- a/manager_api_new/doc/MapDTOAllOfMapProvider.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.MapDTOAllOfMapProvider - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MapDTOAllOfMapType.md b/manager_api_new/doc/MapDTOAllOfMapType.md deleted file mode 100644 index 2ad023c..0000000 --- a/manager_api_new/doc/MapDTOAllOfMapType.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.MapDTOAllOfMapType - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MapDTOAllOfMapTypeMapbox.md b/manager_api_new/doc/MapDTOAllOfMapTypeMapbox.md deleted file mode 100644 index 90894c3..0000000 --- a/manager_api_new/doc/MapDTOAllOfMapTypeMapbox.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.MapDTOAllOfMapTypeMapbox - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MapDTOMapProvider.md b/manager_api_new/doc/MapDTOMapProvider.md deleted file mode 100644 index ab01794..0000000 --- a/manager_api_new/doc/MapDTOMapProvider.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.MapDTOMapProvider - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MapDTOMapType.md b/manager_api_new/doc/MapDTOMapType.md deleted file mode 100644 index 514d3b3..0000000 --- a/manager_api_new/doc/MapDTOMapType.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.MapDTOMapType - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MapDTOMapTypeMapbox.md b/manager_api_new/doc/MapDTOMapTypeMapbox.md deleted file mode 100644 index 9014978..0000000 --- a/manager_api_new/doc/MapDTOMapTypeMapbox.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.MapDTOMapTypeMapbox - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MapProvider.md b/manager_api_new/doc/MapProvider.md deleted file mode 100644 index 21714af..0000000 --- a/manager_api_new/doc/MapProvider.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.MapProvider - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MapTypeApp.md b/manager_api_new/doc/MapTypeApp.md deleted file mode 100644 index 4aaf681..0000000 --- a/manager_api_new/doc/MapTypeApp.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.MapTypeApp - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MapTypeMapBox.md b/manager_api_new/doc/MapTypeMapBox.md deleted file mode 100644 index 561b3a4..0000000 --- a/manager_api_new/doc/MapTypeMapBox.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.MapTypeMapBox - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/MenuDTO.md b/manager_api_new/doc/MenuDTO.md deleted file mode 100644 index 991ec03..0000000 --- a/manager_api_new/doc/MenuDTO.md +++ /dev/null @@ -1,33 +0,0 @@ -# manager_api_new.model.MenuDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**sections** | [**List**](Object.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_new/doc/OrderedTranslationAndResourceDTO.md b/manager_api_new/doc/OrderedTranslationAndResourceDTO.md deleted file mode 100644 index aa8231e..0000000 --- a/manager_api_new/doc/OrderedTranslationAndResourceDTO.md +++ /dev/null @@ -1,16 +0,0 @@ -# manager_api_new.model.OrderedTranslationAndResourceDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**translationAndResourceDTOs** | [**List**](TranslationAndResourceDTO.md) | | [optional] [default to const []] -**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_new/doc/PDFFileDTO.md b/manager_api_new/doc/PDFFileDTO.md deleted file mode 100644 index f70fea4..0000000 --- a/manager_api_new/doc/PDFFileDTO.md +++ /dev/null @@ -1,16 +0,0 @@ -# manager_api_new.model.PDFFileDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pdfFilesAndTitles** | [**List**](TranslationAndResourceDTO.md) | | [optional] [default to const []] -**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_new/doc/PdfDTO.md b/manager_api_new/doc/PdfDTO.md deleted file mode 100644 index b50f735..0000000 --- a/manager_api_new/doc/PdfDTO.md +++ /dev/null @@ -1,33 +0,0 @@ -# manager_api_new.model.PdfDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**pdfs** | [**List**](OrderedTranslationAndResourceDTO.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_new/doc/PlayerMessageDTO.md b/manager_api_new/doc/PlayerMessageDTO.md deleted file mode 100644 index 4e6ac89..0000000 --- a/manager_api_new/doc/PlayerMessageDTO.md +++ /dev/null @@ -1,16 +0,0 @@ -# manager_api_new.model.PlayerMessageDTO - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/PuzzleDTO.md b/manager_api_new/doc/PuzzleDTO.md deleted file mode 100644 index 2c55b8d..0000000 --- a/manager_api_new/doc/PuzzleDTO.md +++ /dev/null @@ -1,38 +0,0 @@ -# manager_api_new.model.PuzzleDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**messageDebut** | [**List**](TranslationAndResourceDTO.md) | | [optional] [default to const []] -**messageFin** | [**List**](TranslationAndResourceDTO.md) | | [optional] [default to const []] -**puzzleImage** | [**PuzzleDTOAllOfPuzzleImage**](PuzzleDTOAllOfPuzzleImage.md) | | [optional] -**puzzleImageId** | **String** | | [optional] -**rows** | **int** | | [optional] -**cols** | **int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/PuzzleDTOAllOfPuzzleImage.md b/manager_api_new/doc/PuzzleDTOAllOfPuzzleImage.md deleted file mode 100644 index 926dfa7..0000000 --- a/manager_api_new/doc/PuzzleDTOAllOfPuzzleImage.md +++ /dev/null @@ -1,20 +0,0 @@ -# manager_api_new.model.PuzzleDTOAllOfPuzzleImage - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**type** | [**ResourceType**](ResourceType.md) | | [optional] -**label** | **String** | | [optional] -**url** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**instanceId** | **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_new/doc/PuzzleDTOImage.md b/manager_api_new/doc/PuzzleDTOImage.md deleted file mode 100644 index 9777e5f..0000000 --- a/manager_api_new/doc/PuzzleDTOImage.md +++ /dev/null @@ -1,20 +0,0 @@ -# manager_api_new.model.PuzzleDTOImage - -## Load the model package -```dart -import 'package:manager_api_new/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] -**resourceUrl** | **String** | | [optional] -**order** | **int** | | [optional] -**resourceType** | [**ResourceType**](ResourceType.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/QuestionDTO.md b/manager_api_new/doc/QuestionDTO.md deleted file mode 100644 index ad9d7c4..0000000 --- a/manager_api_new/doc/QuestionDTO.md +++ /dev/null @@ -1,21 +0,0 @@ -# manager_api_new.model.QuestionDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**label** | [**List**](TranslationAndResourceDTO.md) | | [optional] [default to const []] -**responses** | [**List**](ResponseDTO.md) | | [optional] [default to const []] -**imageBackgroundResourceId** | **String** | | [optional] -**imageBackgroundResourceType** | [**QuestionDTOImageBackgroundResourceType**](QuestionDTOImageBackgroundResourceType.md) | | [optional] -**imageBackgroundResourceUrl** | **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_new/doc/QuestionDTOImageBackgroundResourceType.md b/manager_api_new/doc/QuestionDTOImageBackgroundResourceType.md deleted file mode 100644 index fd5da45..0000000 --- a/manager_api_new/doc/QuestionDTOImageBackgroundResourceType.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.QuestionDTOImageBackgroundResourceType - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/QuizDTO.md b/manager_api_new/doc/QuizDTO.md deleted file mode 100644 index dace0c8..0000000 --- a/manager_api_new/doc/QuizDTO.md +++ /dev/null @@ -1,37 +0,0 @@ -# manager_api_new.model.QuizDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**questions** | [**List**](QuestionDTO.md) | | [optional] [default to const []] -**badLevel** | [**List**](TranslationAndResourceDTO.md) | | [optional] [default to const []] -**mediumLevel** | [**List**](TranslationAndResourceDTO.md) | | [optional] [default to const []] -**goodLevel** | [**List**](TranslationAndResourceDTO.md) | | [optional] [default to const []] -**greatLevel** | [**List**](TranslationAndResourceDTO.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_new/doc/QuizQuestion.md b/manager_api_new/doc/QuizQuestion.md deleted file mode 100644 index f8dd67a..0000000 --- a/manager_api_new/doc/QuizQuestion.md +++ /dev/null @@ -1,22 +0,0 @@ -# manager_api_new.model.QuizQuestion - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | -**label** | [**List**](TranslationAndResourceDTO.md) | | [default to const []] -**responses** | [**List**](ResponseDTO.md) | | [default to const []] -**resourceId** | **String** | | [optional] -**resource** | [**SectionMapAllOfMapResource**](SectionMapAllOfMapResource.md) | | [optional] -**order** | **int** | | [optional] -**sectionQuizId** | **String** | | [optional] -**sectionQuiz** | [**QuizQuestionSectionQuiz**](QuizQuestionSectionQuiz.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_new/doc/QuizQuestionResource.md b/manager_api_new/doc/QuizQuestionResource.md deleted file mode 100644 index 88ce9ce..0000000 --- a/manager_api_new/doc/QuizQuestionResource.md +++ /dev/null @@ -1,20 +0,0 @@ -# manager_api_new.model.QuizQuestionResource - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**type** | [**ResourceType**](ResourceType.md) | | -**label** | **String** | | -**instanceId** | **String** | | -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**url** | **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_new/doc/QuizQuestionSectionQuiz.md b/manager_api_new/doc/QuizQuestionSectionQuiz.md deleted file mode 100644 index 8979911..0000000 --- a/manager_api_new/doc/QuizQuestionSectionQuiz.md +++ /dev/null @@ -1,37 +0,0 @@ -# manager_api_new.model.QuizQuestionSectionQuiz - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**label** | **String** | | -**title** | [**List**](TranslationDTO.md) | | [default to const []] -**configurationId** | **String** | | -**type** | [**SectionType**](SectionType.md) | | -**isSubSection** | **bool** | | -**instanceId** | **String** | | -**quizQuestions** | [**List**](QuizQuestion.md) | | [default to const []] -**quizBadLevel** | [**List**](TranslationAndResourceDTO.md) | | [default to const []] -**quizMediumLevel** | [**List**](TranslationAndResourceDTO.md) | | [default to const []] -**quizGoodLevel** | [**List**](TranslationAndResourceDTO.md) | | [default to const []] -**quizGreatLevel** | [**List**](TranslationAndResourceDTO.md) | | [default to const []] -**description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**order** | **int** | | [optional] -**imageId** | **String** | | [optional] -**imageSource** | **String** | | [optional] -**parentId** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] - -[[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_new/doc/QuizzDTO.md b/manager_api_new/doc/QuizzDTO.md deleted file mode 100644 index c359720..0000000 --- a/manager_api_new/doc/QuizzDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# manager_api_new.model.QuizzDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**questions** | [**List**](QuestionDTO.md) | | [optional] [default to const []] -**badLevel** | [**QuizzDTOBadLevel**](QuizzDTOBadLevel.md) | | [optional] -**mediumLevel** | [**QuizzDTOBadLevel**](QuizzDTOBadLevel.md) | | [optional] -**goodLevel** | [**QuizzDTOBadLevel**](QuizzDTOBadLevel.md) | | [optional] -**greatLevel** | [**QuizzDTOBadLevel**](QuizzDTOBadLevel.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_new/doc/QuizzDTOBadLevel.md b/manager_api_new/doc/QuizzDTOBadLevel.md deleted file mode 100644 index c89cf1c..0000000 --- a/manager_api_new/doc/QuizzDTOBadLevel.md +++ /dev/null @@ -1,15 +0,0 @@ -# manager_api_new.model.QuizzDTOBadLevel - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | [**List**](TranslationAndResourceDTO.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_new/doc/Resource.md b/manager_api_new/doc/Resource.md deleted file mode 100644 index 8d5a870..0000000 --- a/manager_api_new/doc/Resource.md +++ /dev/null @@ -1,20 +0,0 @@ -# manager_api_new.model.Resource - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**type** | [**ResourceType**](ResourceType.md) | | -**label** | **String** | | -**instanceId** | **String** | | -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**url** | **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_new/doc/ResourceApi.md b/manager_api_new/doc/ResourceApi.md deleted file mode 100644 index ff8f425..0000000 --- a/manager_api_new/doc/ResourceApi.md +++ /dev/null @@ -1,327 +0,0 @@ -# manager_api_new.api.ResourceApi - -## Load the API package -```dart -import 'package:manager_api_new/api.dart'; -``` - -All URIs are relative to *https://localhost:5001* - -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:manager_api_new/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:manager_api_new/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(instanceId, types) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = ResourceApi(); -final instanceId = instanceId_example; // String | -final types = []; // List | - -try { - final result = api_instance.resourceGet(instanceId, types); - print(result); -} catch (e) { - print('Exception when calling ResourceApi->resourceGet: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| | [optional] - **types** | [**List**](ResourceType.md)| | [optional] [default to const []] - -### 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:manager_api_new/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:manager_api_new/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:manager_api_new/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, instanceId) - - - -### Example -```dart -import 'package:manager_api_new/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 | -final instanceId = instanceId_example; // String | - -try { - final result = api_instance.resourceUpload(label, type, instanceId); - print(result); -} catch (e) { - print('Exception when calling ResourceApi->resourceUpload: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **label** | **String**| | [optional] - **type** | **String**| | [optional] - **instanceId** | **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_new/doc/ResourceDTO.md b/manager_api_new/doc/ResourceDTO.md deleted file mode 100644 index 883e620..0000000 --- a/manager_api_new/doc/ResourceDTO.md +++ /dev/null @@ -1,20 +0,0 @@ -# manager_api_new.model.ResourceDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**type** | [**ResourceType**](ResourceType.md) | | [optional] -**label** | **String** | | [optional] -**url** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**instanceId** | **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_new/doc/ResourceType.md b/manager_api_new/doc/ResourceType.md deleted file mode 100644 index ef72cc8..0000000 --- a/manager_api_new/doc/ResourceType.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.ResourceType - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/ResponseDTO.md b/manager_api_new/doc/ResponseDTO.md deleted file mode 100644 index 71c91bd..0000000 --- a/manager_api_new/doc/ResponseDTO.md +++ /dev/null @@ -1,17 +0,0 @@ -# manager_api_new.model.ResponseDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | [**List**](TranslationAndResourceDTO.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_new/doc/Section.md b/manager_api_new/doc/Section.md deleted file mode 100644 index 165ef46..0000000 --- a/manager_api_new/doc/Section.md +++ /dev/null @@ -1,32 +0,0 @@ -# manager_api_new.model.Section - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**label** | **String** | | -**title** | [**List**](TranslationDTO.md) | | [default to const []] -**configurationId** | **String** | | -**type** | [**SectionType**](SectionType.md) | | -**isSubSection** | **bool** | | -**instanceId** | **String** | | -**description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**order** | **int** | | [optional] -**imageId** | **String** | | [optional] -**imageSource** | **String** | | [optional] -**parentId** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] - -[[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_new/doc/SectionApi.md b/manager_api_new/doc/SectionApi.md deleted file mode 100644 index 2f7236f..0000000 --- a/manager_api_new/doc/SectionApi.md +++ /dev/null @@ -1,977 +0,0 @@ -# manager_api_new.api.SectionApi - -## Load the API package -```dart -import 'package:manager_api_new/api.dart'; -``` - -All URIs are relative to *https://localhost:5001* - -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 | -[**sectionGetAgendaDTO**](SectionApi.md#sectiongetagendadto) | **GET** /api/Section/AgendaDTO | -[**sectionGetAllBeaconsForInstance**](SectionApi.md#sectiongetallbeaconsforinstance) | **GET** /api/Section/beacons/{instanceId} | -[**sectionGetAllSectionSubSections**](SectionApi.md#sectiongetallsectionsubsections) | **GET** /api/Section/{id}/subsections | -[**sectionGetArticleDTO**](SectionApi.md#sectiongetarticledto) | **GET** /api/Section/ArticleDTO | -[**sectionGetDetail**](SectionApi.md#sectiongetdetail) | **GET** /api/Section/{id} | -[**sectionGetFromConfiguration**](SectionApi.md#sectiongetfromconfiguration) | **GET** /api/Section/configuration/{id} | -[**sectionGetFromConfigurationDetail**](SectionApi.md#sectiongetfromconfigurationdetail) | **GET** /api/Section/configuration/{id}/detail | -[**sectionGetMapDTO**](SectionApi.md#sectiongetmapdto) | **GET** /api/Section/MapDTO | -[**sectionGetMenuDTO**](SectionApi.md#sectiongetmenudto) | **GET** /api/Section/MenuDTO | -[**sectionGetPdfDTO**](SectionApi.md#sectiongetpdfdto) | **GET** /api/Section/PdfDTO | -[**sectionGetPuzzleDTO**](SectionApi.md#sectiongetpuzzledto) | **GET** /api/Section/PuzzleDTO | -[**sectionGetQuizDTO**](SectionApi.md#sectiongetquizdto) | **GET** /api/Section/QuizDTO | -[**sectionGetSliderDTO**](SectionApi.md#sectiongetsliderdto) | **GET** /api/Section/SliderDTO | -[**sectionGetVideoDTO**](SectionApi.md#sectiongetvideodto) | **GET** /api/Section/VideoDTO | -[**sectionGetWeatherDTO**](SectionApi.md#sectiongetweatherdto) | **GET** /api/Section/WeatherDTO | -[**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:manager_api_new/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:manager_api_new/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:manager_api_new/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(instanceId) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final instanceId = instanceId_example; // String | - -try { - final result = api_instance.sectionGet(instanceId); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGet: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| | [optional] - -### 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) - -# **sectionGetAgendaDTO** -> AgendaDTO sectionGetAgendaDTO() - - - -### Example -```dart -import 'package:manager_api_new/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.sectionGetAgendaDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetAgendaDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**AgendaDTO**](AgendaDTO.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) - -# **sectionGetAllBeaconsForInstance** -> List sectionGetAllBeaconsForInstance(instanceId) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final instanceId = instanceId_example; // String | - -try { - final result = api_instance.sectionGetAllBeaconsForInstance(instanceId); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetAllBeaconsForInstance: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **instanceId** | **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) - -# **sectionGetAllSectionSubSections** -> List sectionGetAllSectionSubSections(id) - - - -### Example -```dart -import 'package:manager_api_new/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) - -# **sectionGetArticleDTO** -> ArticleDTO sectionGetArticleDTO() - - - -### Example -```dart -import 'package:manager_api_new/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.sectionGetArticleDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetArticleDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ArticleDTO**](ArticleDTO.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** -> Object sectionGetDetail(id) - - - -### Example -```dart -import 'package:manager_api_new/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 - -[**Object**](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) - -# **sectionGetFromConfiguration** -> List sectionGetFromConfiguration(id) - - - -### Example -```dart -import 'package:manager_api_new/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) - -# **sectionGetFromConfigurationDetail** -> List sectionGetFromConfigurationDetail(id) - - - -### Example -```dart -import 'package:manager_api_new/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.sectionGetFromConfigurationDetail(id); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetFromConfigurationDetail: $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) - -# **sectionGetMapDTO** -> MapDTO sectionGetMapDTO() - - - -### Example -```dart -import 'package:manager_api_new/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:manager_api_new/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) - -# **sectionGetPdfDTO** -> PdfDTO sectionGetPdfDTO() - - - -### Example -```dart -import 'package:manager_api_new/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.sectionGetPdfDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetPdfDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**PdfDTO**](PdfDTO.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) - -# **sectionGetPuzzleDTO** -> PuzzleDTO sectionGetPuzzleDTO() - - - -### Example -```dart -import 'package:manager_api_new/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.sectionGetPuzzleDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetPuzzleDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**PuzzleDTO**](PuzzleDTO.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) - -# **sectionGetQuizDTO** -> QuizDTO sectionGetQuizDTO() - - - -### Example -```dart -import 'package:manager_api_new/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.sectionGetQuizDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetQuizDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**QuizDTO**](QuizDTO.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:manager_api_new/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:manager_api_new/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) - -# **sectionGetWeatherDTO** -> WeatherDTO sectionGetWeatherDTO() - - - -### Example -```dart -import 'package:manager_api_new/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.sectionGetWeatherDTO(); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionGetWeatherDTO: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**WeatherDTO**](WeatherDTO.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:manager_api_new/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:manager_api_new/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** -> Object sectionUpdate(body) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionApi(); -final body = Object(); // Object | - -try { - final result = api_instance.sectionUpdate(body); - print(result); -} catch (e) { - print('Exception when calling SectionApi->sectionUpdate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **Object**| | - -### Return type - -[**Object**](Object.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:manager_api_new/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_new/doc/SectionDTO.md b/manager_api_new/doc/SectionDTO.md deleted file mode 100644 index d5d8fc0..0000000 --- a/manager_api_new/doc/SectionDTO.md +++ /dev/null @@ -1,32 +0,0 @@ -# manager_api_new.model.SectionDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] - -[[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_new/doc/SectionMap.md b/manager_api_new/doc/SectionMap.md deleted file mode 100644 index e875189..0000000 --- a/manager_api_new/doc/SectionMap.md +++ /dev/null @@ -1,42 +0,0 @@ -# manager_api_new.model.SectionMap - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**label** | **String** | | -**title** | [**List**](TranslationDTO.md) | | [default to const []] -**configurationId** | **String** | | -**type** | [**SectionType**](SectionType.md) | | -**isSubSection** | **bool** | | -**instanceId** | **String** | | -**mapCategories** | [**List**](CategorieDTO.md) | | [default to const []] -**description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**order** | **int** | | [optional] -**imageId** | **String** | | [optional] -**imageSource** | **String** | | [optional] -**parentId** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**mapZoom** | **int** | | [optional] -**mapMapType** | [**SectionMapAllOfMapMapType**](SectionMapAllOfMapMapType.md) | | [optional] -**mapTypeMapbox** | [**SectionMapAllOfMapTypeMapbox**](SectionMapAllOfMapTypeMapbox.md) | | [optional] -**mapMapProvider** | [**SectionMapAllOfMapMapProvider**](SectionMapAllOfMapMapProvider.md) | | [optional] -**mapPoints** | [**List**](GeoPoint.md) | | [optional] [default to const []] -**mapResourceId** | **String** | | [optional] -**mapResource** | [**SectionMapAllOfMapResource**](SectionMapAllOfMapResource.md) | | [optional] -**mapCenterLatitude** | **String** | | [optional] -**mapCenterLongitude** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/SectionMapAllOfMapMapProvider.md b/manager_api_new/doc/SectionMapAllOfMapMapProvider.md deleted file mode 100644 index bc9de49..0000000 --- a/manager_api_new/doc/SectionMapAllOfMapMapProvider.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.SectionMapAllOfMapMapProvider - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/SectionMapAllOfMapMapType.md b/manager_api_new/doc/SectionMapAllOfMapMapType.md deleted file mode 100644 index 2594134..0000000 --- a/manager_api_new/doc/SectionMapAllOfMapMapType.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.SectionMapAllOfMapMapType - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/SectionMapAllOfMapResource.md b/manager_api_new/doc/SectionMapAllOfMapResource.md deleted file mode 100644 index 4d70802..0000000 --- a/manager_api_new/doc/SectionMapAllOfMapResource.md +++ /dev/null @@ -1,20 +0,0 @@ -# manager_api_new.model.SectionMapAllOfMapResource - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**type** | [**ResourceType**](ResourceType.md) | | -**label** | **String** | | -**instanceId** | **String** | | -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**url** | **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_new/doc/SectionMapAllOfMapTypeMapbox.md b/manager_api_new/doc/SectionMapAllOfMapTypeMapbox.md deleted file mode 100644 index 1998288..0000000 --- a/manager_api_new/doc/SectionMapAllOfMapTypeMapbox.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.SectionMapAllOfMapTypeMapbox - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/SectionMapApi.md b/manager_api_new/doc/SectionMapApi.md deleted file mode 100644 index 5cb26c5..0000000 --- a/manager_api_new/doc/SectionMapApi.md +++ /dev/null @@ -1,191 +0,0 @@ -# manager_api_new.api.SectionMapApi - -## Load the API package -```dart -import 'package:manager_api_new/api.dart'; -``` - -All URIs are relative to *https://localhost:5001* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**sectionMapCreate**](SectionMapApi.md#sectionmapcreate) | **POST** /api/SectionMap/{sectionId}/points | -[**sectionMapDelete**](SectionMapApi.md#sectionmapdelete) | **DELETE** /api/SectionMap/points/delete/{geoPointId} | -[**sectionMapGetAllGeoPointsFromSection**](SectionMapApi.md#sectionmapgetallgeopointsfromsection) | **GET** /api/SectionMap/{sectionId}/points | -[**sectionMapUpdate**](SectionMapApi.md#sectionmapupdate) | **PUT** /api/SectionMap | - - -# **sectionMapCreate** -> GeoPointDTO sectionMapCreate(sectionId, geoPointDTO) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionMapApi(); -final sectionId = sectionId_example; // String | -final geoPointDTO = GeoPointDTO(); // GeoPointDTO | - -try { - final result = api_instance.sectionMapCreate(sectionId, geoPointDTO); - print(result); -} catch (e) { - print('Exception when calling SectionMapApi->sectionMapCreate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sectionId** | **String**| | - **geoPointDTO** | [**GeoPointDTO**](GeoPointDTO.md)| | - -### Return type - -[**GeoPointDTO**](GeoPointDTO.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) - -# **sectionMapDelete** -> String sectionMapDelete(geoPointId) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionMapApi(); -final geoPointId = 56; // int | - -try { - final result = api_instance.sectionMapDelete(geoPointId); - print(result); -} catch (e) { - print('Exception when calling SectionMapApi->sectionMapDelete: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **geoPointId** | **int**| | - -### 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) - -# **sectionMapGetAllGeoPointsFromSection** -> List sectionMapGetAllGeoPointsFromSection(sectionId) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionMapApi(); -final sectionId = sectionId_example; // String | - -try { - final result = api_instance.sectionMapGetAllGeoPointsFromSection(sectionId); - print(result); -} catch (e) { - print('Exception when calling SectionMapApi->sectionMapGetAllGeoPointsFromSection: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sectionId** | **String**| | - -### Return type - -[**List**](GeoPointDTO.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) - -# **sectionMapUpdate** -> GeoPoint sectionMapUpdate(geoPointDTO) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionMapApi(); -final geoPointDTO = GeoPointDTO(); // GeoPointDTO | - -try { - final result = api_instance.sectionMapUpdate(geoPointDTO); - print(result); -} catch (e) { - print('Exception when calling SectionMapApi->sectionMapUpdate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **geoPointDTO** | [**GeoPointDTO**](GeoPointDTO.md)| | - -### Return type - -[**GeoPoint**](GeoPoint.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_new/doc/SectionQuiz.md b/manager_api_new/doc/SectionQuiz.md deleted file mode 100644 index 0a9e9f6..0000000 --- a/manager_api_new/doc/SectionQuiz.md +++ /dev/null @@ -1,37 +0,0 @@ -# manager_api_new.model.SectionQuiz - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**label** | **String** | | -**title** | [**List**](TranslationDTO.md) | | [default to const []] -**configurationId** | **String** | | -**type** | [**SectionType**](SectionType.md) | | -**isSubSection** | **bool** | | -**instanceId** | **String** | | -**quizQuestions** | [**List**](QuizQuestion.md) | | [default to const []] -**quizBadLevel** | [**List**](TranslationAndResourceDTO.md) | | [default to const []] -**quizMediumLevel** | [**List**](TranslationAndResourceDTO.md) | | [default to const []] -**quizGoodLevel** | [**List**](TranslationAndResourceDTO.md) | | [default to const []] -**quizGreatLevel** | [**List**](TranslationAndResourceDTO.md) | | [default to const []] -**description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] -**order** | **int** | | [optional] -**imageId** | **String** | | [optional] -**imageSource** | **String** | | [optional] -**parentId** | **String** | | [optional] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] - -[[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_new/doc/SectionQuizApi.md b/manager_api_new/doc/SectionQuizApi.md deleted file mode 100644 index 6d35ebf..0000000 --- a/manager_api_new/doc/SectionQuizApi.md +++ /dev/null @@ -1,191 +0,0 @@ -# manager_api_new.api.SectionQuizApi - -## Load the API package -```dart -import 'package:manager_api_new/api.dart'; -``` - -All URIs are relative to *https://localhost:5001* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**sectionQuizCreate**](SectionQuizApi.md#sectionquizcreate) | **POST** /api/SectionQuiz/{sectionId}/questions | -[**sectionQuizDelete**](SectionQuizApi.md#sectionquizdelete) | **DELETE** /api/SectionQuiz/questions/delete/{quizQuestionId} | -[**sectionQuizGetAllQuizQuestionFromSection**](SectionQuizApi.md#sectionquizgetallquizquestionfromsection) | **GET** /api/SectionQuiz/{sectionId}/questions | -[**sectionQuizUpdate**](SectionQuizApi.md#sectionquizupdate) | **PUT** /api/SectionQuiz | - - -# **sectionQuizCreate** -> QuestionDTO sectionQuizCreate(sectionId, questionDTO) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionQuizApi(); -final sectionId = sectionId_example; // String | -final questionDTO = QuestionDTO(); // QuestionDTO | - -try { - final result = api_instance.sectionQuizCreate(sectionId, questionDTO); - print(result); -} catch (e) { - print('Exception when calling SectionQuizApi->sectionQuizCreate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sectionId** | **String**| | - **questionDTO** | [**QuestionDTO**](QuestionDTO.md)| | - -### Return type - -[**QuestionDTO**](QuestionDTO.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) - -# **sectionQuizDelete** -> String sectionQuizDelete(quizQuestionId) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionQuizApi(); -final quizQuestionId = 56; // int | - -try { - final result = api_instance.sectionQuizDelete(quizQuestionId); - print(result); -} catch (e) { - print('Exception when calling SectionQuizApi->sectionQuizDelete: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **quizQuestionId** | **int**| | - -### 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) - -# **sectionQuizGetAllQuizQuestionFromSection** -> List sectionQuizGetAllQuizQuestionFromSection(sectionId) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionQuizApi(); -final sectionId = sectionId_example; // String | - -try { - final result = api_instance.sectionQuizGetAllQuizQuestionFromSection(sectionId); - print(result); -} catch (e) { - print('Exception when calling SectionQuizApi->sectionQuizGetAllQuizQuestionFromSection: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sectionId** | **String**| | - -### Return type - -[**List**](QuestionDTO.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) - -# **sectionQuizUpdate** -> QuestionDTO sectionQuizUpdate(questionDTO) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = SectionQuizApi(); -final questionDTO = QuestionDTO(); // QuestionDTO | - -try { - final result = api_instance.sectionQuizUpdate(questionDTO); - print(result); -} catch (e) { - print('Exception when calling SectionQuizApi->sectionQuizUpdate: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **questionDTO** | [**QuestionDTO**](QuestionDTO.md)| | - -### Return type - -[**QuestionDTO**](QuestionDTO.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_new/doc/SectionType.md b/manager_api_new/doc/SectionType.md deleted file mode 100644 index 586ae2d..0000000 --- a/manager_api_new/doc/SectionType.md +++ /dev/null @@ -1,14 +0,0 @@ -# manager_api_new.model.SectionType - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/SliderDTO.md b/manager_api_new/doc/SliderDTO.md deleted file mode 100644 index 675c4b3..0000000 --- a/manager_api_new/doc/SliderDTO.md +++ /dev/null @@ -1,33 +0,0 @@ -# manager_api_new.model.SliderDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**contents** | [**List**](ContentDTO.md) | | [optional] [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/TokenDTO.md b/manager_api_new/doc/TokenDTO.md deleted file mode 100644 index 975c521..0000000 --- a/manager_api_new/doc/TokenDTO.md +++ /dev/null @@ -1,22 +0,0 @@ -# manager_api_new.model.TokenDTO - -## Load the model package -```dart -import 'package:manager_api_new/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] -**instanceId** | **String** | | [optional] -**pinCode** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/TranslationAndResourceDTO.md b/manager_api_new/doc/TranslationAndResourceDTO.md deleted file mode 100644 index 7d6868c..0000000 --- a/manager_api_new/doc/TranslationAndResourceDTO.md +++ /dev/null @@ -1,18 +0,0 @@ -# manager_api_new.model.TranslationAndResourceDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**language** | **String** | | [optional] -**value** | **String** | | [optional] -**resourceId** | **String** | | [optional] -**resource** | [**ContentDTOResource**](ContentDTOResource.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/TranslationDTO.md b/manager_api_new/doc/TranslationDTO.md deleted file mode 100644 index c9e67be..0000000 --- a/manager_api_new/doc/TranslationDTO.md +++ /dev/null @@ -1,16 +0,0 @@ -# manager_api_new.model.TranslationDTO - -## Load the model package -```dart -import 'package:manager_api_new/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_new/doc/User.md b/manager_api_new/doc/User.md deleted file mode 100644 index 1edb33a..0000000 --- a/manager_api_new/doc/User.md +++ /dev/null @@ -1,22 +0,0 @@ -# manager_api_new.model.User - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**email** | **String** | | -**password** | **String** | | -**lastName** | **String** | | -**token** | **String** | | -**instanceId** | **String** | | -**firstName** | **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_new/doc/UserApi.md b/manager_api_new/doc/UserApi.md deleted file mode 100644 index c46e856..0000000 --- a/manager_api_new/doc/UserApi.md +++ /dev/null @@ -1,229 +0,0 @@ -# manager_api_new.api.UserApi - -## Load the API package -```dart -import 'package:manager_api_new/api.dart'; -``` - -All URIs are relative to *https://localhost:5001* - -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(userDetailDTO) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = UserApi(); -final userDetailDTO = UserDetailDTO(); // UserDetailDTO | - -try { - final result = api_instance.userCreateUser(userDetailDTO); - print(result); -} catch (e) { - print('Exception when calling UserApi->userCreateUser: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **userDetailDTO** | [**UserDetailDTO**](UserDetailDTO.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:manager_api_new/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:manager_api_new/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:manager_api_new/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(userDetailDTO) - - - -### Example -```dart -import 'package:manager_api_new/api.dart'; -// TODO Configure OAuth2 access token for authorization: bearer -//defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = UserApi(); -final userDetailDTO = UserDetailDTO(); // UserDetailDTO | - -try { - final result = api_instance.userUpdateUser(userDetailDTO); - print(result); -} catch (e) { - print('Exception when calling UserApi->userUpdateUser: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **userDetailDTO** | [**UserDetailDTO**](UserDetailDTO.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_new/doc/UserDetailDTO.md b/manager_api_new/doc/UserDetailDTO.md deleted file mode 100644 index 5c4a0ea..0000000 --- a/manager_api_new/doc/UserDetailDTO.md +++ /dev/null @@ -1,19 +0,0 @@ -# manager_api_new.model.UserDetailDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**email** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**instanceId** | **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_new/doc/VideoDTO.md b/manager_api_new/doc/VideoDTO.md deleted file mode 100644 index 511ab32..0000000 --- a/manager_api_new/doc/VideoDTO.md +++ /dev/null @@ -1,33 +0,0 @@ -# manager_api_new.model.VideoDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**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_new/doc/WeatherDTO.md b/manager_api_new/doc/WeatherDTO.md deleted file mode 100644 index b6d019f..0000000 --- a/manager_api_new/doc/WeatherDTO.md +++ /dev/null @@ -1,35 +0,0 @@ -# manager_api_new.model.WeatherDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**city** | **String** | | [optional] -**updatedDate** | [**DateTime**](DateTime.md) | | [optional] -**result** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/manager_api_new/doc/WebDTO.md b/manager_api_new/doc/WebDTO.md deleted file mode 100644 index 3e585b6..0000000 --- a/manager_api_new/doc/WebDTO.md +++ /dev/null @@ -1,33 +0,0 @@ -# manager_api_new.model.WebDTO - -## Load the model package -```dart -import 'package:manager_api_new/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**label** | **String** | | [optional] -**title** | [**List**](TranslationDTO.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] -**dateCreation** | [**DateTime**](DateTime.md) | | [optional] -**order** | **int** | | [optional] -**instanceId** | **String** | | [optional] -**latitude** | **String** | | [optional] -**longitude** | **String** | | [optional] -**meterZoneGPS** | **int** | | [optional] -**isBeacon** | **bool** | | [optional] -**beaconId** | **int** | | [optional] -**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_new/git_push.sh b/manager_api_new/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/manager_api_new/git_push.sh +++ /dev/null @@ -1,57 +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-petstore-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_new/lib/api.dart b/manager_api_new/lib/api.dart deleted file mode 100644 index 5f5481f..0000000 --- a/manager_api_new/lib/api.dart +++ /dev/null @@ -1,121 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -library openapi.api; - -import 'dart:async'; -import 'dart:convert'; -import 'dart:io'; - -import 'package:collection/collection.dart'; -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/instance_api.dart'; -part 'api/resource_api.dart'; -part 'api/section_api.dart'; -part 'api/section_map_api.dart'; -part 'api/section_quiz_api.dart'; -part 'api/user_api.dart'; - -part 'model/agenda_dto.dart'; -part 'model/agenda_dto_all_of_agenda_map_provider.dart'; -part 'model/article_dto.dart'; -part 'model/categorie_dto.dart'; -part 'model/configuration_dto.dart'; -part 'model/content_dto.dart'; -part 'model/content_dto_resource.dart'; -part 'model/device_dto.dart'; -part 'model/device_detail_dto.dart'; -part 'model/export_configuration_dto.dart'; -part 'model/geo_point.dart'; -part 'model/geo_point_dto.dart'; -part 'model/geo_point_section_map.dart'; -part 'model/instance.dart'; -part 'model/instance_dto.dart'; -part 'model/login_dto.dart'; -part 'model/map_dto.dart'; -part 'model/map_dto_all_of_map_provider.dart'; -part 'model/map_dto_all_of_map_type.dart'; -part 'model/map_dto_all_of_map_type_mapbox.dart'; -part 'model/map_provider.dart'; -part 'model/map_type_app.dart'; -part 'model/map_type_map_box.dart'; -part 'model/menu_dto.dart'; -part 'model/ordered_translation_and_resource_dto.dart'; -part 'model/pdf_dto.dart'; -part 'model/player_message_dto.dart'; -part 'model/puzzle_dto.dart'; -part 'model/puzzle_dto_all_of_puzzle_image.dart'; -part 'model/question_dto.dart'; -part 'model/question_dto_image_background_resource_type.dart'; -part 'model/quiz_dto.dart'; -part 'model/resource.dart'; -part 'model/resource_dto.dart'; -part 'model/resource_type.dart'; -part 'model/response_dto.dart'; -part 'model/section.dart'; -part 'model/section_dto.dart'; -part 'model/section_map.dart'; -part 'model/section_map_all_of_map_map_provider.dart'; -part 'model/section_map_all_of_map_map_type.dart'; -part 'model/section_map_all_of_map_resource.dart'; -part 'model/section_map_all_of_map_type_mapbox.dart'; -part 'model/section_type.dart'; -part 'model/slider_dto.dart'; -part 'model/token_dto.dart'; -part 'model/translation_and_resource_dto.dart'; -part 'model/translation_dto.dart'; -part 'model/user.dart'; -part 'model/user_detail_dto.dart'; -part 'model/video_dto.dart'; -part 'model/weather_dto.dart'; -part 'model/web_dto.dart'; -part 'model/map_annotation.dart'; -part 'model/programme_block.dart'; -part 'model/app_configuration_link_configuration.dart'; -part 'model/app_configuration_link_device.dart'; -part 'model/app_configuration_link.dart'; -part 'model/app_configuration_link_application_instance.dart'; -part 'model/app_type.dart'; -part 'model/layout_main_page_type.dart'; -part 'model/application_instance_dto.dart'; -part 'model/application_instance_dto_section_event_dto.dart'; -part 'model/application_instance_section_event.dart'; -part 'model/section_event.dart'; -part 'model/section_event_dto.dart'; - -/// An [ApiClient] instance that uses the default values obtained from -/// the OpenAPI specification file. -var defaultApiClient = ApiClient(); - -const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'}; -const _dateEpochMarker = 'epoch'; -const _deepEquality = DeepCollectionEquality(); -final _dateFormatter = DateFormat('yyyy-MM-dd'); -final _regList = RegExp(r'^List<(.*)>$'); -final _regSet = RegExp(r'^Set<(.*)>$'); -final _regMap = RegExp(r'^Map$'); - -bool _isEpochMarker(String? pattern) => - pattern == _dateEpochMarker || pattern == '/$_dateEpochMarker/'; diff --git a/manager_api_new/lib/api/authentication_api.dart b/manager_api_new/lib/api/authentication_api.dart deleted file mode 100644 index c136358..0000000 --- a/manager_api_new/lib/api/authentication_api.dart +++ /dev/null @@ -1,182 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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 { - // ignore: prefer_const_declarations - final path = r'/api/Authentication/Token'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['multipart/form-data']; - - bool hasFields = false; - final mp = MultipartRequest('POST', Uri.parse(path)); - 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; - } - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// 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, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'TokenDTO', - ) as TokenDTO; - } - return null; - } - - /// Performs an HTTP 'POST /api/Authentication/Authenticate' operation and returns the [Response]. - /// Parameters: - /// - /// * [LoginDTO] loginDTO (required): - Future authenticationAuthenticateWithJsonWithHttpInfo( - LoginDTO loginDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Authentication/Authenticate'; - - // ignore: prefer_final_locals - Object? postBody = loginDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [LoginDTO] loginDTO (required): - Future authenticationAuthenticateWithJson( - LoginDTO loginDTO, - ) async { - final response = await authenticationAuthenticateWithJsonWithHttpInfo( - loginDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'TokenDTO', - ) as TokenDTO; - } - return null; - } -} diff --git a/manager_api_new/lib/api/configuration_api.dart b/manager_api_new/lib/api/configuration_api.dart deleted file mode 100644 index ca73489..0000000 --- a/manager_api_new/lib/api/configuration_api.dart +++ /dev/null @@ -1,476 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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 { - // ignore: prefer_const_declarations - final path = r'/api/Configuration'; - - // ignore: prefer_final_locals - Object? postBody = configurationDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [ConfigurationDTO] configurationDTO (required): - Future configurationCreate( - ConfigurationDTO configurationDTO, - ) async { - final response = await configurationCreateWithHttpInfo( - configurationDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'ConfigurationDTO', - ) as ConfigurationDTO; - } - return null; - } - - /// Performs an HTTP 'DELETE /api/Configuration/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future configurationDeleteWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Configuration/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future configurationDelete( - String id, - ) async { - final response = await configurationDeleteWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'GET /api/Configuration/{id}/export' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] language: - Future configurationExportWithHttpInfo( - String id, { - String? language, - }) async { - // ignore: prefer_const_declarations - final path = r'/api/Configuration/{id}/export'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (language != null) { - queryParams.addAll(_queryParams('', 'language', language)); - } - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] language: - Future configurationExport( - String id, { - String? language, - }) async { - final response = await configurationExportWithHttpInfo( - id, - language: language, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ExportConfigurationDTO',) as ExportConfigurationDTO; - - } - return Future.value(null); - } - - /// Performs an HTTP 'GET /api/Configuration' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] instanceId: - Future configurationGetWithHttpInfo({ - String? instanceId, - }) async { - // ignore: prefer_const_declarations - final path = r'/api/Configuration'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (instanceId != null) { - queryParams.addAll(_queryParams('', 'instanceId', instanceId)); - } - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] instanceId: - Future?> configurationGet({ - String? instanceId, - }) async { - final response = await configurationGetWithHttpInfo( - instanceId: instanceId, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync( - responseBody, 'List') as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'GET /api/Configuration/byPin' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] pinCode: - Future configurationGetConfigurationsByPinCodeWithHttpInfo({ - String? pinCode, - }) async { - // ignore: prefer_const_declarations - final path = r'/api/Configuration/byPin'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (pinCode != null) { - queryParams.addAll(_queryParams('', 'pinCode', pinCode)); - } - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] pinCode: - Future?> configurationGetConfigurationsByPinCode({ - String? pinCode, - }) async { - final response = await configurationGetConfigurationsByPinCodeWithHttpInfo( - pinCode: pinCode, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync( - responseBody, 'List') as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'GET /api/Configuration/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future configurationGetDetailWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Configuration/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future configurationGetDetail( - String id, - ) async { - final response = await configurationGetDetailWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'ConfigurationDTO', - ) as ConfigurationDTO; - } - return null; - } - - /// Performs an HTTP 'POST /api/Configuration/import' operation and returns the [Response]. - /// Parameters: - /// - /// * [ExportConfigurationDTO] exportConfigurationDTO (required): - Future configurationImportWithHttpInfo( - ExportConfigurationDTO exportConfigurationDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Configuration/import'; - - // ignore: prefer_final_locals - Object? postBody = exportConfigurationDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [ExportConfigurationDTO] exportConfigurationDTO (required): - Future configurationImport( - ExportConfigurationDTO exportConfigurationDTO, - ) async { - final response = await configurationImportWithHttpInfo( - exportConfigurationDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'PUT /api/Configuration' operation and returns the [Response]. - /// Parameters: - /// - /// * [ConfigurationDTO] configurationDTO (required): - Future configurationUpdateWithHttpInfo( - ConfigurationDTO configurationDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Configuration'; - - // ignore: prefer_final_locals - Object? postBody = configurationDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [ConfigurationDTO] configurationDTO (required): - Future configurationUpdate( - ConfigurationDTO configurationDTO, - ) async { - final response = await configurationUpdateWithHttpInfo( - configurationDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'ConfigurationDTO', - ) as ConfigurationDTO; - } - return null; - } -} diff --git a/manager_api_new/lib/api/device_api.dart b/manager_api_new/lib/api/device_api.dart deleted file mode 100644 index 8d6b451..0000000 --- a/manager_api_new/lib/api/device_api.dart +++ /dev/null @@ -1,352 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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 { - // ignore: prefer_const_declarations - final path = r'/api/Device'; - - // ignore: prefer_final_locals - Object? postBody = deviceDetailDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [DeviceDetailDTO] deviceDetailDTO (required): - Future deviceCreate( - DeviceDetailDTO deviceDetailDTO, - ) async { - final response = await deviceCreateWithHttpInfo( - deviceDetailDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'DeviceDetailDTO', - ) as DeviceDetailDTO; - } - return null; - } - - /// Performs an HTTP 'DELETE /api/Device/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future deviceDeleteWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Device/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future deviceDelete( - String id, - ) async { - final response = await deviceDeleteWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'GET /api/Device' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] instanceId: - Future deviceGetWithHttpInfo({ - String? instanceId, - }) async { - // ignore: prefer_const_declarations - final path = r'/api/Device'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (instanceId != null) { - queryParams.addAll(_queryParams('', 'instanceId', instanceId)); - } - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] instanceId: - Future?> deviceGet({ - String? instanceId, - }) async { - final response = await deviceGetWithHttpInfo( - instanceId: instanceId, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') - as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'GET /api/Device/{id}/detail' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future deviceGetDetailWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Device/{id}/detail'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future deviceGetDetail( - String id, - ) async { - final response = await deviceGetDetailWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'DeviceDetailDTO', - ) as DeviceDetailDTO; - } - return null; - } - - /// Performs an HTTP 'PUT /api/Device' operation and returns the [Response]. - /// Parameters: - /// - /// * [DeviceDetailDTO] deviceDetailDTO (required): - Future deviceUpdateWithHttpInfo( - DeviceDetailDTO deviceDetailDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Device'; - - // ignore: prefer_final_locals - Object? postBody = deviceDetailDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [DeviceDetailDTO] deviceDetailDTO (required): - Future deviceUpdate( - DeviceDetailDTO deviceDetailDTO, - ) async { - final response = await deviceUpdateWithHttpInfo( - deviceDetailDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'DeviceDetailDTO', - ) as DeviceDetailDTO; - } - return null; - } - - /// Performs an HTTP 'PUT /api/Device/mainInfos' operation and returns the [Response]. - /// Parameters: - /// - /// * [DeviceDTO] deviceDTO (required): - Future deviceUpdateMainInfosWithHttpInfo( - DeviceDTO deviceDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Device/mainInfos'; - - // ignore: prefer_final_locals - Object? postBody = deviceDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [DeviceDTO] deviceDTO (required): - Future deviceUpdateMainInfos( - DeviceDTO deviceDTO, - ) async { - final response = await deviceUpdateMainInfosWithHttpInfo( - deviceDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'DeviceDTO', - ) as DeviceDTO; - } - return null; - } -} diff --git a/manager_api_new/lib/api/instance_api.dart b/manager_api_new/lib/api/instance_api.dart deleted file mode 100644 index 45b2163..0000000 --- a/manager_api_new/lib/api/instance_api.dart +++ /dev/null @@ -1,341 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class InstanceApi { - InstanceApi([ApiClient? apiClient]) - : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/Instance' operation and returns the [Response]. - /// Parameters: - /// - /// * [InstanceDTO] instanceDTO (required): - Future instanceCreateInstanceWithHttpInfo( - InstanceDTO instanceDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Instance'; - - // ignore: prefer_final_locals - Object? postBody = instanceDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [InstanceDTO] instanceDTO (required): - Future instanceCreateInstance( - InstanceDTO instanceDTO, - ) async { - final response = await instanceCreateInstanceWithHttpInfo( - instanceDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'InstanceDTO', - ) as InstanceDTO; - } - return null; - } - - /// Performs an HTTP 'DELETE /api/Instance/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future instanceDeleteInstanceWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Instance/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future instanceDeleteInstance( - String id, - ) async { - final response = await instanceDeleteInstanceWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'GET /api/Instance' operation and returns the [Response]. - Future instanceGetWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Instance'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> instanceGet() async { - final response = await instanceGetWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') - as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'GET /api/Instance/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future instanceGetDetailWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Instance/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future instanceGetDetail( - String id, - ) async { - final response = await instanceGetDetailWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'InstanceDTO', - ) as InstanceDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Instance/byPin' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] pinCode: - Future instanceGetInstanceByPinCodeWithHttpInfo({ - String? pinCode, - }) async { - // ignore: prefer_const_declarations - final path = r'/api/Instance/byPin'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (pinCode != null) { - queryParams.addAll(_queryParams('', 'pinCode', pinCode)); - } - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] pinCode: - Future instanceGetInstanceByPinCode({ - String? pinCode, - }) async { - final response = await instanceGetInstanceByPinCodeWithHttpInfo( - pinCode: pinCode, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'InstanceDTO', - ) as InstanceDTO; - } - return null; - } - - /// Performs an HTTP 'PUT /api/Instance' operation and returns the [Response]. - /// Parameters: - /// - /// * [InstanceDTO] instanceDTO (required): - Future instanceUpdateinstanceWithHttpInfo( - InstanceDTO instanceDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Instance'; - - // ignore: prefer_final_locals - Object? postBody = instanceDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [InstanceDTO] instanceDTO (required): - Future instanceUpdateinstance( - InstanceDTO instanceDTO, - ) async { - final response = await instanceUpdateinstanceWithHttpInfo( - instanceDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'InstanceDTO', - ) as InstanceDTO; - } - return null; - } -} diff --git a/manager_api_new/lib/api/resource_api.dart b/manager_api_new/lib/api/resource_api.dart deleted file mode 100644 index 7980569..0000000 --- a/manager_api_new/lib/api/resource_api.dart +++ /dev/null @@ -1,450 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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 { - // ignore: prefer_const_declarations - final path = r'/api/Resource'; - - // ignore: prefer_final_locals - Object? postBody = resourceDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [ResourceDTO] resourceDTO (required): - Future resourceCreate( - ResourceDTO resourceDTO, - ) async { - final response = await resourceCreateWithHttpInfo( - resourceDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'ResourceDTO', - ) as ResourceDTO; - } - return null; - } - - /// Performs an HTTP 'DELETE /api/Resource/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future resourceDeleteWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Resource/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future resourceDelete( - String id, - ) async { - final response = await resourceDeleteWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'GET /api/Resource' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] instanceId: - /// - /// * [List] types: - Future resourceGetWithHttpInfo({ - String? instanceId, - List? types, - }) async { - // ignore: prefer_const_declarations - final path = r'/api/Resource'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (instanceId != null) { - queryParams.addAll(_queryParams('', 'instanceId', instanceId)); - } - if (types != null) { - queryParams.addAll(_queryParams('multi', 'types', types)); - } - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] instanceId: - /// - /// * [List] types: - Future?> resourceGet({ - String? instanceId, - List? types, - }) async { - final response = await resourceGetWithHttpInfo( - instanceId: instanceId, - types: types, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync( - responseBody, 'List') as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'GET /api/Resource/{id}/detail' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future resourceGetDetailWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Resource/{id}/detail'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future resourceGetDetail( - String id, - ) async { - final response = await resourceGetDetailWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'ResourceDTO', - ) as ResourceDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Resource/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future resourceShowWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Resource/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future resourceShow( - String id, - ) async { - final response = await resourceShowWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'MultipartFile', - ) as MultipartFile; - } - return null; - } - - /// Performs an HTTP 'PUT /api/Resource' operation and returns the [Response]. - /// Parameters: - /// - /// * [ResourceDTO] resourceDTO (required): - Future resourceUpdateWithHttpInfo( - ResourceDTO resourceDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Resource'; - - // ignore: prefer_final_locals - Object? postBody = resourceDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [ResourceDTO] resourceDTO (required): - Future resourceUpdate( - ResourceDTO resourceDTO, - ) async { - final response = await resourceUpdateWithHttpInfo( - resourceDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'ResourceDTO', - ) as ResourceDTO; - } - return null; - } - - /// Performs an HTTP 'POST /api/Resource/upload' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] label: - /// - /// * [String] type: - /// - /// * [String] instanceId: - Future resourceUploadWithHttpInfo({ - String? label, - String? type, - String? instanceId, - }) async { - // ignore: prefer_const_declarations - final path = r'/api/Resource/upload'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['multipart/form-data']; - - bool hasFields = false; - final mp = MultipartRequest('POST', Uri.parse(path)); - if (label != null) { - hasFields = true; - mp.fields[r'label'] = parameterToString(label); - } - if (type != null) { - hasFields = true; - mp.fields[r'type'] = parameterToString(type); - } - if (instanceId != null) { - hasFields = true; - mp.fields[r'instanceId'] = parameterToString(instanceId); - } - if (hasFields) { - postBody = mp; - } - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] label: - /// - /// * [String] type: - /// - /// * [String] instanceId: - Future resourceUpload({ - String? label, - String? type, - String? instanceId, - }) async { - final response = await resourceUploadWithHttpInfo( - label: label, - type: type, - instanceId: instanceId, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } -} diff --git a/manager_api_new/lib/api/section_api.dart b/manager_api_new/lib/api/section_api.dart deleted file mode 100644 index 17e08a2..0000000 --- a/manager_api_new/lib/api/section_api.dart +++ /dev/null @@ -1,1159 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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 { - // ignore: prefer_const_declarations - final path = r'/api/Section'; - - // ignore: prefer_final_locals - Object? postBody = sectionDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [SectionDTO] sectionDTO (required): - Future sectionCreate( - SectionDTO sectionDTO, - ) async { - final response = await sectionCreateWithHttpInfo( - sectionDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'SectionDTO', - ) as SectionDTO; - } - return null; - } - - /// Performs an HTTP 'DELETE /api/Section/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionDeleteWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Section/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future sectionDelete( - String id, - ) async { - final response = await sectionDeleteWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'DELETE /api/Section/configuration/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionDeleteAllForConfigurationWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Section/configuration/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future sectionDeleteAllForConfiguration( - String id, - ) async { - final response = await sectionDeleteAllForConfigurationWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] instanceId: - Future sectionGetWithHttpInfo({ - String? instanceId, - }) async { - // ignore: prefer_const_declarations - final path = r'/api/Section'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (instanceId != null) { - queryParams.addAll(_queryParams('', 'instanceId', instanceId)); - } - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] instanceId: - Future?> sectionGet({ - String? instanceId, - }) async { - final response = await sectionGetWithHttpInfo( - instanceId: instanceId, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') - as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/AgendaDTO' operation and returns the [Response]. - Future sectionGetAgendaDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/AgendaDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetAgendaDTO() async { - final response = await sectionGetAgendaDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'AgendaDTO', - ) as AgendaDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/beacons/{instanceId}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] instanceId (required): - Future sectionGetAllBeaconsForInstanceWithHttpInfo( - String instanceId, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Section/beacons/{instanceId}' - .replaceAll('{instanceId}', instanceId); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] instanceId (required): - Future?> sectionGetAllBeaconsForInstance( - String instanceId, - ) async { - final response = await sectionGetAllBeaconsForInstanceWithHttpInfo( - instanceId, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') - as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/{id}/subsections' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetAllSectionSubSectionsWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Section/{id}/subsections'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetAllSectionSubSections( - String id, - ) async { - final response = await sectionGetAllSectionSubSectionsWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - /*final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') - as List) - .cast() - .toList(growable: false);*/ - final decoded = json.decode(await _decodeBodyBytes(response)); - return decoded; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/ArticleDTO' operation and returns the [Response]. - Future sectionGetArticleDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/ArticleDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetArticleDTO() async { - final response = await sectionGetArticleDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'ArticleDTO', - ) as ArticleDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetDetailWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Section/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetDetail( - String id, - ) async { - final response = await sectionGetDetailWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - /*return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'Object', - ) as Object;*/ - - final decoded = json.decode(await _decodeBodyBytes(response)); - return decoded; // <- Ce sera un Map ou une List selon le JSON - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/configuration/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetFromConfigurationWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Section/configuration/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future?> sectionGetFromConfiguration( - String id, - ) async { - final response = await sectionGetFromConfigurationWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') - as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/configuration/{id}/detail' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetFromConfigurationDetailWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = - r'/api/Section/configuration/{id}/detail'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future sectionGetFromConfigurationDetail( - String id, - ) async { - final response = await sectionGetFromConfigurationDetailWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - /*final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') - as List) - .cast() - .toList(growable: false);*/ - final decoded = json.decode(await _decodeBodyBytes(response)); - return decoded; // <- Ce sera un Map ou une List selon le JSON - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/MapDTO' operation and returns the [Response]. - Future sectionGetMapDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/MapDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetMapDTO() async { - final response = await sectionGetMapDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'MapDTO', - ) as MapDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/MenuDTO' operation and returns the [Response]. - Future sectionGetMenuDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/MenuDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetMenuDTO() async { - final response = await sectionGetMenuDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'MenuDTO', - ) as MenuDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/PdfDTO' operation and returns the [Response]. - Future sectionGetPdfDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/PdfDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetPdfDTO() async { - final response = await sectionGetPdfDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'PdfDTO', - ) as PdfDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/PuzzleDTO' operation and returns the [Response]. - Future sectionGetPuzzleDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/PuzzleDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetPuzzleDTO() async { - final response = await sectionGetPuzzleDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'PuzzleDTO', - ) as PuzzleDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/QuizDTO' operation and returns the [Response]. - Future sectionGetQuizDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/QuizDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetQuizDTO() async { - final response = await sectionGetQuizDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'QuizDTO', - ) as QuizDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/SliderDTO' operation and returns the [Response]. - Future sectionGetSliderDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/SliderDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetSliderDTO() async { - final response = await sectionGetSliderDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'SliderDTO', - ) as SliderDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/VideoDTO' operation and returns the [Response]. - Future sectionGetVideoDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/VideoDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetVideoDTO() async { - final response = await sectionGetVideoDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'VideoDTO', - ) as VideoDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/WeatherDTO' operation and returns the [Response]. - Future sectionGetWeatherDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/WeatherDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetWeatherDTO() async { - final response = await sectionGetWeatherDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'WeatherDTO', - ) as WeatherDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/WebDTO' operation and returns the [Response]. - Future sectionGetWebDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/WebDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionGetWebDTO() async { - final response = await sectionGetWebDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'WebDTO', - ) as WebDTO; - } - return null; - } - - /// Performs an HTTP 'GET /api/Section/PlayerMessageDTO' operation and returns the [Response]. - Future sectionPlayerMessageDTOWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/Section/PlayerMessageDTO'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future sectionPlayerMessageDTO() async { - final response = await sectionPlayerMessageDTOWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'PlayerMessageDTO', - ) as PlayerMessageDTO; - } - return null; - } - - /// Performs an HTTP 'PUT /api/Section' operation and returns the [Response]. - /// Parameters: - /// - /// * [Object] body (required): - Future sectionUpdateWithHttpInfo( - Object body, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Section'; - - // ignore: prefer_final_locals - Object? postBody = body; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [Object] body (required): - Future sectionUpdate( - Object body, - ) async { - final response = await sectionUpdateWithHttpInfo( - body, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final decoded = json.decode(await _decodeBodyBytes(response)); - return decoded; - /*return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'SectionDTO', - ) as SectionDTO*/; - } - return null; - } - - /// Performs an HTTP 'PUT /api/Section/order' operation and returns the [Response]. - /// Parameters: - /// - /// * [List] sectionDTO (required): - Future sectionUpdateOrderWithHttpInfo( - List sectionDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/Section/order'; - - // ignore: prefer_final_locals - Object? postBody = sectionDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [List] sectionDTO (required): - Future sectionUpdateOrder( - List sectionDTO, - ) async { - final response = await sectionUpdateOrderWithHttpInfo( - sectionDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } -} diff --git a/manager_api_new/lib/api/section_map_api.dart b/manager_api_new/lib/api/section_map_api.dart deleted file mode 100644 index 2fd0f88..0000000 --- a/manager_api_new/lib/api/section_map_api.dart +++ /dev/null @@ -1,249 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionMapApi { - SectionMapApi([ApiClient? apiClient]) - : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/SectionMap/{sectionId}/points' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] sectionId (required): - /// - /// * [GeoPointDTO] geoPointDTO (required): - Future sectionMapCreateWithHttpInfo( - String sectionId, - GeoPointDTO geoPointDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/SectionMap/{sectionId}/points' - .replaceAll('{sectionId}', sectionId); - - // ignore: prefer_final_locals - Object? postBody = geoPointDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] sectionId (required): - /// - /// * [GeoPointDTO] geoPointDTO (required): - Future sectionMapCreate( - String sectionId, - GeoPointDTO geoPointDTO, - ) async { - final response = await sectionMapCreateWithHttpInfo( - sectionId, - geoPointDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'GeoPointDTO', - ) as GeoPointDTO; - } - return null; - } - - /// Performs an HTTP 'DELETE /api/SectionMap/points/delete/{geoPointId}' operation and returns the [Response]. - /// Parameters: - /// - /// * [int] geoPointId (required): - Future sectionMapDeleteWithHttpInfo( - int geoPointId, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/SectionMap/points/delete/{geoPointId}' - .replaceAll('{geoPointId}', geoPointId.toString()); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [int] geoPointId (required): - Future sectionMapDelete( - int geoPointId, - ) async { - final response = await sectionMapDeleteWithHttpInfo( - geoPointId, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'GET /api/SectionMap/{sectionId}/points' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] sectionId (required): - Future sectionMapGetAllGeoPointsFromSectionWithHttpInfo( - String sectionId, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/SectionMap/{sectionId}/points' - .replaceAll('{sectionId}', sectionId); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] sectionId (required): - Future?> sectionMapGetAllGeoPointsFromSection( - String sectionId, - ) async { - final response = await sectionMapGetAllGeoPointsFromSectionWithHttpInfo( - sectionId, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync( - responseBody, 'List') as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'PUT /api/SectionMap' operation and returns the [Response]. - /// Parameters: - /// - /// * [GeoPointDTO] geoPointDTO (required): - Future sectionMapUpdateWithHttpInfo( - GeoPointDTO geoPointDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/SectionMap'; - - // ignore: prefer_final_locals - Object? postBody = geoPointDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [GeoPointDTO] geoPointDTO (required): - Future sectionMapUpdate( - GeoPointDTO geoPointDTO, - ) async { - final response = await sectionMapUpdateWithHttpInfo( - geoPointDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'GeoPoint', - ) as GeoPoint; - } - return null; - } -} diff --git a/manager_api_new/lib/api/section_quiz_api.dart b/manager_api_new/lib/api/section_quiz_api.dart deleted file mode 100644 index 4bddda1..0000000 --- a/manager_api_new/lib/api/section_quiz_api.dart +++ /dev/null @@ -1,249 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionQuizApi { - SectionQuizApi([ApiClient? apiClient]) - : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/SectionQuiz/{sectionId}/questions' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] sectionId (required): - /// - /// * [QuestionDTO] questionDTO (required): - Future sectionQuizCreateWithHttpInfo( - String sectionId, - QuestionDTO questionDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/SectionQuiz/{sectionId}/questions' - .replaceAll('{sectionId}', sectionId); - - // ignore: prefer_final_locals - Object? postBody = questionDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] sectionId (required): - /// - /// * [QuestionDTO] questionDTO (required): - Future sectionQuizCreate( - String sectionId, - QuestionDTO questionDTO, - ) async { - final response = await sectionQuizCreateWithHttpInfo( - sectionId, - questionDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'QuestionDTO', - ) as QuestionDTO; - } - return null; - } - - /// Performs an HTTP 'DELETE /api/SectionQuiz/questions/delete/{quizQuestionId}' operation and returns the [Response]. - /// Parameters: - /// - /// * [int] quizQuestionId (required): - Future sectionQuizDeleteWithHttpInfo( - int quizQuestionId, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/SectionQuiz/questions/delete/{quizQuestionId}' - .replaceAll('{quizQuestionId}', quizQuestionId.toString()); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [int] quizQuestionId (required): - Future sectionQuizDelete( - int quizQuestionId, - ) async { - final response = await sectionQuizDeleteWithHttpInfo( - quizQuestionId, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'GET /api/SectionQuiz/{sectionId}/questions' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] sectionId (required): - Future sectionQuizGetAllQuizQuestionFromSectionWithHttpInfo( - String sectionId, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/SectionQuiz/{sectionId}/questions' - .replaceAll('{sectionId}', sectionId); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] sectionId (required): - Future?> sectionQuizGetAllQuizQuestionFromSection( - String sectionId, - ) async { - final response = await sectionQuizGetAllQuizQuestionFromSectionWithHttpInfo( - sectionId, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync( - responseBody, 'List') as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'PUT /api/SectionQuiz' operation and returns the [Response]. - /// Parameters: - /// - /// * [QuestionDTO] questionDTO (required): - Future sectionQuizUpdateWithHttpInfo( - QuestionDTO questionDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/SectionQuiz'; - - // ignore: prefer_final_locals - Object? postBody = questionDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [QuestionDTO] questionDTO (required): - Future sectionQuizUpdate( - QuestionDTO questionDTO, - ) async { - final response = await sectionQuizUpdateWithHttpInfo( - questionDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'QuestionDTO', - ) as QuestionDTO; - } - return null; - } -} diff --git a/manager_api_new/lib/api/user_api.dart b/manager_api_new/lib/api/user_api.dart deleted file mode 100644 index 786a2da..0000000 --- a/manager_api_new/lib/api/user_api.dart +++ /dev/null @@ -1,281 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class UserApi { - UserApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api/User' operation and returns the [Response]. - /// Parameters: - /// - /// * [UserDetailDTO] userDetailDTO (required): - Future userCreateUserWithHttpInfo( - UserDetailDTO userDetailDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/User'; - - // ignore: prefer_final_locals - Object? postBody = userDetailDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [UserDetailDTO] userDetailDTO (required): - Future userCreateUser( - UserDetailDTO userDetailDTO, - ) async { - final response = await userCreateUserWithHttpInfo( - userDetailDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'UserDetailDTO', - ) as UserDetailDTO; - } - return null; - } - - /// Performs an HTTP 'DELETE /api/User/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future userDeleteUserWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/User/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future userDeleteUser( - String id, - ) async { - final response = await userDeleteUserWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'String', - ) as String; - } - return null; - } - - /// Performs an HTTP 'GET /api/User' operation and returns the [Response]. - Future userGetWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api/User'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> userGet() async { - final response = await userGetWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') - as List) - .cast() - .toList(growable: false); - } - return null; - } - - /// Performs an HTTP 'GET /api/User/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future userGetDetailWithHttpInfo( - String id, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/User/{id}'.replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future userGetDetail( - String id, - ) async { - final response = await userGetDetailWithHttpInfo( - id, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'UserDetailDTO', - ) as UserDetailDTO; - } - return null; - } - - /// Performs an HTTP 'PUT /api/User' operation and returns the [Response]. - /// Parameters: - /// - /// * [UserDetailDTO] userDetailDTO (required): - Future userUpdateUserWithHttpInfo( - UserDetailDTO userDetailDTO, - ) async { - // ignore: prefer_const_declarations - final path = r'/api/User'; - - // ignore: prefer_final_locals - Object? postBody = userDetailDTO; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [UserDetailDTO] userDetailDTO (required): - Future userUpdateUser( - UserDetailDTO userDetailDTO, - ) async { - final response = await userUpdateUserWithHttpInfo( - userDetailDTO, - ); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _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.isNotEmpty && - response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync( - await _decodeBodyBytes(response), - 'UserDetailDTO', - ) as UserDetailDTO; - } - return null; - } -} diff --git a/manager_api_new/lib/api_client.dart b/manager_api_new/lib/api_client.dart deleted file mode 100644 index a1dca31..0000000 --- a/manager_api_new/lib/api_client.dart +++ /dev/null @@ -1,431 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ApiClient { - ApiClient({ - this.basePath = 'https://localhost:5001', - this.authentication, - }); - - final String basePath; - final Authentication? authentication; - - var _client = Client(); - final _defaultHeaderMap = {}; - - /// 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. - set client(Client newClient) { - _client = newClient; - } - - Map get defaultHeaderMap => _defaultHeaderMap; - - void addDefaultHeader(String key, String value) { - _defaultHeaderMap[key] = value; - } - - // We don't use a Map for queryParams. - // If collectionFormat is 'multi', a key might appear multiple times. - Future invokeAPI( - String path, - String method, - List queryParams, - Object? body, - Map headerParams, - Map formParams, - String? contentType, - ) async { - await authentication?.applyToParams(queryParams, headerParams); - - headerParams.addAll(_defaultHeaderMap); - if (contentType != null) { - headerParams['Content-Type'] = contentType; - } - - final urlEncodedQueryParams = queryParams.map((param) => '$param'); - final queryString = urlEncodedQueryParams.isNotEmpty - ? '?${urlEncodedQueryParams.join('&')}' - : ''; - final uri = Uri.parse('$basePath$path$queryString'); - - try { - // Special case for uploading a single file which isn't a 'multipart/form-data'. - if (body is MultipartFile && - (contentType == null || - !contentType.toLowerCase().startsWith('multipart/form-data'))) { - final request = StreamedRequest(method, uri); - request.headers.addAll(headerParams); - request.contentLength = body.length; - body.finalize().listen( - request.sink.add, - onDone: request.sink.close, - // ignore: avoid_types_on_closure_parameters - onError: (Object error, StackTrace 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); - 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 = contentType == 'application/x-www-form-urlencoded' - ? formParams - : await serializeAsync(body); - final nullableHeaderParams = headerParams.isEmpty ? null : headerParams; - - switch (method) { - case 'POST': - return await _client.post( - uri, - headers: nullableHeaderParams, - body: msgBody, - ); - case 'PUT': - return await _client.put( - uri, - headers: nullableHeaderParams, - body: msgBody, - ); - case 'DELETE': - return await _client.delete( - uri, - headers: nullableHeaderParams, - body: msgBody, - ); - case 'PATCH': - return await _client.patch( - uri, - headers: nullableHeaderParams, - body: msgBody, - ); - case 'HEAD': - return await _client.head( - uri, - headers: nullableHeaderParams, - ); - case 'GET': - return await _client.get( - uri, - headers: nullableHeaderParams, - ); - } - } on SocketException catch (error, trace) { - throw ApiException.withInner( - HttpStatus.badRequest, - 'Socket operation failed: $method $path', - error, - trace, - ); - } on TlsException catch (error, trace) { - throw ApiException.withInner( - HttpStatus.badRequest, - 'TLS/SSL communication failed: $method $path', - error, - trace, - ); - } on IOException catch (error, trace) { - throw ApiException.withInner( - HttpStatus.badRequest, - 'I/O operation failed: $method $path', - error, - trace, - ); - } on ClientException catch (error, trace) { - throw ApiException.withInner( - HttpStatus.badRequest, - 'HTTP connection failed: $method $path', - error, - trace, - ); - } on Exception catch (error, trace) { - throw ApiException.withInner( - HttpStatus.badRequest, - 'Exception occurred: $method $path', - error, - trace, - ); - } - - throw ApiException( - HttpStatus.badRequest, - 'Invalid HTTP operation: $method $path', - ); - } - - Future deserializeAsync( - String value, - String targetType, { - bool growable = false, - }) async => - // ignore: deprecated_member_use_from_same_package - deserialize(value, targetType, growable: growable); - - @Deprecated( - 'Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.') - dynamic deserialize( - String value, - String targetType, { - bool growable = false, - }) { - // Remove all spaces. Necessary for regular expressions as well. - targetType = - targetType.replaceAll(' ', ''); // ignore: parameter_assignments - - // If the expected target type is String, nothing to do... - return targetType == 'String' - ? value - : fromJson(json.decode(value), targetType, growable: growable); - } - - // ignore: deprecated_member_use_from_same_package - Future serializeAsync(Object? value) async => serialize(value); - - @Deprecated( - 'Scheduled for removal in OpenAPI Generator 6.x. Use serializeAsync() instead.') - String serialize(Object? value) => value == null ? '' : json.encode(value); - - /// Returns a native instance of an OpenAPI class matching the [specified type][targetType]. - static dynamic fromJson( - dynamic value, - String targetType, { - bool growable = false, - }) { - try { - switch (targetType) { - case 'String': - return value is String ? value : value.toString(); - case 'int': - return value is int ? value : int.parse('$value'); - case 'double': - return value is double ? value : double.parse('$value'); - case 'bool': - if (value is bool) { - return value; - } - final valueString = '$value'.toLowerCase(); - return valueString == 'true' || valueString == '1'; - case 'DateTime': - return value is DateTime ? value : DateTime.tryParse(value); - case 'AgendaDTO': - return AgendaDTO.fromJson(value); - case 'AgendaDTOAllOfAgendaMapProvider': - return AgendaDTOAllOfAgendaMapProvider.fromJson(value); - case 'ArticleDTO': - return ArticleDTO.fromJson(value); - case 'CategorieDTO': - return CategorieDTO.fromJson(value); - case 'ConfigurationDTO': - return ConfigurationDTO.fromJson(value); - case 'ContentDTO': - return ContentDTO.fromJson(value); - case 'ContentDTOResource': - return ContentDTOResource.fromJson(value); - case 'DeviceDTO': - return DeviceDTO.fromJson(value); - case 'DeviceDetailDTO': - return DeviceDetailDTO.fromJson(value); - case 'ExportConfigurationDTO': - return ExportConfigurationDTO.fromJson(value); - case 'GeoPoint': - return GeoPoint.fromJson(value); - case 'GeoPointDTO': - return GeoPointDTO.fromJson(value); - case 'GeoPointSectionMap': - return GeoPointSectionMap.fromJson(value); - case 'Instance': - return Instance.fromJson(value); - case 'InstanceDTO': - return InstanceDTO.fromJson(value); - case 'LoginDTO': - return LoginDTO.fromJson(value); - case 'MapDTO': - return MapDTO.fromJson(value); - case 'MapDTOAllOfMapProvider': - return MapDTOAllOfMapProvider.fromJson(value); - case 'MapDTOAllOfMapType': - return MapDTOAllOfMapType.fromJson(value); - case 'MapDTOAllOfMapTypeMapbox': - return MapDTOAllOfMapTypeMapbox.fromJson(value); - case 'MapProvider': - return MapProviderTypeTransformer().decode(value); - case 'MapTypeApp': - return MapTypeAppTypeTransformer().decode(value); - case 'MapTypeMapBox': - return MapTypeMapBoxTypeTransformer().decode(value); - case 'MenuDTO': - return MenuDTO.fromJson(value); - case 'OrderedTranslationAndResourceDTO': - return OrderedTranslationAndResourceDTO.fromJson(value); - case 'PdfDTO': - return PdfDTO.fromJson(value); - case 'PlayerMessageDTO': - return PlayerMessageDTO.fromJson(value); - case 'PuzzleDTO': - return PuzzleDTO.fromJson(value); - case 'PuzzleDTOAllOfPuzzleImage': - return PuzzleDTOAllOfPuzzleImage.fromJson(value); - case 'QuestionDTO': - return QuestionDTO.fromJson(value); - case 'QuestionDTOImageBackgroundResourceType': - return QuestionDTOImageBackgroundResourceType.fromJson(value); - case 'QuizDTO': - return QuizDTO.fromJson(value); - case 'Resource': - return Resource.fromJson(value); - case 'ResourceDTO': - return ResourceDTO.fromJson(value); - case 'ResourceType': - return ResourceTypeTypeTransformer().decode(value); - case 'ResponseDTO': - return ResponseDTO.fromJson(value); - case 'Section': - return Section.fromJson(value); - case 'SectionDTO': - return SectionDTO.fromJson(value); - case 'SectionMap': - return SectionMap.fromJson(value); - case 'SectionMapAllOfMapMapProvider': - return SectionMapAllOfMapMapProvider.fromJson(value); - case 'SectionMapAllOfMapMapType': - return SectionMapAllOfMapMapType.fromJson(value); - case 'SectionMapAllOfMapResource': - return SectionMapAllOfMapResource.fromJson(value); - case 'SectionMapAllOfMapTypeMapbox': - return SectionMapAllOfMapTypeMapbox.fromJson(value); - case 'SectionType': - return SectionTypeTypeTransformer().decode(value); - case 'SliderDTO': - return SliderDTO.fromJson(value); - case 'TokenDTO': - return TokenDTO.fromJson(value); - case 'TranslationAndResourceDTO': - return TranslationAndResourceDTO.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 'WeatherDTO': - return WeatherDTO.fromJson(value); - case 'WebDTO': - return WebDTO.fromJson(value); - default: - dynamic match; - if (value is List && - (match = _regList.firstMatch(targetType)?.group(1)) != null) { - return value - .map((dynamic v) => fromJson( - v, - match, - growable: growable, - )) - .toList(growable: growable); - } - if (value is Set && - (match = _regSet.firstMatch(targetType)?.group(1)) != null) { - return value - .map((dynamic v) => fromJson( - v, - match, - growable: growable, - )) - .toSet(); - } - if (value is Map && - (match = _regMap.firstMatch(targetType)?.group(1)) != null) { - return Map.fromIterables( - value.keys.cast(), - value.values.map((dynamic v) => fromJson( - v, - match, - growable: growable, - )), - ); - } - } - } on Exception catch (error, trace) { - throw ApiException.withInner( - HttpStatus.internalServerError, - 'Exception during deserialization.', - error, - trace, - ); - } - throw ApiException( - HttpStatus.internalServerError, - 'Could not find a suitable class for deserialization', - ); - } -} - -/// Primarily intended for use in an isolate. -class DeserializationMessage { - const DeserializationMessage({ - required this.json, - required this.targetType, - this.growable = false, - }); - - /// The JSON value to deserialize. - final String json; - - /// Target type to deserialize to. - final String targetType; - - /// Whether to make deserialized lists or maps growable. - final bool growable; -} - -/// Primarily intended for use in an isolate. -Future decodeAsync(DeserializationMessage message) async { - // Remove all spaces. Necessary for regular expressions as well. - final targetType = message.targetType.replaceAll(' ', ''); - - // If the expected target type is String, nothing to do... - return targetType == 'String' ? message.json : json.decode(message.json); -} - -/// Primarily intended for use in an isolate. -Future deserializeAsync(DeserializationMessage message) async { - // Remove all spaces. Necessary for regular expressions as well. - final targetType = message.targetType.replaceAll(' ', ''); - - // If the expected target type is String, nothing to do... - return targetType == 'String' - ? message.json - : ApiClient.fromJson( - json.decode(message.json), - targetType, - growable: message.growable, - ); -} - -/// Primarily intended for use in an isolate. -Future serializeAsync(Object? value) async => - value == null ? '' : json.encode(value); diff --git a/manager_api_new/lib/api_exception.dart b/manager_api_new/lib/api_exception.dart deleted file mode 100644 index d20b872..0000000 --- a/manager_api_new/lib/api_exception.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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; - - @override - 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_new/lib/api_helper.dart b/manager_api_new/lib/api_helper.dart deleted file mode 100644 index 5a0d454..0000000 --- a/manager_api_new/lib/api_helper.dart +++ /dev/null @@ -1,129 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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 _queryParams( - String collectionFormat, - String name, - dynamic value, -) { - // Assertions to run in debug mode only. - assert(name.isNotEmpty, 'Parameter cannot be an empty string.'); - - final params = []; - - if (value is List) { - if (collectionFormat == 'multi') { - return value.map( - (dynamic v) => QueryParam(name, parameterToString(v)), - ); - } - - // Default collection format is 'csv'. - if (collectionFormat.isEmpty) { - collectionFormat = 'csv'; // ignore: parameter_assignments - } - - final delimiter = _delimiters[collectionFormat] ?? ','; - - params.add(QueryParam( - name, - value.map(parameterToString).join(delimiter), - )); - } else if (value != null) { - 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 MapProvider) { - return MapProviderTypeTransformer().encode(value).toString(); - } - if (value is MapTypeApp) { - return MapTypeAppTypeTransformer().encode(value).toString(); - } - if (value is MapTypeMapBox) { - return MapTypeMapBoxTypeTransformer().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. -Future _decodeBodyBytes(Response response) async { - final contentType = response.headers['content-type']; - return contentType != null && - contentType.toLowerCase().startsWith('application/json') - ? response.bodyBytes.isEmpty - ? '' - : utf8.decode(response.bodyBytes) - : response.body; -} - -/// Returns a valid [T] value found at the specified Map [key], null otherwise. -T? mapValueOfType(dynamic map, String key) { - final dynamic value = map is Map ? map[key] : null; - return value is T ? value : null; -} - -/// Returns a valid Map found at the specified Map [key], null otherwise. -Map? mapCastOfType(dynamic map, String key) { - final dynamic value = map is Map ? map[key] : null; - return value is Map ? value.cast() : null; -} - -/// Returns a valid [DateTime] found at the specified Map [key], null otherwise. -DateTime? mapDateTime(dynamic map, String key, [String? pattern]) { - final dynamic value = map is Map ? map[key] : null; - if (value != null) { - int? millis; - if (value is int) { - millis = value; - } else if (value is String) { - if (_isEpochMarker(pattern)) { - millis = int.tryParse(value); - } else { - return DateTime.tryParse(value); - } - } - if (millis != null) { - return DateTime.fromMillisecondsSinceEpoch(millis, isUtc: true); - } - } - return null; -} diff --git a/manager_api_new/lib/auth/api_key_auth.dart b/manager_api_new/lib/auth/api_key_auth.dart deleted file mode 100644 index 00105ec..0000000 --- a/manager_api_new/lib/auth/api_key_auth.dart +++ /dev/null @@ -1,43 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ApiKeyAuth implements Authentication { - ApiKeyAuth(this.location, this.paramName); - - final String location; - final String paramName; - - String apiKeyPrefix = ''; - String apiKey = ''; - - @override - Future applyToParams( - List queryParams, - Map headerParams, - ) async { - final paramValue = apiKeyPrefix.isEmpty ? apiKey : '$apiKeyPrefix $apiKey'; - - if (paramValue.isNotEmpty) { - if (location == 'query') { - queryParams.add(QueryParam(paramName, paramValue)); - } else if (location == 'header') { - headerParams[paramName] = paramValue; - } else if (location == 'cookie') { - headerParams.update( - 'Cookie', - (existingCookie) => '$existingCookie; $paramName=$paramValue', - ifAbsent: () => '$paramName=$paramValue', - ); - } - } - } -} diff --git a/manager_api_new/lib/auth/authentication.dart b/manager_api_new/lib/auth/authentication.dart deleted file mode 100644 index 3d8cb17..0000000 --- a/manager_api_new/lib/auth/authentication.dart +++ /dev/null @@ -1,18 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -// ignore: one_member_abstracts -abstract class Authentication { - /// Apply authentication settings to header and query params. - Future applyToParams( - List queryParams, Map headerParams); -} diff --git a/manager_api_new/lib/auth/http_basic_auth.dart b/manager_api_new/lib/auth/http_basic_auth.dart deleted file mode 100644 index cf02eb3..0000000 --- a/manager_api_new/lib/auth/http_basic_auth.dart +++ /dev/null @@ -1,30 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class HttpBasicAuth implements Authentication { - HttpBasicAuth({this.username = '', this.password = ''}); - - String username; - String password; - - @override - Future applyToParams( - List queryParams, - Map headerParams, - ) async { - if (username.isNotEmpty && password.isNotEmpty) { - final credentials = '$username:$password'; - headerParams['Authorization'] = - 'Basic ${base64.encode(utf8.encode(credentials))}'; - } - } -} diff --git a/manager_api_new/lib/auth/http_bearer_auth.dart b/manager_api_new/lib/auth/http_bearer_auth.dart deleted file mode 100644 index 61b6a23..0000000 --- a/manager_api_new/lib/auth/http_bearer_auth.dart +++ /dev/null @@ -1,53 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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( - 'accessToken value must be either a String or a String Function().'); - } - _accessToken = accessToken; - } - - @override - Future applyToParams( - List queryParams, - Map headerParams, - ) async { - if (_accessToken == null) { - return; - } - - String accessToken; - - if (_accessToken is String) { - accessToken = _accessToken; - } else if (_accessToken is HttpBearerAuthProvider) { - accessToken = _accessToken!(); - } else { - return; - } - - if (accessToken.isNotEmpty) { - headerParams['Authorization'] = 'Bearer $accessToken'; - } - } -} diff --git a/manager_api_new/lib/auth/oauth.dart b/manager_api_new/lib/auth/oauth.dart deleted file mode 100644 index c7de2bf..0000000 --- a/manager_api_new/lib/auth/oauth.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class OAuth implements Authentication { - OAuth({this.accessToken = ''}); - - String accessToken; - - @override - Future applyToParams( - List queryParams, - Map headerParams, - ) async { - if (accessToken.isNotEmpty) { - headerParams['Authorization'] = 'Bearer $accessToken'; - } - } -} diff --git a/manager_api_new/lib/model/agenda_dto.dart b/manager_api_new/lib/model/agenda_dto.dart deleted file mode 100644 index c59c63d..0000000 --- a/manager_api_new/lib/model/agenda_dto.dart +++ /dev/null @@ -1,357 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AgendaDTO { - /// Returns a new [AgendaDTO] instance. - AgendaDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.resourceIds = const [], - this.agendaMapProvider, - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - List? resourceIds; - - MapProvider? agendaMapProvider; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is AgendaDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - _deepEquality.equals(other.resourceIds, resourceIds) && - other.agendaMapProvider == agendaMapProvider; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (resourceIds == null ? 0 : resourceIds!.hashCode) + - (agendaMapProvider == null ? 0 : agendaMapProvider!.hashCode); - - @override - String toString() => - 'AgendaDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, resourceIds=$resourceIds, agendaMapProvider=$agendaMapProvider]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.resourceIds != null) { - json[r'resourceIds'] = this.resourceIds; - } else { - json[r'resourceIds'] = null; - } - if (this.agendaMapProvider != null) { - json[r'agendaMapProvider'] = this.agendaMapProvider; - } else { - json[r'agendaMapProvider'] = null; - } - return json; - } - - /// Returns a new [AgendaDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AgendaDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "AgendaDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "AgendaDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return AgendaDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - resourceIds: TranslationDTO.listFromJson(json[r'resourceIds']), - agendaMapProvider: MapProvider.fromJson(json[r'agendaMapProvider']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AgendaDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AgendaDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AgendaDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AgendaDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/agenda_dto_all_of_agenda_map_provider.dart b/manager_api_new/lib/model/agenda_dto_all_of_agenda_map_provider.dart deleted file mode 100644 index d2d6aa0..0000000 --- a/manager_api_new/lib/model/agenda_dto_all_of_agenda_map_provider.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AgendaDTOAllOfAgendaMapProvider { - /// Returns a new [AgendaDTOAllOfAgendaMapProvider] instance. - AgendaDTOAllOfAgendaMapProvider(); - - /*@override - bool operator ==(Object other) => identical(this, other) || other is AgendaDTOAllOfAgendaMapProvider && - - @override - int get hashCode =>*/ - // ignore: unnecessary_parenthesis - - @override - String toString() => 'AgendaDTOAllOfAgendaMapProvider[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [AgendaDTOAllOfAgendaMapProvider] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AgendaDTOAllOfAgendaMapProvider? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AgendaDTOAllOfAgendaMapProvider[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AgendaDTOAllOfAgendaMapProvider[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return AgendaDTOAllOfAgendaMapProvider( - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AgendaDTOAllOfAgendaMapProvider.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AgendaDTOAllOfAgendaMapProvider.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AgendaDTOAllOfAgendaMapProvider-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AgendaDTOAllOfAgendaMapProvider.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/manager_api_new/lib/model/app_configuration_link.dart b/manager_api_new/lib/model/app_configuration_link.dart deleted file mode 100644 index d2f3600..0000000 --- a/manager_api_new/lib/model/app_configuration_link.dart +++ /dev/null @@ -1,369 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AppConfigurationLink { - /// Returns a new [AppConfigurationLink] instance. - AppConfigurationLink({ - required this.configurationId, - required this.applicationInstanceId, - this.id, - this.order, - this.isActive, - this.weightMasonryGrid, - this.isDate, - this.isHour, - this.roundedValue, - this.screenPercentageSectionsMainPage, - this.isSectionImageBackground, - this.layoutMainPage, - this.loaderImageId, - this.loaderImageUrl, - this.primaryColor, - this.secondaryColor, - this.configuration, - this.applicationInstance, - this.deviceId, - this.device, - }); - - String configurationId; - - String applicationInstanceId; - - String? id; - - int? order; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isActive; - - int? weightMasonryGrid; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isDate; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isHour; - - int? roundedValue; - - int? screenPercentageSectionsMainPage; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSectionImageBackground; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - LayoutMainPageType? layoutMainPage; - - String? loaderImageId; - - String? loaderImageUrl; - - String? primaryColor; - - String? secondaryColor; - - AppConfigurationLinkConfiguration? configuration; - - AppConfigurationLinkApplicationInstance? applicationInstance; - - String? deviceId; - - AppConfigurationLinkDevice? device; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is AppConfigurationLink && - other.configurationId == configurationId && - other.applicationInstanceId == applicationInstanceId && - other.id == id && - other.order == order && - other.isActive == isActive && - other.weightMasonryGrid == weightMasonryGrid && - other.isDate == isDate && - other.isHour == isHour && - other.roundedValue == roundedValue && - other.screenPercentageSectionsMainPage == - screenPercentageSectionsMainPage && - other.isSectionImageBackground == isSectionImageBackground && - other.layoutMainPage == layoutMainPage && - other.loaderImageId == loaderImageId && - other.loaderImageUrl == loaderImageUrl && - other.primaryColor == primaryColor && - other.secondaryColor == secondaryColor && - other.configuration == configuration && - other.applicationInstance == applicationInstance && - other.deviceId == deviceId && - other.device == device; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (configurationId.hashCode) + - (applicationInstanceId.hashCode) + - (id == null ? 0 : id!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (isActive == null ? 0 : isActive!.hashCode) + - (weightMasonryGrid == null ? 0 : weightMasonryGrid!.hashCode) + - (isDate == null ? 0 : isDate!.hashCode) + - (isHour == null ? 0 : isHour!.hashCode) + - (roundedValue == null ? 0 : roundedValue!.hashCode) + - (screenPercentageSectionsMainPage == null - ? 0 - : screenPercentageSectionsMainPage!.hashCode) + - (isSectionImageBackground == null - ? 0 - : isSectionImageBackground!.hashCode) + - (layoutMainPage == null ? 0 : layoutMainPage!.hashCode) + - (loaderImageId == null ? 0 : loaderImageId!.hashCode) + - (loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) + - (primaryColor == null ? 0 : primaryColor!.hashCode) + - (secondaryColor == null ? 0 : secondaryColor!.hashCode) + - (configuration == null ? 0 : configuration!.hashCode) + - (applicationInstance == null ? 0 : applicationInstance!.hashCode) + - (deviceId == null ? 0 : deviceId!.hashCode) + - (device == null ? 0 : device!.hashCode); - - @override - String toString() => - 'AppConfigurationLink[configurationId=$configurationId, applicationInstanceId=$applicationInstanceId, id=$id, order=$order, isActive=$isActive, weightMasonryGrid=$weightMasonryGrid, isDate=$isDate, isHour=$isHour, roundedValue=$roundedValue, screenPercentageSectionsMainPage=$screenPercentageSectionsMainPage, isSectionImageBackground=$isSectionImageBackground, layoutMainPage=$layoutMainPage, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, primaryColor=$primaryColor, secondaryColor=$secondaryColor, configuration=$configuration, applicationInstance=$applicationInstance, deviceId=$deviceId, device=$device]'; - - Map toJson() { - final json = {}; - json[r'configurationId'] = this.configurationId; - json[r'applicationInstanceId'] = this.applicationInstanceId; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.isActive != null) { - json[r'isActive'] = this.isActive; - } else { - json[r'isActive'] = null; - } - if (this.weightMasonryGrid != null) { - json[r'weightMasonryGrid'] = this.weightMasonryGrid; - } else { - json[r'weightMasonryGrid'] = null; - } - if (this.isDate != null) { - json[r'isDate'] = this.isDate; - } else { - json[r'isDate'] = null; - } - if (this.isHour != null) { - json[r'isHour'] = this.isHour; - } else { - json[r'isHour'] = null; - } - if (this.roundedValue != null) { - json[r'roundedValue'] = this.roundedValue; - } else { - json[r'roundedValue'] = null; - } - if (this.screenPercentageSectionsMainPage != null) { - json[r'screenPercentageSectionsMainPage'] = - this.screenPercentageSectionsMainPage; - } else { - json[r'screenPercentageSectionsMainPage'] = null; - } - if (this.isSectionImageBackground != null) { - json[r'isSectionImageBackground'] = this.isSectionImageBackground; - } else { - json[r'isSectionImageBackground'] = null; - } - if (this.layoutMainPage != null) { - json[r'layoutMainPage'] = this.layoutMainPage; - } else { - json[r'layoutMainPage'] = null; - } - if (this.loaderImageId != null) { - json[r'loaderImageId'] = this.loaderImageId; - } else { - json[r'loaderImageId'] = null; - } - if (this.loaderImageUrl != null) { - json[r'loaderImageUrl'] = this.loaderImageUrl; - } else { - json[r'loaderImageUrl'] = null; - } - if (this.primaryColor != null) { - json[r'primaryColor'] = this.primaryColor; - } else { - json[r'primaryColor'] = null; - } - if (this.secondaryColor != null) { - json[r'secondaryColor'] = this.secondaryColor; - } else { - json[r'secondaryColor'] = null; - } - if (this.configuration != null) { - json[r'configuration'] = this.configuration; - } else { - json[r'configuration'] = null; - } - if (this.applicationInstance != null) { - json[r'applicationInstance'] = this.applicationInstance; - } else { - json[r'applicationInstance'] = null; - } - if (this.deviceId != null) { - json[r'deviceId'] = this.deviceId; - } else { - json[r'deviceId'] = null; - } - if (this.device != null) { - json[r'device'] = this.device; - } else { - json[r'device'] = null; - } - return json; - } - - /// Returns a new [AppConfigurationLink] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AppConfigurationLink? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "AppConfigurationLink[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "AppConfigurationLink[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return AppConfigurationLink( - configurationId: mapValueOfType(json, r'configurationId')!, - applicationInstanceId: - mapValueOfType(json, r'applicationInstanceId')!, - id: mapValueOfType(json, r'id'), - order: mapValueOfType(json, r'order'), - isActive: mapValueOfType(json, r'isActive'), - weightMasonryGrid: mapValueOfType(json, r'weightMasonryGrid'), - isDate: mapValueOfType(json, r'isDate'), - isHour: mapValueOfType(json, r'isHour'), - roundedValue: mapValueOfType(json, r'roundedValue'), - screenPercentageSectionsMainPage: - mapValueOfType(json, r'screenPercentageSectionsMainPage'), - isSectionImageBackground: - mapValueOfType(json, r'isSectionImageBackground'), - layoutMainPage: LayoutMainPageType.fromJson(json[r'layoutMainPage']), - loaderImageId: mapValueOfType(json, r'loaderImageId'), - loaderImageUrl: mapValueOfType(json, r'loaderImageUrl'), - primaryColor: mapValueOfType(json, r'primaryColor'), - secondaryColor: mapValueOfType(json, r'secondaryColor'), - configuration: - AppConfigurationLinkConfiguration.fromJson(json[r'configuration']), - applicationInstance: AppConfigurationLinkApplicationInstance.fromJson( - json[r'applicationInstance']), - deviceId: mapValueOfType(json, r'deviceId'), - device: AppConfigurationLinkDevice.fromJson(json[r'device']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AppConfigurationLink.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AppConfigurationLink.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AppConfigurationLink-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AppConfigurationLink.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'configurationId', - 'applicationInstanceId', - }; -} diff --git a/manager_api_new/lib/model/app_configuration_link_application_instance.dart b/manager_api_new/lib/model/app_configuration_link_application_instance.dart deleted file mode 100644 index d34d758..0000000 --- a/manager_api_new/lib/model/app_configuration_link_application_instance.dart +++ /dev/null @@ -1,277 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AppConfigurationLinkApplicationInstance { - /// Returns a new [AppConfigurationLinkApplicationInstance] instance. - AppConfigurationLinkApplicationInstance({ - required this.instanceId, - required this.appType, - this.id, - this.configurations = const [], - this.mainImageId, - this.mainImageUrl, - this.loaderImageId, - this.loaderImageUrl, - this.primaryColor, - this.secondaryColor, - this.layoutMainPage, - this.languages = const [], - this.sectionEventId, - this.sectionEvent, - }); - - String instanceId; - - AppType appType; - - String? id; - - List? configurations; - - String? mainImageId; - - String? mainImageUrl; - - String? loaderImageId; - - String? loaderImageUrl; - - String? primaryColor; - - String? secondaryColor; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - LayoutMainPageType? layoutMainPage; - - List? languages; - - String? sectionEventId; - - ApplicationInstanceSectionEvent? sectionEvent; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is AppConfigurationLinkApplicationInstance && - other.instanceId == instanceId && - other.appType == appType && - other.id == id && - _deepEquality.equals(other.configurations, configurations) && - other.mainImageId == mainImageId && - other.mainImageUrl == mainImageUrl && - other.loaderImageId == loaderImageId && - other.loaderImageUrl == loaderImageUrl && - other.primaryColor == primaryColor && - other.secondaryColor == secondaryColor && - other.layoutMainPage == layoutMainPage && - _deepEquality.equals(other.languages, languages) && - other.sectionEventId == sectionEventId && - other.sectionEvent == sectionEvent; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (instanceId.hashCode) + - (appType.hashCode) + - (id == null ? 0 : id!.hashCode) + - (configurations == null ? 0 : configurations!.hashCode) + - (mainImageId == null ? 0 : mainImageId!.hashCode) + - (mainImageUrl == null ? 0 : mainImageUrl!.hashCode) + - (loaderImageId == null ? 0 : loaderImageId!.hashCode) + - (loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) + - (primaryColor == null ? 0 : primaryColor!.hashCode) + - (secondaryColor == null ? 0 : secondaryColor!.hashCode) + - (layoutMainPage == null ? 0 : layoutMainPage!.hashCode) + - (languages == null ? 0 : languages!.hashCode) + - (sectionEventId == null ? 0 : sectionEventId!.hashCode) + - (sectionEvent == null ? 0 : sectionEvent!.hashCode); - - @override - String toString() => - 'AppConfigurationLinkApplicationInstance[instanceId=$instanceId, appType=$appType, id=$id, configurations=$configurations, mainImageId=$mainImageId, mainImageUrl=$mainImageUrl, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, primaryColor=$primaryColor, secondaryColor=$secondaryColor, layoutMainPage=$layoutMainPage, languages=$languages, sectionEventId=$sectionEventId, sectionEvent=$sectionEvent]'; - - Map toJson() { - final json = {}; - json[r'instanceId'] = this.instanceId; - json[r'appType'] = this.appType; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.configurations != null) { - json[r'configurations'] = this.configurations; - } else { - json[r'configurations'] = null; - } - if (this.mainImageId != null) { - json[r'mainImageId'] = this.mainImageId; - } else { - json[r'mainImageId'] = null; - } - if (this.mainImageUrl != null) { - json[r'mainImageUrl'] = this.mainImageUrl; - } else { - json[r'mainImageUrl'] = null; - } - if (this.loaderImageId != null) { - json[r'loaderImageId'] = this.loaderImageId; - } else { - json[r'loaderImageId'] = null; - } - if (this.loaderImageUrl != null) { - json[r'loaderImageUrl'] = this.loaderImageUrl; - } else { - json[r'loaderImageUrl'] = null; - } - if (this.primaryColor != null) { - json[r'primaryColor'] = this.primaryColor; - } else { - json[r'primaryColor'] = null; - } - if (this.secondaryColor != null) { - json[r'secondaryColor'] = this.secondaryColor; - } else { - json[r'secondaryColor'] = null; - } - if (this.layoutMainPage != null) { - json[r'layoutMainPage'] = this.layoutMainPage; - } else { - json[r'layoutMainPage'] = null; - } - if (this.languages != null) { - json[r'languages'] = this.languages; - } else { - json[r'languages'] = null; - } - if (this.sectionEventId != null) { - json[r'sectionEventId'] = this.sectionEventId; - } else { - json[r'sectionEventId'] = null; - } - if (this.sectionEvent != null) { - json[r'sectionEvent'] = this.sectionEvent; - } else { - json[r'sectionEvent'] = null; - } - return json; - } - - /// Returns a new [AppConfigurationLinkApplicationInstance] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AppConfigurationLinkApplicationInstance? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "AppConfigurationLinkApplicationInstance[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "AppConfigurationLinkApplicationInstance[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return AppConfigurationLinkApplicationInstance( - instanceId: mapValueOfType(json, r'instanceId')!, - appType: AppType.fromJson(json[r'appType'])!, - id: mapValueOfType(json, r'id'), - configurations: - AppConfigurationLink.listFromJson(json[r'configurations']), - mainImageId: mapValueOfType(json, r'mainImageId'), - mainImageUrl: mapValueOfType(json, r'mainImageUrl'), - loaderImageId: mapValueOfType(json, r'loaderImageId'), - loaderImageUrl: mapValueOfType(json, r'loaderImageUrl'), - primaryColor: mapValueOfType(json, r'primaryColor'), - secondaryColor: mapValueOfType(json, r'secondaryColor'), - layoutMainPage: LayoutMainPageType.fromJson(json[r'layoutMainPage']), - languages: json[r'languages'] is Iterable - ? (json[r'languages'] as Iterable) - .cast() - .toList(growable: false) - : const [], - sectionEventId: mapValueOfType(json, r'sectionEventId'), - sectionEvent: - ApplicationInstanceSectionEvent.fromJson(json[r'sectionEvent']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AppConfigurationLinkApplicationInstance.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson( - dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = - AppConfigurationLinkApplicationInstance.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AppConfigurationLinkApplicationInstance-objects as value to a dart map - static Map> - mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AppConfigurationLinkApplicationInstance.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'instanceId', - 'appType', - }; -} diff --git a/manager_api_new/lib/model/app_configuration_link_configuration.dart b/manager_api_new/lib/model/app_configuration_link_configuration.dart deleted file mode 100644 index 4614fd3..0000000 --- a/manager_api_new/lib/model/app_configuration_link_configuration.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AppConfigurationLinkConfiguration { - AppConfigurationLinkConfiguration({this.id}); - String? id; - - static AppConfigurationLinkConfiguration? fromJson(dynamic value) => - value is Map ? AppConfigurationLinkConfiguration() : null; - - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/app_configuration_link_device.dart b/manager_api_new/lib/model/app_configuration_link_device.dart deleted file mode 100644 index fe05631..0000000 --- a/manager_api_new/lib/model/app_configuration_link_device.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AppConfigurationLinkDevice { - AppConfigurationLinkDevice({this.id}); - String? id; - - static AppConfigurationLinkDevice? fromJson(dynamic value) => - value is Map ? AppConfigurationLinkDevice() : null; - - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/app_type.dart b/manager_api_new/lib/model/app_type.dart deleted file mode 100644 index 7779efc..0000000 --- a/manager_api_new/lib/model/app_type.dart +++ /dev/null @@ -1,110 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -/// 0 = Mobile 1 = Tablet 2 = Web 3 = VR -class AppType { - /// Instantiate a new enum with the provided [value]. - const AppType._(this.value); - - /// The underlying value of this enum member. - final int value; - - @override - String toString() => value.toString(); - - int toJson() => value; - - static const Mobile = AppType._(0); - static const Tablet = AppType._(1); - static const Web = AppType._(2); - static const VR = AppType._(3); - - /// List of all possible values in this [enum][AppType]. - static const values = [ - Mobile, - Tablet, - Web, - VR, - ]; - - static AppType? fromJson(dynamic value) => - AppTypeTypeTransformer().decode(value); - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AppType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [AppType] to int, -/// and [decode] dynamic data back to [AppType]. -class AppTypeTypeTransformer { - factory AppTypeTypeTransformer() => - _instance ??= const AppTypeTypeTransformer._(); - - const AppTypeTypeTransformer._(); - - int encode(AppType data) => data.value; - - /// Decodes a [dynamic value][data] to a AppType. - /// - /// 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. - AppType? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - if(data.runtimeType == String) { - switch (data.toString()) { - case r'Mobile': return AppType.Mobile; - case r'Tablet': return AppType.Tablet; - case r'Web': return AppType.Web; - case r'VR': return AppType.VR; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } else { - if(data.runtimeType == int) { - switch (data) { - case 0: return AppType.Mobile; - case 1: return AppType.Tablet; - case 2: return AppType.Web; - case 3: return AppType.VR; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - } - } - return null; - } - - /// Singleton [AppTypeTypeTransformer] instance. - static AppTypeTypeTransformer? _instance; -} diff --git a/manager_api_new/lib/model/application_instance_dto.dart b/manager_api_new/lib/model/application_instance_dto.dart deleted file mode 100644 index 0179a95..0000000 --- a/manager_api_new/lib/model/application_instance_dto.dart +++ /dev/null @@ -1,295 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ApplicationInstanceDTO { - /// Returns a new [ApplicationInstanceDTO] instance. - ApplicationInstanceDTO({ - this.id, - this.instanceId, - this.appType, - this.configurations = const [], - this.mainImageId, - this.mainImageUrl, - this.loaderImageId, - this.loaderImageUrl, - this.primaryColor, - this.secondaryColor, - this.layoutMainPage, - this.languages = const [], - this.sectionEventId, - this.sectionEventDTO, - this.isAssistant, - }); - - String? id; - - String? instanceId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - AppType? appType; - - List? configurations; - - String? mainImageId; - - String? mainImageUrl; - - String? loaderImageId; - - String? loaderImageUrl; - - String? primaryColor; - - String? secondaryColor; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - LayoutMainPageType? layoutMainPage; - - List? languages; - - String? sectionEventId; - - SectionEventDTO? sectionEventDTO; - - bool? isAssistant; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ApplicationInstanceDTO && - other.id == id && - other.instanceId == instanceId && - other.appType == appType && - _deepEquality.equals(other.configurations, configurations) && - other.mainImageId == mainImageId && - other.mainImageUrl == mainImageUrl && - other.loaderImageId == loaderImageId && - other.loaderImageUrl == loaderImageUrl && - other.primaryColor == primaryColor && - other.secondaryColor == secondaryColor && - other.layoutMainPage == layoutMainPage && - _deepEquality.equals(other.languages, languages) && - other.sectionEventId == sectionEventId && - other.sectionEventDTO == sectionEventDTO && - other.isAssistant == isAssistant; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (appType == null ? 0 : appType!.hashCode) + - (configurations == null ? 0 : configurations!.hashCode) + - (mainImageId == null ? 0 : mainImageId!.hashCode) + - (mainImageUrl == null ? 0 : mainImageUrl!.hashCode) + - (loaderImageId == null ? 0 : loaderImageId!.hashCode) + - (loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) + - (primaryColor == null ? 0 : primaryColor!.hashCode) + - (secondaryColor == null ? 0 : secondaryColor!.hashCode) + - (layoutMainPage == null ? 0 : layoutMainPage!.hashCode) + - (languages == null ? 0 : languages!.hashCode) + - (sectionEventId == null ? 0 : sectionEventId!.hashCode) + - (sectionEventDTO == null ? 0 : sectionEventDTO!.hashCode) + - (isAssistant == null ? 0 : isAssistant!.hashCode); - - @override - String toString() => - 'ApplicationInstanceDTO[id=$id, instanceId=$instanceId, appType=$appType, configurations=$configurations, mainImageId=$mainImageId, mainImageUrl=$mainImageUrl, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, primaryColor=$primaryColor, secondaryColor=$secondaryColor, layoutMainPage=$layoutMainPage, languages=$languages, sectionEventId=$sectionEventId, sectionEventDTO=$sectionEventDTO, isAssistant=$isAssistant]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.appType != null) { - json[r'appType'] = this.appType; - } else { - json[r'appType'] = null; - } - if (this.configurations != null) { - json[r'configurations'] = this.configurations; - } else { - json[r'configurations'] = null; - } - if (this.mainImageId != null) { - json[r'mainImageId'] = this.mainImageId; - } else { - json[r'mainImageId'] = null; - } - if (this.mainImageUrl != null) { - json[r'mainImageUrl'] = this.mainImageUrl; - } else { - json[r'mainImageUrl'] = null; - } - if (this.loaderImageId != null) { - json[r'loaderImageId'] = this.loaderImageId; - } else { - json[r'loaderImageId'] = null; - } - if (this.loaderImageUrl != null) { - json[r'loaderImageUrl'] = this.loaderImageUrl; - } else { - json[r'loaderImageUrl'] = null; - } - if (this.primaryColor != null) { - json[r'primaryColor'] = this.primaryColor; - } else { - json[r'primaryColor'] = null; - } - if (this.secondaryColor != null) { - json[r'secondaryColor'] = this.secondaryColor; - } else { - json[r'secondaryColor'] = null; - } - if (this.layoutMainPage != null) { - json[r'layoutMainPage'] = this.layoutMainPage; - } else { - json[r'layoutMainPage'] = null; - } - if (this.languages != null) { - json[r'languages'] = this.languages; - } else { - json[r'languages'] = null; - } - if (this.sectionEventId != null) { - json[r'sectionEventId'] = this.sectionEventId; - } else { - json[r'sectionEventId'] = null; - } - if (this.sectionEventDTO != null) { - json[r'sectionEventDTO'] = this.sectionEventDTO; - } else { - json[r'sectionEventDTO'] = null; - } - if (this.isAssistant != null) { - json[r'isAssistant'] = this.isAssistant; - } else { - json[r'isAssistant'] = null; - } - return json; - } - - /// Returns a new [ApplicationInstanceDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ApplicationInstanceDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ApplicationInstanceDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ApplicationInstanceDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ApplicationInstanceDTO( - id: mapValueOfType(json, r'id'), - instanceId: mapValueOfType(json, r'instanceId'), - appType: AppType.fromJson(json[r'appType']), - configurations: - AppConfigurationLink.listFromJson(json[r'configurations']), - mainImageId: mapValueOfType(json, r'mainImageId'), - mainImageUrl: mapValueOfType(json, r'mainImageUrl'), - loaderImageId: mapValueOfType(json, r'loaderImageId'), - loaderImageUrl: mapValueOfType(json, r'loaderImageUrl'), - primaryColor: mapValueOfType(json, r'primaryColor'), - secondaryColor: mapValueOfType(json, r'secondaryColor'), - layoutMainPage: LayoutMainPageType.fromJson(json[r'layoutMainPage']), - languages: json[r'languages'] is Iterable - ? (json[r'languages'] as Iterable) - .cast() - .toList(growable: false) - : const [], - sectionEventId: mapValueOfType(json, r'sectionEventId'), - sectionEventDTO: SectionEventDTO.fromJson(json[r'sectionEventDTO']), - isAssistant: mapValueOfType(json, r'isAssistant'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ApplicationInstanceDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ApplicationInstanceDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ApplicationInstanceDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ApplicationInstanceDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/application_instance_dto_section_event_dto.dart b/manager_api_new/lib/model/application_instance_dto_section_event_dto.dart deleted file mode 100644 index 8bde1c8..0000000 --- a/manager_api_new/lib/model/application_instance_dto_section_event_dto.dart +++ /dev/null @@ -1,409 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ApplicationInstanceDTOSectionEventDTO { - /// Returns a new [ApplicationInstanceDTOSectionEventDTO] instance. - ApplicationInstanceDTOSectionEventDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.isActive, - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.startDate, - this.endDate, - this.parcoursIds = const [], - this.programme = const [], - }); - - String? id; - - String? label; - - List? title; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isActive; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? startDate; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? endDate; - - List? parcoursIds; - - List? programme; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ApplicationInstanceDTOSectionEventDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.isActive == isActive && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.startDate == startDate && - other.endDate == endDate && - _deepEquality.equals(other.parcoursIds, parcoursIds) && - _deepEquality.equals(other.programme, programme); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (title == null ? 0 : title!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (isActive == null ? 0 : isActive!.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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (startDate == null ? 0 : startDate!.hashCode) + - (endDate == null ? 0 : endDate!.hashCode) + - (parcoursIds == null ? 0 : parcoursIds!.hashCode) + - (programme == null ? 0 : programme!.hashCode); - - @override - String toString() => - 'ApplicationInstanceDTOSectionEventDTO[id=$id, label=$label, title=$title, description=$description, isActive=$isActive, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, startDate=$startDate, endDate=$endDate, parcoursIds=$parcoursIds, programme=$programme]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.isActive != null) { - json[r'isActive'] = this.isActive; - } else { - json[r'isActive'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.startDate != null) { - json[r'startDate'] = this.startDate!.toUtc().toIso8601String(); - } else { - json[r'startDate'] = null; - } - if (this.endDate != null) { - json[r'endDate'] = this.endDate!.toUtc().toIso8601String(); - } else { - json[r'endDate'] = null; - } - if (this.parcoursIds != null) { - json[r'parcoursIds'] = this.parcoursIds; - } else { - json[r'parcoursIds'] = null; - } - if (this.programme != null) { - json[r'programme'] = this.programme; - } else { - json[r'programme'] = null; - } - return json; - } - - /// Returns a new [ApplicationInstanceDTOSectionEventDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ApplicationInstanceDTOSectionEventDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ApplicationInstanceDTOSectionEventDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ApplicationInstanceDTOSectionEventDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ApplicationInstanceDTOSectionEventDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - isActive: mapValueOfType(json, r'isActive'), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - startDate: mapDateTime(json, r'startDate', r''), - endDate: mapDateTime(json, r'endDate', r''), - parcoursIds: json[r'parcoursIds'] is Iterable - ? (json[r'parcoursIds'] as Iterable) - .cast() - .toList(growable: false) - : const [], - programme: ProgrammeBlock.listFromJson(json[r'programme']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ApplicationInstanceDTOSectionEventDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson( - dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = - ApplicationInstanceDTOSectionEventDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ApplicationInstanceDTOSectionEventDTO-objects as value to a dart map - static Map> - mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ApplicationInstanceDTOSectionEventDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/application_instance_section_event.dart b/manager_api_new/lib/model/application_instance_section_event.dart deleted file mode 100644 index e878de6..0000000 --- a/manager_api_new/lib/model/application_instance_section_event.dart +++ /dev/null @@ -1,387 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ApplicationInstanceSectionEvent { - /// Returns a new [ApplicationInstanceSectionEvent] instance. - ApplicationInstanceSectionEvent({ - required this.id, - required this.label, - this.title = const [], - required this.configurationId, - required this.type, - required this.isSubSection, - required this.instanceId, - this.description = const [], - this.order, - this.imageId, - this.imageSource, - this.parentId, - this.dateCreation, - this.isBeacon, - this.beaconId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isActive, - this.startDate, - this.endDate, - this.programme = const [], - this.parcoursIds = const [], - }); - - String id; - - String label; - - List title; - - String configurationId; - - SectionType type; - - bool isSubSection; - - String instanceId; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - String? imageId; - - String? imageSource; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isActive; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? startDate; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? endDate; - - List? programme; - - List? parcoursIds; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ApplicationInstanceSectionEvent && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - other.configurationId == configurationId && - other.type == type && - other.isSubSection == isSubSection && - other.instanceId == instanceId && - _deepEquality.equals(other.description, description) && - other.order == order && - other.imageId == imageId && - other.imageSource == imageSource && - other.parentId == parentId && - other.dateCreation == dateCreation && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isActive == isActive && - other.startDate == startDate && - other.endDate == endDate && - _deepEquality.equals(other.programme, programme) && - _deepEquality.equals(other.parcoursIds, parcoursIds); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (label.hashCode) + - (title.hashCode) + - (configurationId.hashCode) + - (type.hashCode) + - (isSubSection.hashCode) + - (instanceId.hashCode) + - (description == null ? 0 : description!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (imageId == null ? 0 : imageId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isActive == null ? 0 : isActive!.hashCode) + - (startDate == null ? 0 : startDate!.hashCode) + - (endDate == null ? 0 : endDate!.hashCode) + - (programme == null ? 0 : programme!.hashCode) + - (parcoursIds == null ? 0 : parcoursIds!.hashCode); - - @override - String toString() => - 'ApplicationInstanceSectionEvent[id=$id, label=$label, title=$title, configurationId=$configurationId, type=$type, isSubSection=$isSubSection, instanceId=$instanceId, description=$description, order=$order, imageId=$imageId, imageSource=$imageSource, parentId=$parentId, dateCreation=$dateCreation, isBeacon=$isBeacon, beaconId=$beaconId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isActive=$isActive, startDate=$startDate, endDate=$endDate, programme=$programme, parcoursIds=$parcoursIds]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'label'] = this.label; - json[r'title'] = this.title; - json[r'configurationId'] = this.configurationId; - json[r'type'] = this.type; - json[r'isSubSection'] = this.isSubSection; - json[r'instanceId'] = this.instanceId; - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isActive != null) { - json[r'isActive'] = this.isActive; - } else { - json[r'isActive'] = null; - } - if (this.startDate != null) { - json[r'startDate'] = this.startDate!.toUtc().toIso8601String(); - } else { - json[r'startDate'] = null; - } - if (this.endDate != null) { - json[r'endDate'] = this.endDate!.toUtc().toIso8601String(); - } else { - json[r'endDate'] = null; - } - if (this.programme != null) { - json[r'programme'] = this.programme; - } else { - json[r'programme'] = null; - } - if (this.parcoursIds != null) { - json[r'parcoursIds'] = this.parcoursIds; - } else { - json[r'parcoursIds'] = null; - } - return json; - } - - /// Returns a new [ApplicationInstanceSectionEvent] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ApplicationInstanceSectionEvent? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ApplicationInstanceSectionEvent[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ApplicationInstanceSectionEvent[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ApplicationInstanceSectionEvent( - id: mapValueOfType(json, r'id')!, - label: mapValueOfType(json, r'label')!, - title: TranslationDTO.listFromJson(json[r'title']), - configurationId: mapValueOfType(json, r'configurationId')!, - type: SectionType.fromJson(json[r'type'])!, - isSubSection: mapValueOfType(json, r'isSubSection')!, - instanceId: mapValueOfType(json, r'instanceId')!, - description: TranslationDTO.listFromJson(json[r'description']), - order: mapValueOfType(json, r'order'), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - parentId: mapValueOfType(json, r'parentId'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isActive: mapValueOfType(json, r'isActive'), - startDate: mapDateTime(json, r'startDate', r''), - endDate: mapDateTime(json, r'endDate', r''), - programme: ProgrammeBlock.listFromJson(json[r'programme']), - parcoursIds: json[r'parcoursIds'] is Iterable - ? (json[r'parcoursIds'] as Iterable) - .cast() - .toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ApplicationInstanceSectionEvent.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson( - dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ApplicationInstanceSectionEvent.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ApplicationInstanceSectionEvent-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ApplicationInstanceSectionEvent.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'label', - 'title', - 'configurationId', - 'type', - 'isSubSection', - 'instanceId', - }; -} diff --git a/manager_api_new/lib/model/article_dto.dart b/manager_api_new/lib/model/article_dto.dart deleted file mode 100644 index 67ac908..0000000 --- a/manager_api_new/lib/model/article_dto.dart +++ /dev/null @@ -1,402 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ArticleDTO { - /// Returns a new [ArticleDTO] instance. - ArticleDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.content = const [], - this.isContentTop, - this.audioIds = const [], - this.isReadAudioAuto, - this.contents = const [], - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - List? content; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isContentTop; - - List? audioIds; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isReadAudioAuto; - - List? contents; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ArticleDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - _deepEquality.equals(other.content, content) && - other.isContentTop == isContentTop && - _deepEquality.equals(other.audioIds, audioIds) && - other.isReadAudioAuto == isReadAudioAuto && - _deepEquality.equals(other.contents, contents); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (content == null ? 0 : content!.hashCode) + - (isContentTop == null ? 0 : isContentTop!.hashCode) + - (audioIds == null ? 0 : audioIds!.hashCode) + - (isReadAudioAuto == null ? 0 : isReadAudioAuto!.hashCode) + - (contents == null ? 0 : contents!.hashCode); - - @override - String toString() => - 'ArticleDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, content=$content, isContentTop=$isContentTop, audioIds=$audioIds, isReadAudioAuto=$isReadAudioAuto, contents=$contents]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.content != null) { - json[r'content'] = this.content; - } else { - json[r'content'] = null; - } - if (this.isContentTop != null) { - json[r'isContentTop'] = this.isContentTop; - } else { - json[r'isContentTop'] = null; - } - if (this.audioIds != null) { - json[r'audioIds'] = this.audioIds; - } else { - json[r'audioIds'] = null; - } - if (this.isReadAudioAuto != null) { - json[r'isReadAudioAuto'] = this.isReadAudioAuto; - } else { - json[r'isReadAudioAuto'] = null; - } - if (this.contents != null) { - json[r'contents'] = this.contents; - } else { - json[r'contents'] = null; - } - return json; - } - - /// Returns a new [ArticleDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ArticleDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ArticleDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ArticleDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ArticleDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - content: TranslationDTO.listFromJson(json[r'content']), - isContentTop: mapValueOfType(json, r'isContentTop'), - audioIds: TranslationDTO.listFromJson(json[r'audioIds']), - isReadAudioAuto: mapValueOfType(json, r'isReadAudioAuto'), - contents: ContentDTO.listFromJson(json[r'contents']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ArticleDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ArticleDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ArticleDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ArticleDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/categorie_dto.dart b/manager_api_new/lib/model/categorie_dto.dart deleted file mode 100644 index eda272d..0000000 --- a/manager_api_new/lib/model/categorie_dto.dart +++ /dev/null @@ -1,174 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CategorieDTO { - /// Returns a new [CategorieDTO] instance. - CategorieDTO({ - this.id, - this.label = const [], - this.icon, - this.resourceDTO, - this.order, - }); - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? id; - - List? label; - - String? icon; - - ResourceDTO? resourceDTO; - - int? order; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is CategorieDTO && - other.id == id && - _deepEquality.equals(other.label, label) && - other.icon == icon && - other.resourceDTO == resourceDTO && - other.order == order; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (icon == null ? 0 : icon!.hashCode) + - (resourceDTO == null ? 0 : resourceDTO!.hashCode) + - (order == null ? 0 : order!.hashCode); - - @override - String toString() => - 'CategorieDTO[id=$id, label=$label, icon=$icon, resourceDTO=$resourceDTO, order=$order]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.icon != null) { - json[r'icon'] = this.icon; - } else { - json[r'icon'] = null; - } - if (this.resourceDTO != null) { - json[r'resourceDTO'] = this.resourceDTO; - } else { - json[r'resourceDTO'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - return json; - } - - /// Returns a new [CategorieDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CategorieDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "CategorieDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "CategorieDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return CategorieDTO( - id: mapValueOfType(json, r'id'), - label: TranslationDTO.listFromJson(json[r'label']), - icon: mapValueOfType(json, r'icon'), - resourceDTO: ResourceDTO.fromJson(json[r'resourceDTO']), - order: mapValueOfType(json, r'order'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CategorieDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CategorieDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CategorieDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CategorieDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/configuration_dto.dart b/manager_api_new/lib/model/configuration_dto.dart deleted file mode 100644 index 921b4f5..0000000 --- a/manager_api_new/lib/model/configuration_dto.dart +++ /dev/null @@ -1,402 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ConfigurationDTO { - /// Returns a new [ConfigurationDTO] instance. - ConfigurationDTO({ - this.id, - this.label, - this.title = const [], - this.imageId, - this.imageSource, - this.primaryColor, - this.secondaryColor, - this.languages = const [], - this.dateCreation, - this.isMobile, - this.isTablet, - this.isOffline, - this.instanceId, - this.sectionIds = const [], - this.loaderImageId, - this.loaderImageUrl, - this.isDate, - this.isHour, - this.isSectionImageBackground, - this.roundedValue, - this.screenPercentageSectionsMainPage, - }); - - String? id; - - String? label; - - List? title; - - String? imageId; - - String? imageSource; - - String? primaryColor; - - String? secondaryColor; - - List? languages; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isMobile; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isTablet; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isOffline; - - String? instanceId; - - List? sectionIds; - - String? loaderImageId; - - String? loaderImageUrl; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isDate; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isHour; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSectionImageBackground; - - int? roundedValue; - - int? screenPercentageSectionsMainPage; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ConfigurationDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - other.imageId == imageId && - other.imageSource == imageSource && - other.primaryColor == primaryColor && - other.secondaryColor == secondaryColor && - _deepEquality.equals(other.languages, languages) && - other.dateCreation == dateCreation && - other.isMobile == isMobile && - other.isTablet == isTablet && - other.isOffline == isOffline && - other.instanceId == instanceId && - _deepEquality.equals(other.sectionIds, sectionIds) && - other.loaderImageId == loaderImageId && - other.loaderImageUrl == loaderImageUrl && - other.isDate == isDate && - other.isHour == isHour && - other.isSectionImageBackground == isSectionImageBackground && - other.roundedValue == roundedValue && - other.screenPercentageSectionsMainPage == - screenPercentageSectionsMainPage; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (title == null ? 0 : title!.hashCode) + - (imageId == null ? 0 : imageId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode) + - (primaryColor == null ? 0 : primaryColor!.hashCode) + - (secondaryColor == null ? 0 : secondaryColor!.hashCode) + - (languages == null ? 0 : languages!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (isMobile == null ? 0 : isMobile!.hashCode) + - (isTablet == null ? 0 : isTablet!.hashCode) + - (isOffline == null ? 0 : isOffline!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (sectionIds == null ? 0 : sectionIds!.hashCode) + - (loaderImageId == null ? 0 : loaderImageId!.hashCode) + - (loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) + - (isDate == null ? 0 : isDate!.hashCode) + - (isHour == null ? 0 : isHour!.hashCode) + - (isSectionImageBackground == null - ? 0 - : isSectionImageBackground!.hashCode) + - (roundedValue == null ? 0 : roundedValue!.hashCode) + - (screenPercentageSectionsMainPage == null - ? 0 - : screenPercentageSectionsMainPage!.hashCode); - - @override - String toString() => - 'ConfigurationDTO[id=$id, label=$label, title=$title, imageId=$imageId, imageSource=$imageSource, primaryColor=$primaryColor, secondaryColor=$secondaryColor, languages=$languages, dateCreation=$dateCreation, isMobile=$isMobile, isTablet=$isTablet, isOffline=$isOffline, instanceId=$instanceId, sectionIds=$sectionIds, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, isDate=$isDate, isHour=$isHour, isSectionImageBackground=$isSectionImageBackground, roundedValue=$roundedValue, screenPercentageSectionsMainPage=$screenPercentageSectionsMainPage]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.primaryColor != null) { - json[r'primaryColor'] = this.primaryColor; - } else { - json[r'primaryColor'] = null; - } - if (this.secondaryColor != null) { - json[r'secondaryColor'] = this.secondaryColor; - } else { - json[r'secondaryColor'] = null; - } - if (this.languages != null) { - json[r'languages'] = this.languages; - } else { - json[r'languages'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.isMobile != null) { - json[r'isMobile'] = this.isMobile; - } else { - json[r'isMobile'] = null; - } - if (this.isTablet != null) { - json[r'isTablet'] = this.isTablet; - } else { - json[r'isTablet'] = null; - } - if (this.isOffline != null) { - json[r'isOffline'] = this.isOffline; - } else { - json[r'isOffline'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.sectionIds != null) { - json[r'sectionIds'] = this.sectionIds; - } else { - json[r'sectionIds'] = null; - } - if (this.loaderImageId != null) { - json[r'loaderImageId'] = this.loaderImageId; - } else { - json[r'loaderImageId'] = null; - } - if (this.loaderImageUrl != null) { - json[r'loaderImageUrl'] = this.loaderImageUrl; - } else { - json[r'loaderImageUrl'] = null; - } - if (this.isDate != null) { - json[r'isDate'] = this.isDate; - } else { - json[r'isDate'] = null; - } - if (this.isHour != null) { - json[r'isHour'] = this.isHour; - } else { - json[r'isHour'] = null; - } - if (this.isSectionImageBackground != null) { - json[r'isSectionImageBackground'] = this.isSectionImageBackground; - } else { - json[r'isSectionImageBackground'] = null; - } - if (this.roundedValue != null) { - json[r'roundedValue'] = this.roundedValue; - } else { - json[r'roundedValue'] = null; - } - if (this.screenPercentageSectionsMainPage != null) { - json[r'screenPercentageSectionsMainPage'] = - this.screenPercentageSectionsMainPage; - } else { - json[r'screenPercentageSectionsMainPage'] = null; - } - return json; - } - - /// Returns a new [ConfigurationDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ConfigurationDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ConfigurationDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ConfigurationDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ConfigurationDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - primaryColor: mapValueOfType(json, r'primaryColor'), - secondaryColor: mapValueOfType(json, r'secondaryColor'), - languages: json[r'languages'] is Iterable - ? (json[r'languages'] as Iterable) - .cast() - .toList(growable: false) - : const [], - dateCreation: mapDateTime(json, r'dateCreation', r''), - isMobile: mapValueOfType(json, r'isMobile'), - isTablet: mapValueOfType(json, r'isTablet'), - isOffline: mapValueOfType(json, r'isOffline'), - instanceId: mapValueOfType(json, r'instanceId'), - sectionIds: json[r'sectionIds'] is Iterable - ? (json[r'sectionIds'] as Iterable) - .cast() - .toList(growable: false) - : const [], - loaderImageId: mapValueOfType(json, r'loaderImageId'), - loaderImageUrl: mapValueOfType(json, r'loaderImageUrl'), - isDate: mapValueOfType(json, r'isDate'), - isHour: mapValueOfType(json, r'isHour'), - isSectionImageBackground: - mapValueOfType(json, r'isSectionImageBackground'), - roundedValue: mapValueOfType(json, r'roundedValue'), - screenPercentageSectionsMainPage: - mapValueOfType(json, r'screenPercentageSectionsMainPage'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ConfigurationDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ConfigurationDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ConfigurationDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ConfigurationDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/content_dto.dart b/manager_api_new/lib/model/content_dto.dart deleted file mode 100644 index 2ed3ee5..0000000 --- a/manager_api_new/lib/model/content_dto.dart +++ /dev/null @@ -1,174 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ContentDTO { - /// Returns a new [ContentDTO] instance. - ContentDTO({ - this.title = const [], - this.description = const [], - this.order, - this.resourceId, - this.resource, - }); - - List? title; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - String? resourceId; - - ResourceDTO? resource; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ContentDTO && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.order == order && - other.resourceId == resourceId && - other.resource == resource; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (title == null ? 0 : title!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (resourceId == null ? 0 : resourceId!.hashCode) + - (resource == null ? 0 : resource!.hashCode); - - @override - String toString() => - 'ContentDTO[title=$title, description=$description, order=$order, resourceId=$resourceId, resource=$resource]'; - - Map toJson() { - final json = {}; - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.resourceId != null) { - json[r'resourceId'] = this.resourceId; - } else { - json[r'resourceId'] = null; - } - if (this.resource != null) { - json[r'resource'] = this.resource; - } else { - json[r'resource'] = null; - } - return json; - } - - /// Returns a new [ContentDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ContentDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ContentDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ContentDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ContentDTO( - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - order: mapValueOfType(json, r'order'), - resourceId: mapValueOfType(json, r'resourceId'), - resource: ResourceDTO.fromJson(json[r'resource']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ContentDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ContentDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ContentDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ContentDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/content_dto_resource.dart b/manager_api_new/lib/model/content_dto_resource.dart deleted file mode 100644 index 521be98..0000000 --- a/manager_api_new/lib/model/content_dto_resource.dart +++ /dev/null @@ -1,191 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ContentDTOResource { - /// Returns a new [ContentDTOResource] instance. - ContentDTOResource({ - this.id, - this.type, - this.label, - this.url, - this.dateCreation, - this.instanceId, - }); - - String? id; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - ResourceType? type; - - String? label; - - String? url; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - String? instanceId; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ContentDTOResource && - other.id == id && - other.type == type && - other.label == label && - other.url == url && - other.dateCreation == dateCreation && - other.instanceId == instanceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode); - - @override - String toString() => - 'ContentDTOResource[id=$id, type=$type, label=$label, url=$url, dateCreation=$dateCreation, instanceId=$instanceId]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.url != null) { - json[r'url'] = this.url; - } else { - json[r'url'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - return json; - } - - /// Returns a new [ContentDTOResource] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ContentDTOResource? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ContentDTOResource[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ContentDTOResource[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ContentDTOResource( - id: mapValueOfType(json, r'id'), - type: ResourceType.fromJson(json[r'type']), - label: mapValueOfType(json, r'label'), - url: mapValueOfType(json, r'url'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - instanceId: mapValueOfType(json, r'instanceId'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ContentDTOResource.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ContentDTOResource.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ContentDTOResource-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ContentDTOResource.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/content_geo_point.dart b/manager_api_new/lib/model/content_geo_point.dart deleted file mode 100644 index 9bd9ce8..0000000 --- a/manager_api_new/lib/model/content_geo_point.dart +++ /dev/null @@ -1,163 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ContentGeoPoint { - /// Returns a new [ContentGeoPoint] instance. - ContentGeoPoint({ - this.resourceId, - this.resourceType, - this.resourceUrl, - this.resourceName, - }); - - String? resourceId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - ResourceType? resourceType; - - String? resourceUrl; - - String? resourceName; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ContentGeoPoint && - other.resourceId == resourceId && - other.resourceType == resourceType && - other.resourceUrl == resourceUrl && - other.resourceName == resourceName; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (resourceId == null ? 0 : resourceId!.hashCode) + - (resourceType == null ? 0 : resourceType!.hashCode) + - (resourceUrl == null ? 0 : resourceUrl!.hashCode) + - (resourceName == null ? 0 : resourceName!.hashCode); - - @override - String toString() => - 'ContentGeoPoint[resourceId=$resourceId, resourceType=$resourceType, resourceUrl=$resourceUrl, resourceName=$resourceName]'; - - Map toJson() { - final json = {}; - if (this.resourceId != null) { - json[r'resourceId'] = this.resourceId; - } else { - json[r'resourceId'] = null; - } - if (this.resourceType != null) { - json[r'resourceType'] = this.resourceType; - } else { - json[r'resourceType'] = null; - } - if (this.resourceUrl != null) { - json[r'resourceUrl'] = this.resourceUrl; - } else { - json[r'resourceUrl'] = null; - } - if (this.resourceName != null) { - json[r'resourceName'] = this.resourceName; - } else { - json[r'resourceName'] = null; - } - return json; - } - - /// Returns a new [ContentGeoPoint] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ContentGeoPoint? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ContentGeoPoint[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ContentGeoPoint[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ContentGeoPoint( - resourceId: mapValueOfType(json, r'resourceId'), - resourceType: ResourceType.fromJson(json[r'resourceType']), - resourceUrl: mapValueOfType(json, r'resourceUrl'), - resourceName: mapValueOfType(json, r'resourceName'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ContentGeoPoint.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ContentGeoPoint.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ContentGeoPoint-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ContentGeoPoint.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/device_detail_dto.dart b/manager_api_new/lib/model/device_detail_dto.dart deleted file mode 100644 index 7b434d7..0000000 --- a/manager_api_new/lib/model/device_detail_dto.dart +++ /dev/null @@ -1,298 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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.instanceId, - this.connectionLevel, - this.lastConnectionLevel, - this.batteryLevel, - this.lastBatteryLevel, - }); - - String? id; - - String? identifier; - - String? name; - - String? ipAddressWLAN; - - String? ipAddressETH; - - String? configurationId; - - String? configuration; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? connected; - - DateTime? dateCreation; - - DateTime? dateUpdate; - - String? instanceId; - - String? connectionLevel; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? lastConnectionLevel; - - String? batteryLevel; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - 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.instanceId == instanceId && - other.connectionLevel == connectionLevel && - other.lastConnectionLevel == lastConnectionLevel && - other.batteryLevel == batteryLevel && - other.lastBatteryLevel == lastBatteryLevel; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (instanceId == null ? 0 : instanceId!.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, instanceId=$instanceId, connectionLevel=$connectionLevel, lastConnectionLevel=$lastConnectionLevel, batteryLevel=$batteryLevel, lastBatteryLevel=$lastBatteryLevel]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.identifier != null) { - json[r'identifier'] = this.identifier; - } else { - json[r'identifier'] = null; - } - if (this.name != null) { - json[r'name'] = this.name; - } else { - json[r'name'] = null; - } - if (this.ipAddressWLAN != null) { - json[r'ipAddressWLAN'] = this.ipAddressWLAN; - } else { - json[r'ipAddressWLAN'] = null; - } - if (this.ipAddressETH != null) { - json[r'ipAddressETH'] = this.ipAddressETH; - } else { - json[r'ipAddressETH'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.configuration != null) { - json[r'configuration'] = this.configuration; - } else { - json[r'configuration'] = null; - } - if (this.connected != null) { - json[r'connected'] = this.connected; - } else { - json[r'connected'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.dateUpdate != null) { - json[r'dateUpdate'] = this.dateUpdate!.toUtc().toIso8601String(); - } else { - json[r'dateUpdate'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.connectionLevel != null) { - json[r'connectionLevel'] = this.connectionLevel; - } else { - json[r'connectionLevel'] = null; - } - if (this.lastConnectionLevel != null) { - json[r'lastConnectionLevel'] = - this.lastConnectionLevel!.toUtc().toIso8601String(); - } else { - json[r'lastConnectionLevel'] = null; - } - if (this.batteryLevel != null) { - json[r'batteryLevel'] = this.batteryLevel; - } else { - json[r'batteryLevel'] = null; - } - if (this.lastBatteryLevel != null) { - json[r'lastBatteryLevel'] = - this.lastBatteryLevel!.toUtc().toIso8601String(); - } else { - json[r'lastBatteryLevel'] = null; - } - return json; - } - - /// Returns a new [DeviceDetailDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DeviceDetailDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "DeviceDetailDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "DeviceDetailDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return DeviceDetailDTO( - id: mapValueOfType(json, r'id'), - identifier: mapValueOfType(json, r'identifier'), - name: mapValueOfType(json, r'name'), - ipAddressWLAN: mapValueOfType(json, r'ipAddressWLAN'), - ipAddressETH: mapValueOfType(json, r'ipAddressETH'), - configurationId: mapValueOfType(json, r'configurationId'), - configuration: mapValueOfType(json, r'configuration'), - connected: mapValueOfType(json, r'connected'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - dateUpdate: mapDateTime(json, r'dateUpdate', r''), - instanceId: mapValueOfType(json, r'instanceId'), - connectionLevel: mapValueOfType(json, r'connectionLevel'), - lastConnectionLevel: mapDateTime(json, r'lastConnectionLevel', r''), - batteryLevel: mapValueOfType(json, r'batteryLevel'), - lastBatteryLevel: mapDateTime(json, r'lastBatteryLevel', r''), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeviceDetailDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DeviceDetailDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DeviceDetailDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DeviceDetailDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/device_detail_dto_all_of.dart b/manager_api_new/lib/model/device_detail_dto_all_of.dart deleted file mode 100644 index 729d201..0000000 --- a/manager_api_new/lib/model/device_detail_dto_all_of.dart +++ /dev/null @@ -1,171 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class DeviceDetailDTOAllOf { - /// Returns a new [DeviceDetailDTOAllOf] instance. - DeviceDetailDTOAllOf({ - this.connectionLevel, - this.lastConnectionLevel, - this.batteryLevel, - this.lastBatteryLevel, - }); - - String? connectionLevel; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? lastConnectionLevel; - - String? batteryLevel; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - 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 => - // ignore: unnecessary_parenthesis - (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 (this.connectionLevel != null) { - json[r'connectionLevel'] = this.connectionLevel; - } else { - json[r'connectionLevel'] = null; - } - if (this.lastConnectionLevel != null) { - json[r'lastConnectionLevel'] = - this.lastConnectionLevel!.toUtc().toIso8601String(); - } else { - json[r'lastConnectionLevel'] = null; - } - if (this.batteryLevel != null) { - json[r'batteryLevel'] = this.batteryLevel; - } else { - json[r'batteryLevel'] = null; - } - if (this.lastBatteryLevel != null) { - json[r'lastBatteryLevel'] = - this.lastBatteryLevel!.toUtc().toIso8601String(); - } else { - json[r'lastBatteryLevel'] = null; - } - return json; - } - - /// Returns a new [DeviceDetailDTOAllOf] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DeviceDetailDTOAllOf? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "DeviceDetailDTOAllOf[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "DeviceDetailDTOAllOf[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return DeviceDetailDTOAllOf( - connectionLevel: mapValueOfType(json, r'connectionLevel'), - lastConnectionLevel: mapDateTime(json, r'lastConnectionLevel', ''), - batteryLevel: mapValueOfType(json, r'batteryLevel'), - lastBatteryLevel: mapDateTime(json, r'lastBatteryLevel', ''), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeviceDetailDTOAllOf.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DeviceDetailDTOAllOf.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DeviceDetailDTOAllOf-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DeviceDetailDTOAllOf.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/device_dto.dart b/manager_api_new/lib/model/device_dto.dart deleted file mode 100644 index 879f3a8..0000000 --- a/manager_api_new/lib/model/device_dto.dart +++ /dev/null @@ -1,240 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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, - this.instanceId, - }); - - String? id; - - String? identifier; - - String? name; - - String? ipAddressWLAN; - - String? ipAddressETH; - - String? configurationId; - - String? configuration; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? connected; - - DateTime? dateCreation; - - DateTime? dateUpdate; - - String? instanceId; - - @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 && - other.instanceId == instanceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (instanceId == null ? 0 : instanceId!.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, instanceId=$instanceId]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.identifier != null) { - json[r'identifier'] = this.identifier; - } else { - json[r'identifier'] = null; - } - if (this.name != null) { - json[r'name'] = this.name; - } else { - json[r'name'] = null; - } - if (this.ipAddressWLAN != null) { - json[r'ipAddressWLAN'] = this.ipAddressWLAN; - } else { - json[r'ipAddressWLAN'] = null; - } - if (this.ipAddressETH != null) { - json[r'ipAddressETH'] = this.ipAddressETH; - } else { - json[r'ipAddressETH'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.configuration != null) { - json[r'configuration'] = this.configuration; - } else { - json[r'configuration'] = null; - } - if (this.connected != null) { - json[r'connected'] = this.connected; - } else { - json[r'connected'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.dateUpdate != null) { - json[r'dateUpdate'] = this.dateUpdate!.toUtc().toIso8601String(); - } else { - json[r'dateUpdate'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - return json; - } - - /// Returns a new [DeviceDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DeviceDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "DeviceDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "DeviceDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return DeviceDTO( - id: mapValueOfType(json, r'id'), - identifier: mapValueOfType(json, r'identifier'), - name: mapValueOfType(json, r'name'), - ipAddressWLAN: mapValueOfType(json, r'ipAddressWLAN'), - ipAddressETH: mapValueOfType(json, r'ipAddressETH'), - configurationId: mapValueOfType(json, r'configurationId'), - configuration: mapValueOfType(json, r'configuration'), - connected: mapValueOfType(json, r'connected'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - dateUpdate: mapDateTime(json, r'dateUpdate', r''), - instanceId: mapValueOfType(json, r'instanceId'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeviceDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DeviceDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DeviceDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DeviceDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/export_configuration_dto.dart b/manager_api_new/lib/model/export_configuration_dto.dart deleted file mode 100644 index bdc808c..0000000 --- a/manager_api_new/lib/model/export_configuration_dto.dart +++ /dev/null @@ -1,424 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ExportConfigurationDTO { - /// Returns a new [ExportConfigurationDTO] instance. - ExportConfigurationDTO({ - this.id, - this.label, - this.title = const [], - this.imageId, - this.imageSource, - this.primaryColor, - this.secondaryColor, - this.languages = const [], - this.dateCreation, - this.isMobile, - this.isTablet, - this.isOffline, - this.instanceId, - this.sectionIds = const [], - this.loaderImageId, - this.loaderImageUrl, - this.isDate, - this.isHour, - this.isSectionImageBackground, - this.roundedValue, - this.screenPercentageSectionsMainPage, - this.sections = const [], - this.resources = const [], - }); - - String? id; - - String? label; - - List? title; - - String? imageId; - - String? imageSource; - - String? primaryColor; - - String? secondaryColor; - - List? languages; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isMobile; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isTablet; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isOffline; - - String? instanceId; - - List? sectionIds; - - String? loaderImageId; - - String? loaderImageUrl; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isDate; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isHour; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSectionImageBackground; - - int? roundedValue; - - int? screenPercentageSectionsMainPage; - - List? sections; - - List? resources; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ExportConfigurationDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - other.imageId == imageId && - other.imageSource == imageSource && - other.primaryColor == primaryColor && - other.secondaryColor == secondaryColor && - _deepEquality.equals(other.languages, languages) && - other.dateCreation == dateCreation && - other.isMobile == isMobile && - other.isTablet == isTablet && - other.isOffline == isOffline && - other.instanceId == instanceId && - _deepEquality.equals(other.sectionIds, sectionIds) && - other.loaderImageId == loaderImageId && - other.loaderImageUrl == loaderImageUrl && - other.isDate == isDate && - other.isHour == isHour && - other.isSectionImageBackground == isSectionImageBackground && - other.roundedValue == roundedValue && - other.screenPercentageSectionsMainPage == - screenPercentageSectionsMainPage && - _deepEquality.equals(other.sections, sections) && - _deepEquality.equals(other.resources, resources); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (title == null ? 0 : title!.hashCode) + - (imageId == null ? 0 : imageId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode) + - (primaryColor == null ? 0 : primaryColor!.hashCode) + - (secondaryColor == null ? 0 : secondaryColor!.hashCode) + - (languages == null ? 0 : languages!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (isMobile == null ? 0 : isMobile!.hashCode) + - (isTablet == null ? 0 : isTablet!.hashCode) + - (isOffline == null ? 0 : isOffline!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (sectionIds == null ? 0 : sectionIds!.hashCode) + - (loaderImageId == null ? 0 : loaderImageId!.hashCode) + - (loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) + - (isDate == null ? 0 : isDate!.hashCode) + - (isHour == null ? 0 : isHour!.hashCode) + - (isSectionImageBackground == null - ? 0 - : isSectionImageBackground!.hashCode) + - (roundedValue == null ? 0 : roundedValue!.hashCode) + - (screenPercentageSectionsMainPage == null - ? 0 - : screenPercentageSectionsMainPage!.hashCode) + - (sections == null ? 0 : sections!.hashCode) + - (resources == null ? 0 : resources!.hashCode); - - @override - String toString() => - 'ExportConfigurationDTO[id=$id, label=$label, title=$title, imageId=$imageId, imageSource=$imageSource, primaryColor=$primaryColor, secondaryColor=$secondaryColor, languages=$languages, dateCreation=$dateCreation, isMobile=$isMobile, isTablet=$isTablet, isOffline=$isOffline, instanceId=$instanceId, sectionIds=$sectionIds, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, isDate=$isDate, isHour=$isHour, isSectionImageBackground=$isSectionImageBackground, roundedValue=$roundedValue, screenPercentageSectionsMainPage=$screenPercentageSectionsMainPage, sections=$sections, resources=$resources]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.primaryColor != null) { - json[r'primaryColor'] = this.primaryColor; - } else { - json[r'primaryColor'] = null; - } - if (this.secondaryColor != null) { - json[r'secondaryColor'] = this.secondaryColor; - } else { - json[r'secondaryColor'] = null; - } - if (this.languages != null) { - json[r'languages'] = this.languages; - } else { - json[r'languages'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.isMobile != null) { - json[r'isMobile'] = this.isMobile; - } else { - json[r'isMobile'] = null; - } - if (this.isTablet != null) { - json[r'isTablet'] = this.isTablet; - } else { - json[r'isTablet'] = null; - } - if (this.isOffline != null) { - json[r'isOffline'] = this.isOffline; - } else { - json[r'isOffline'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.sectionIds != null) { - json[r'sectionIds'] = this.sectionIds; - } else { - json[r'sectionIds'] = null; - } - if (this.loaderImageId != null) { - json[r'loaderImageId'] = this.loaderImageId; - } else { - json[r'loaderImageId'] = null; - } - if (this.loaderImageUrl != null) { - json[r'loaderImageUrl'] = this.loaderImageUrl; - } else { - json[r'loaderImageUrl'] = null; - } - if (this.isDate != null) { - json[r'isDate'] = this.isDate; - } else { - json[r'isDate'] = null; - } - if (this.isHour != null) { - json[r'isHour'] = this.isHour; - } else { - json[r'isHour'] = null; - } - if (this.isSectionImageBackground != null) { - json[r'isSectionImageBackground'] = this.isSectionImageBackground; - } else { - json[r'isSectionImageBackground'] = null; - } - if (this.roundedValue != null) { - json[r'roundedValue'] = this.roundedValue; - } else { - json[r'roundedValue'] = null; - } - if (this.screenPercentageSectionsMainPage != null) { - json[r'screenPercentageSectionsMainPage'] = - this.screenPercentageSectionsMainPage; - } else { - json[r'screenPercentageSectionsMainPage'] = null; - } - if (this.sections != null) { - json[r'sections'] = this.sections; - } else { - json[r'sections'] = null; - } - if (this.resources != null) { - json[r'resources'] = this.resources; - } else { - json[r'resources'] = null; - } - return json; - } - - /// Returns a new [ExportConfigurationDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ExportConfigurationDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ExportConfigurationDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ExportConfigurationDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ExportConfigurationDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - primaryColor: mapValueOfType(json, r'primaryColor'), - secondaryColor: mapValueOfType(json, r'secondaryColor'), - languages: json[r'languages'] is Iterable - ? (json[r'languages'] as Iterable) - .cast() - .toList(growable: false) - : const [], - dateCreation: mapDateTime(json, r'dateCreation', r''), - isMobile: mapValueOfType(json, r'isMobile'), - isTablet: mapValueOfType(json, r'isTablet'), - isOffline: mapValueOfType(json, r'isOffline'), - instanceId: mapValueOfType(json, r'instanceId'), - sectionIds: json[r'sectionIds'] is Iterable - ? (json[r'sectionIds'] as Iterable) - .cast() - .toList(growable: false) - : const [], - loaderImageId: mapValueOfType(json, r'loaderImageId'), - loaderImageUrl: mapValueOfType(json, r'loaderImageUrl'), - isDate: mapValueOfType(json, r'isDate'), - isHour: mapValueOfType(json, r'isHour'), - isSectionImageBackground: - mapValueOfType(json, r'isSectionImageBackground'), - roundedValue: mapValueOfType(json, r'roundedValue'), - screenPercentageSectionsMainPage: - mapValueOfType(json, r'screenPercentageSectionsMainPage'), - sections: SectionDTO.listFromJson(json[r'sections']), - resources: ResourceDTO.listFromJson(json[r'resources']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ExportConfigurationDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ExportConfigurationDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ExportConfigurationDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ExportConfigurationDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/export_configuration_dto_all_of.dart b/manager_api_new/lib/model/export_configuration_dto_all_of.dart deleted file mode 100644 index 02e3aec..0000000 --- a/manager_api_new/lib/model/export_configuration_dto_all_of.dart +++ /dev/null @@ -1,135 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ExportConfigurationDTOAllOf { - /// Returns a new [ExportConfigurationDTOAllOf] instance. - ExportConfigurationDTOAllOf({ - this.sections = const [], - this.resources = const [], - }); - - 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 => - // ignore: unnecessary_parenthesis - (sections == null ? 0 : sections!.hashCode) + - (resources == null ? 0 : resources!.hashCode); - - @override - String toString() => - 'ExportConfigurationDTOAllOf[sections=$sections, resources=$resources]'; - - Map toJson() { - final json = {}; - if (this.sections != null) { - json[r'sections'] = this.sections; - } else { - json[r'sections'] = null; - } - if (this.resources != null) { - json[r'resources'] = this.resources; - } else { - json[r'resources'] = null; - } - return json; - } - - /// Returns a new [ExportConfigurationDTOAllOf] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ExportConfigurationDTOAllOf? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ExportConfigurationDTOAllOf[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ExportConfigurationDTOAllOf[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ExportConfigurationDTOAllOf( - sections: SectionDTO.listFromJson(json[r'sections']), - resources: ResourceDTO.listFromJson(json[r'resources']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ExportConfigurationDTOAllOf.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ExportConfigurationDTOAllOf.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ExportConfigurationDTOAllOf-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ExportConfigurationDTOAllOf.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/geo_point.dart b/manager_api_new/lib/model/geo_point.dart deleted file mode 100644 index 955c841..0000000 --- a/manager_api_new/lib/model/geo_point.dart +++ /dev/null @@ -1,263 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GeoPoint { - /// Returns a new [GeoPoint] instance. - GeoPoint({ - required this.id, - this.title = const [], - this.description = const [], - this.contents = const [], - this.schedules = const [], - this.prices = const [], - this.phone = const [], - this.email = const [], - this.site = const [], - this.categorieId, - this.latitude, - this.longitude, - this.imageResourceId, - this.imageUrl, - this.sectionMapId, - this.sectionMap, - }); - - int id; - - List title; - - List description; - - List contents; - - List schedules; - - List prices; - - List phone; - - List email; - - List site; - - int? categorieId; - - String? latitude; - - String? longitude; - - String? imageResourceId; - - String? imageUrl; - - String? sectionMapId; - - GeoPointSectionMap? sectionMap; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is GeoPoint && - other.id == id && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - _deepEquality.equals(other.contents, contents) && - _deepEquality.equals(other.schedules, schedules) && - _deepEquality.equals(other.prices, prices) && - _deepEquality.equals(other.phone, phone) && - _deepEquality.equals(other.email, email) && - _deepEquality.equals(other.site, site) && - other.categorieId == categorieId && - other.latitude == latitude && - other.longitude == longitude && - other.imageResourceId == imageResourceId && - other.imageUrl == imageUrl && - other.sectionMapId == sectionMapId && - other.sectionMap == sectionMap; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (title.hashCode) + - (description.hashCode) + - (contents.hashCode) + - (schedules.hashCode) + - (prices.hashCode) + - (phone.hashCode) + - (email.hashCode) + - (site.hashCode) + - (categorieId == null ? 0 : categorieId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (imageResourceId == null ? 0 : imageResourceId!.hashCode) + - (imageUrl == null ? 0 : imageUrl!.hashCode) + - (sectionMapId == null ? 0 : sectionMapId!.hashCode) + - (sectionMap == null ? 0 : sectionMap!.hashCode); - - @override - String toString() => - 'GeoPoint[id=$id, title=$title, description=$description, contents=$contents, schedules=$schedules, prices=$prices, phone=$phone, email=$email, site=$site, categorieId=$categorieId, latitude=$latitude, longitude=$longitude, imageResourceId=$imageResourceId, imageUrl=$imageUrl, sectionMapId=$sectionMapId, sectionMap=$sectionMap]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'title'] = this.title; - json[r'description'] = this.description; - json[r'contents'] = this.contents; - json[r'schedules'] = this.schedules; - json[r'prices'] = this.prices; - json[r'phone'] = this.phone; - json[r'email'] = this.email; - json[r'site'] = this.site; - if (this.categorieId != null) { - json[r'categorieId'] = this.categorieId; - } else { - json[r'categorieId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.imageResourceId != null) { - json[r'imageResourceId'] = this.imageResourceId; - } else { - json[r'imageResourceId'] = null; - } - if (this.imageUrl != null) { - json[r'imageUrl'] = this.imageUrl; - } else { - json[r'imageUrl'] = null; - } - if (this.sectionMapId != null) { - json[r'sectionMapId'] = this.sectionMapId; - } else { - json[r'sectionMapId'] = null; - } - if (this.sectionMap != null) { - json[r'sectionMap'] = this.sectionMap; - } else { - json[r'sectionMap'] = null; - } - return json; - } - - /// Returns a new [GeoPoint] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GeoPoint? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "GeoPoint[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "GeoPoint[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return GeoPoint( - id: mapValueOfType(json, r'id')!, - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - contents: ContentDTO.listFromJson(json[r'contents']), - schedules: TranslationDTO.listFromJson(json[r'schedules']), - prices: TranslationDTO.listFromJson(json[r'prices']), - phone: TranslationDTO.listFromJson(json[r'phone']), - email: TranslationDTO.listFromJson(json[r'email']), - site: TranslationDTO.listFromJson(json[r'site']), - categorieId: mapValueOfType(json, r'categorieId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - imageResourceId: mapValueOfType(json, r'imageResourceId'), - imageUrl: mapValueOfType(json, r'imageUrl'), - sectionMapId: mapValueOfType(json, r'sectionMapId'), - sectionMap: GeoPointSectionMap.fromJson(json[r'sectionMap']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GeoPoint.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GeoPoint.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GeoPoint-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GeoPoint.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'title', - 'description', - 'contents', - 'schedules', - 'prices', - 'phone', - 'email', - 'site', - }; -} diff --git a/manager_api_new/lib/model/geo_point_dto.dart b/manager_api_new/lib/model/geo_point_dto.dart deleted file mode 100644 index e901072..0000000 --- a/manager_api_new/lib/model/geo_point_dto.dart +++ /dev/null @@ -1,267 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GeoPointDTO { - /// Returns a new [GeoPointDTO] instance. - GeoPointDTO({ - this.id, - this.title = const [], - this.description = const [], - this.contents = const [], - this.categorieId, - this.latitude, - this.longitude, - this.imageResourceId, - this.imageUrl, - this.schedules = const [], - this.prices = const [], - this.phone = const [], - this.email = const [], - this.site = const [], - }); - - int? id; - - List? title; - - List? description; - - List? contents; - - int? categorieId; - - String? latitude; - - String? longitude; - - String? imageResourceId; - - String? imageUrl; - - List? schedules; - - List? prices; - - List? phone; - - List? email; - - List? site; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is GeoPointDTO && - other.id == id && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - _deepEquality.equals(other.contents, contents) && - other.categorieId == categorieId && - other.latitude == latitude && - other.longitude == longitude && - other.imageResourceId == imageResourceId && - other.imageUrl == imageUrl && - _deepEquality.equals(other.schedules, schedules) && - _deepEquality.equals(other.prices, prices) && - _deepEquality.equals(other.phone, phone) && - _deepEquality.equals(other.email, email) && - _deepEquality.equals(other.site, site); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (title == null ? 0 : title!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (contents == null ? 0 : contents!.hashCode) + - (categorieId == null ? 0 : categorieId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (imageResourceId == null ? 0 : imageResourceId!.hashCode) + - (imageUrl == null ? 0 : imageUrl!.hashCode) + - (schedules == null ? 0 : schedules!.hashCode) + - (prices == null ? 0 : prices!.hashCode) + - (phone == null ? 0 : phone!.hashCode) + - (email == null ? 0 : email!.hashCode) + - (site == null ? 0 : site!.hashCode); - - @override - String toString() => - 'GeoPointDTO[id=$id, title=$title, description=$description, contents=$contents, categorieId=$categorieId, latitude=$latitude, longitude=$longitude, imageResourceId=$imageResourceId, imageUrl=$imageUrl, schedules=$schedules, prices=$prices, phone=$phone, email=$email, site=$site]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.contents != null) { - json[r'contents'] = this.contents; - } else { - json[r'contents'] = null; - } - if (this.categorieId != null) { - json[r'categorieId'] = this.categorieId; - } else { - json[r'categorieId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.imageResourceId != null) { - json[r'imageResourceId'] = this.imageResourceId; - } else { - json[r'imageResourceId'] = null; - } - if (this.imageUrl != null) { - json[r'imageUrl'] = this.imageUrl; - } else { - json[r'imageUrl'] = null; - } - if (this.schedules != null) { - json[r'schedules'] = this.schedules; - } else { - json[r'schedules'] = null; - } - if (this.prices != null) { - json[r'prices'] = this.prices; - } else { - json[r'prices'] = null; - } - if (this.phone != null) { - json[r'phone'] = this.phone; - } else { - json[r'phone'] = null; - } - if (this.email != null) { - json[r'email'] = this.email; - } else { - json[r'email'] = null; - } - if (this.site != null) { - json[r'site'] = this.site; - } else { - json[r'site'] = null; - } - return json; - } - - /// Returns a new [GeoPointDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GeoPointDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "GeoPointDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "GeoPointDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return GeoPointDTO( - id: mapValueOfType(json, r'id'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - contents: ContentDTO.listFromJson(json[r'contents']), - categorieId: mapValueOfType(json, r'categorieId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - imageResourceId: mapValueOfType(json, r'imageResourceId'), - imageUrl: mapValueOfType(json, r'imageUrl'), - schedules: TranslationDTO.listFromJson(json[r'schedules']), - prices: TranslationDTO.listFromJson(json[r'prices']), - phone: TranslationDTO.listFromJson(json[r'phone']), - email: TranslationDTO.listFromJson(json[r'email']), - site: TranslationDTO.listFromJson(json[r'site']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GeoPointDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GeoPointDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GeoPointDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GeoPointDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/geo_point_dto_categorie.dart b/manager_api_new/lib/model/geo_point_dto_categorie.dart deleted file mode 100644 index 5df6384..0000000 --- a/manager_api_new/lib/model/geo_point_dto_categorie.dart +++ /dev/null @@ -1,179 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GeoPointDTOCategorie { - /// Returns a new [GeoPointDTOCategorie] instance. - GeoPointDTOCategorie({ - this.id, - this.label = const [], - this.icon, - this.iconResourceId, - this.iconUrl, - this.order, - }); - - int? id; - - List? label; - - String? icon; - - String? iconResourceId; - - String? iconUrl; - - int? order; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is GeoPointDTOCategorie && - other.id == id && - other.label == label && - other.icon == icon && - other.iconResourceId == iconResourceId && - other.iconUrl == iconUrl && - other.order == order; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (icon == null ? 0 : icon!.hashCode) + - (iconResourceId == null ? 0 : iconResourceId!.hashCode) + - (iconUrl == null ? 0 : iconUrl!.hashCode) + - (order == null ? 0 : order!.hashCode); - - @override - String toString() => - 'GeoPointDTOCategorie[id=$id, label=$label, icon=$icon, iconResourceId=$iconResourceId, iconUrl=$iconUrl, order=$order]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.icon != null) { - json[r'icon'] = this.icon; - } else { - json[r'icon'] = null; - } - if (this.iconResourceId != null) { - json[r'iconResourceId'] = this.iconResourceId; - } else { - json[r'iconResourceId'] = null; - } - if (this.iconUrl != null) { - json[r'iconUrl'] = this.iconUrl; - } else { - json[r'iconUrl'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - return json; - } - - /// Returns a new [GeoPointDTOCategorie] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GeoPointDTOCategorie? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "GeoPointDTOCategorie[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "GeoPointDTOCategorie[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return GeoPointDTOCategorie( - id: mapValueOfType(json, r'id'), - label: TranslationDTO.listFromJson(json[r'label']), - icon: mapValueOfType(json, r'icon'), - iconResourceId: mapValueOfType(json, r'iconResourceId'), - iconUrl: mapValueOfType(json, r'iconUrl'), - order: mapValueOfType(json, r'order'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GeoPointDTOCategorie.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GeoPointDTOCategorie.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GeoPointDTOCategorie-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GeoPointDTOCategorie.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/geo_point_section_map.dart b/manager_api_new/lib/model/geo_point_section_map.dart deleted file mode 100644 index c9a7653..0000000 --- a/manager_api_new/lib/model/geo_point_section_map.dart +++ /dev/null @@ -1,424 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GeoPointSectionMap { - /// Returns a new [GeoPointSectionMap] instance. - GeoPointSectionMap({ - required this.id, - required this.label, - this.title = const [], - required this.configurationId, - required this.type, - required this.isSubSection, - required this.instanceId, - this.mapCategories = const [], - this.description = const [], - this.order, - this.imageId, - this.imageSource, - this.parentId, - this.dateCreation, - this.isBeacon, - this.beaconId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.mapZoom, - this.mapMapType, - this.mapTypeMapbox, - this.mapMapProvider, - this.mapPoints = const [], - this.mapResourceId, - this.mapResource, - this.mapCenterLatitude, - this.mapCenterLongitude, - }); - - String id; - - String label; - - List title; - - String configurationId; - - SectionType type; - - bool isSubSection; - - String instanceId; - - List mapCategories; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - String? imageId; - - String? imageSource; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? mapZoom; - - SectionMapAllOfMapMapType? mapMapType; - - SectionMapAllOfMapTypeMapbox? mapTypeMapbox; - - SectionMapAllOfMapMapProvider? mapMapProvider; - - List? mapPoints; - - String? mapResourceId; - - SectionMapAllOfMapResource? mapResource; - - String? mapCenterLatitude; - - String? mapCenterLongitude; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is GeoPointSectionMap && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - other.configurationId == configurationId && - other.type == type && - other.isSubSection == isSubSection && - other.instanceId == instanceId && - _deepEquality.equals(other.mapCategories, mapCategories) && - _deepEquality.equals(other.description, description) && - other.order == order && - other.imageId == imageId && - other.imageSource == imageSource && - other.parentId == parentId && - other.dateCreation == dateCreation && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.mapZoom == mapZoom && - other.mapMapType == mapMapType && - other.mapTypeMapbox == mapTypeMapbox && - other.mapMapProvider == mapMapProvider && - _deepEquality.equals(other.mapPoints, mapPoints) && - other.mapResourceId == mapResourceId && - other.mapResource == mapResource && - other.mapCenterLatitude == mapCenterLatitude && - other.mapCenterLongitude == mapCenterLongitude; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (label.hashCode) + - (title.hashCode) + - (configurationId.hashCode) + - (type.hashCode) + - (isSubSection.hashCode) + - (instanceId.hashCode) + - (mapCategories.hashCode) + - (description == null ? 0 : description!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (imageId == null ? 0 : imageId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (mapZoom == null ? 0 : mapZoom!.hashCode) + - (mapMapType == null ? 0 : mapMapType!.hashCode) + - (mapTypeMapbox == null ? 0 : mapTypeMapbox!.hashCode) + - (mapMapProvider == null ? 0 : mapMapProvider!.hashCode) + - (mapPoints == null ? 0 : mapPoints!.hashCode) + - (mapResourceId == null ? 0 : mapResourceId!.hashCode) + - (mapResource == null ? 0 : mapResource!.hashCode) + - (mapCenterLatitude == null ? 0 : mapCenterLatitude!.hashCode) + - (mapCenterLongitude == null ? 0 : mapCenterLongitude!.hashCode); - - @override - String toString() => - 'GeoPointSectionMap[id=$id, label=$label, title=$title, configurationId=$configurationId, type=$type, isSubSection=$isSubSection, instanceId=$instanceId, mapCategories=$mapCategories, description=$description, order=$order, imageId=$imageId, imageSource=$imageSource, parentId=$parentId, dateCreation=$dateCreation, isBeacon=$isBeacon, beaconId=$beaconId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, mapZoom=$mapZoom, mapMapType=$mapMapType, mapTypeMapbox=$mapTypeMapbox, mapMapProvider=$mapMapProvider, mapPoints=$mapPoints, mapResourceId=$mapResourceId, mapResource=$mapResource, mapCenterLatitude=$mapCenterLatitude, mapCenterLongitude=$mapCenterLongitude]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'label'] = this.label; - json[r'title'] = this.title; - json[r'configurationId'] = this.configurationId; - json[r'type'] = this.type; - json[r'isSubSection'] = this.isSubSection; - json[r'instanceId'] = this.instanceId; - json[r'mapCategories'] = this.mapCategories; - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.mapZoom != null) { - json[r'mapZoom'] = this.mapZoom; - } else { - json[r'mapZoom'] = null; - } - if (this.mapMapType != null) { - json[r'mapMapType'] = this.mapMapType; - } else { - json[r'mapMapType'] = null; - } - if (this.mapTypeMapbox != null) { - json[r'mapTypeMapbox'] = this.mapTypeMapbox; - } else { - json[r'mapTypeMapbox'] = null; - } - if (this.mapMapProvider != null) { - json[r'mapMapProvider'] = this.mapMapProvider; - } else { - json[r'mapMapProvider'] = null; - } - if (this.mapPoints != null) { - json[r'mapPoints'] = this.mapPoints; - } else { - json[r'mapPoints'] = null; - } - if (this.mapResourceId != null) { - json[r'mapResourceId'] = this.mapResourceId; - } else { - json[r'mapResourceId'] = null; - } - if (this.mapResource != null) { - json[r'mapResource'] = this.mapResource; - } else { - json[r'mapResource'] = null; - } - if (this.mapCenterLatitude != null) { - json[r'mapCenterLatitude'] = this.mapCenterLatitude; - } else { - json[r'mapCenterLatitude'] = null; - } - if (this.mapCenterLongitude != null) { - json[r'mapCenterLongitude'] = this.mapCenterLongitude; - } else { - json[r'mapCenterLongitude'] = null; - } - return json; - } - - /// Returns a new [GeoPointSectionMap] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GeoPointSectionMap? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "GeoPointSectionMap[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "GeoPointSectionMap[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return GeoPointSectionMap( - id: mapValueOfType(json, r'id')!, - label: mapValueOfType(json, r'label')!, - title: TranslationDTO.listFromJson(json[r'title']), - configurationId: mapValueOfType(json, r'configurationId')!, - type: SectionType.fromJson(json[r'type'])!, - isSubSection: mapValueOfType(json, r'isSubSection')!, - instanceId: mapValueOfType(json, r'instanceId')!, - mapCategories: CategorieDTO.listFromJson(json[r'mapCategories']), - description: TranslationDTO.listFromJson(json[r'description']), - order: mapValueOfType(json, r'order'), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - parentId: mapValueOfType(json, r'parentId'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - mapZoom: mapValueOfType(json, r'mapZoom'), - mapMapType: SectionMapAllOfMapMapType.fromJson(json[r'mapMapType']), - mapTypeMapbox: - SectionMapAllOfMapTypeMapbox.fromJson(json[r'mapTypeMapbox']), - mapMapProvider: - SectionMapAllOfMapMapProvider.fromJson(json[r'mapMapProvider']), - mapPoints: GeoPoint.listFromJson(json[r'mapPoints']), - mapResourceId: mapValueOfType(json, r'mapResourceId'), - mapResource: SectionMapAllOfMapResource.fromJson(json[r'mapResource']), - mapCenterLatitude: mapValueOfType(json, r'mapCenterLatitude'), - mapCenterLongitude: mapValueOfType(json, r'mapCenterLongitude'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GeoPointSectionMap.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GeoPointSectionMap.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GeoPointSectionMap-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GeoPointSectionMap.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'label', - 'title', - 'configurationId', - 'type', - 'isSubSection', - 'instanceId', - 'mapCategories', - }; -} diff --git a/manager_api_new/lib/model/image_dto.dart b/manager_api_new/lib/model/image_dto.dart deleted file mode 100644 index c0120e3..0000000 --- a/manager_api_new/lib/model/image_dto.dart +++ /dev/null @@ -1,174 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ImageDTO { - /// Returns a new [ImageDTO] instance. - ImageDTO({ - this.title = const [], - this.description = const [], - this.resourceId, - this.source_, - this.order, - }); - - List? title; - - List? description; - - String? resourceId; - - String? source_; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? 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 => - // ignore: unnecessary_parenthesis - (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 (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.resourceId != null) { - json[r'resourceId'] = this.resourceId; - } else { - json[r'resourceId'] = null; - } - if (this.source_ != null) { - json[r'source'] = this.source_; - } else { - json[r'source'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - return json; - } - - /// Returns a new [ImageDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ImageDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ImageDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ImageDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ImageDTO( - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - resourceId: mapValueOfType(json, r'resourceId'), - source_: mapValueOfType(json, r'source'), - order: mapValueOfType(json, r'order'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ImageDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ImageDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ImageDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ImageDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/image_geo_point.dart b/manager_api_new/lib/model/image_geo_point.dart deleted file mode 100644 index e92d32b..0000000 --- a/manager_api_new/lib/model/image_geo_point.dart +++ /dev/null @@ -1,135 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class 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 => - // ignore: unnecessary_parenthesis - (imageResourceId == null ? 0 : imageResourceId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode); - - @override - String toString() => - 'ImageGeoPoint[imageResourceId=$imageResourceId, imageSource=$imageSource]'; - - Map toJson() { - final json = {}; - if (this.imageResourceId != null) { - json[r'imageResourceId'] = this.imageResourceId; - } else { - json[r'imageResourceId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - return json; - } - - /// Returns a new [ImageGeoPoint] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ImageGeoPoint? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ImageGeoPoint[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ImageGeoPoint[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ImageGeoPoint( - imageResourceId: mapValueOfType(json, r'imageResourceId'), - imageSource: mapValueOfType(json, r'imageSource'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ImageGeoPoint.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ImageGeoPoint.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ImageGeoPoint-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ImageGeoPoint.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/instance.dart b/manager_api_new/lib/model/instance.dart deleted file mode 100644 index 84aed0c..0000000 --- a/manager_api_new/lib/model/instance.dart +++ /dev/null @@ -1,158 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class Instance { - /// Returns a new [Instance] instance. - Instance({ - required this.id, - required this.name, - this.dateCreation, - this.pinCode, - }); - - String id; - - String name; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - String? pinCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is Instance && - other.id == id && - other.name == name && - other.dateCreation == dateCreation && - other.pinCode == pinCode; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (name.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (pinCode == null ? 0 : pinCode!.hashCode); - - @override - String toString() => - 'Instance[id=$id, name=$name, dateCreation=$dateCreation, pinCode=$pinCode]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'name'] = this.name; - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.pinCode != null) { - json[r'pinCode'] = this.pinCode; - } else { - json[r'pinCode'] = null; - } - return json; - } - - /// Returns a new [Instance] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static Instance? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "Instance[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "Instance[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return Instance( - id: mapValueOfType(json, r'id')!, - name: mapValueOfType(json, r'name')!, - dateCreation: mapDateTime(json, r'dateCreation', r''), - pinCode: mapValueOfType(json, r'pinCode'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = Instance.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = Instance.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of Instance-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = Instance.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'name', - }; -} diff --git a/manager_api_new/lib/model/instance_dto.dart b/manager_api_new/lib/model/instance_dto.dart deleted file mode 100644 index 8d7e076..0000000 --- a/manager_api_new/lib/model/instance_dto.dart +++ /dev/null @@ -1,283 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class InstanceDTO { - /// Returns a new [InstanceDTO] instance. - InstanceDTO({ - this.id, - this.name, - this.dateCreation, - this.pinCode, - this.isPushNotification, - this.isStatistic, - this.isMobile, - this.isTablet, - this.isWeb, - this.isVR, - this.isAssistant, - this.applicationInstanceDTOs = const [], - }); - - String? id; - - String? name; - - DateTime? dateCreation; - - String? pinCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isPushNotification; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isStatistic; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isMobile; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isTablet; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isWeb; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isVR; - - bool? isAssistant; - - List? applicationInstanceDTOs; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is InstanceDTO && - other.id == id && - other.name == name && - other.dateCreation == dateCreation && - other.pinCode == pinCode && - other.isPushNotification == isPushNotification && - other.isStatistic == isStatistic && - other.isMobile == isMobile && - other.isTablet == isTablet && - other.isWeb == isWeb && - other.isVR == isVR && - other.isAssistant == isAssistant && - _deepEquality.equals( - other.applicationInstanceDTOs, applicationInstanceDTOs); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (name == null ? 0 : name!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (pinCode == null ? 0 : pinCode!.hashCode) + - (isPushNotification == null ? 0 : isPushNotification!.hashCode) + - (isStatistic == null ? 0 : isStatistic!.hashCode) + - (isMobile == null ? 0 : isMobile!.hashCode) + - (isTablet == null ? 0 : isTablet!.hashCode) + - (isWeb == null ? 0 : isWeb!.hashCode) + - (isVR == null ? 0 : isVR!.hashCode) + - (isAssistant == null ? 0 : isAssistant!.hashCode) + - (applicationInstanceDTOs == null ? 0 : applicationInstanceDTOs!.hashCode); - - @override - String toString() => - 'InstanceDTO[id=$id, name=$name, dateCreation=$dateCreation, pinCode=$pinCode, isPushNotification=$isPushNotification, isStatistic=$isStatistic, isMobile=$isMobile, isTablet=$isTablet, isWeb=$isWeb, isVR=$isVR, isAssistant=$isAssistant, applicationInstanceDTOs=$applicationInstanceDTOs]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.name != null) { - json[r'name'] = this.name; - } else { - json[r'name'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.pinCode != null) { - json[r'pinCode'] = this.pinCode; - } else { - json[r'pinCode'] = null; - } - if (this.isPushNotification != null) { - json[r'isPushNotification'] = this.isPushNotification; - } else { - json[r'isPushNotification'] = null; - } - if (this.isStatistic != null) { - json[r'isStatistic'] = this.isStatistic; - } else { - json[r'isStatistic'] = null; - } - if (this.isMobile != null) { - json[r'isMobile'] = this.isMobile; - } else { - json[r'isMobile'] = null; - } - if (this.isTablet != null) { - json[r'isTablet'] = this.isTablet; - } else { - json[r'isTablet'] = null; - } - if (this.isWeb != null) { - json[r'isWeb'] = this.isWeb; - } else { - json[r'isWeb'] = null; - } - if (this.isVR != null) { - json[r'isVR'] = this.isVR; - } else { - json[r'isVR'] = null; - } - if (this.isAssistant != null) { - json[r'isAssistant'] = this.isAssistant; - } else { - json[r'isAssistant'] = null; - } - if (this.applicationInstanceDTOs != null) { - json[r'applicationInstanceDTOs'] = this.applicationInstanceDTOs; - } else { - json[r'applicationInstanceDTOs'] = null; - } - return json; - } - - /// Returns a new [InstanceDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static InstanceDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "InstanceDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "InstanceDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return InstanceDTO( - id: mapValueOfType(json, r'id'), - name: mapValueOfType(json, r'name'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - pinCode: mapValueOfType(json, r'pinCode'), - isPushNotification: mapValueOfType(json, r'isPushNotification'), - isStatistic: mapValueOfType(json, r'isStatistic'), - isMobile: mapValueOfType(json, r'isMobile'), - isTablet: mapValueOfType(json, r'isTablet'), - isWeb: mapValueOfType(json, r'isWeb'), - isVR: mapValueOfType(json, r'isVR'), - isAssistant: mapValueOfType(json, r'isAssistant'), - applicationInstanceDTOs: ApplicationInstanceDTO.listFromJson( - json[r'applicationInstanceDTOs']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = InstanceDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = InstanceDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of InstanceDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = InstanceDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/layout_main_page_type.dart b/manager_api_new/lib/model/layout_main_page_type.dart deleted file mode 100644 index 1386215..0000000 --- a/manager_api_new/lib/model/layout_main_page_type.dart +++ /dev/null @@ -1,102 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -/// 0 = SimpleGrid 1 = MasonryGrid -class LayoutMainPageType { - /// Instantiate a new enum with the provided [value]. - const LayoutMainPageType._(this.value); - - /// The underlying value of this enum member. - final int value; - - @override - String toString() => value.toString(); - - int toJson() => value; - - static const SimpleGrid = LayoutMainPageType._(0); - static const MasonryGrid = LayoutMainPageType._(1); - - /// List of all possible values in this [enum][LayoutMainPageType]. - static const values = [ - SimpleGrid, - MasonryGrid, - ]; - - static LayoutMainPageType? fromJson(dynamic value) => - LayoutMainPageTypeTypeTransformer().decode(value); - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = LayoutMainPageType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [LayoutMainPageType] to int, -/// and [decode] dynamic data back to [LayoutMainPageType]. -class LayoutMainPageTypeTypeTransformer { - factory LayoutMainPageTypeTypeTransformer() => - _instance ??= const LayoutMainPageTypeTypeTransformer._(); - - const LayoutMainPageTypeTypeTransformer._(); - - int encode(LayoutMainPageType data) => data.value; - - /// Decodes a [dynamic value][data] to a LayoutMainPageType. - /// - /// 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. - LayoutMainPageType? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - if(data.runtimeType == String) { - switch (data.toString()) { - case r'SimpleGrid': return LayoutMainPageType.SimpleGrid; - case r'MasonryGrid': return LayoutMainPageType.MasonryGrid; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } else { - if(data.runtimeType == int) { - switch (data) { - case 0: return LayoutMainPageType.SimpleGrid; - case 1: return LayoutMainPageType.MasonryGrid; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - } - } - return null; - } - - /// Singleton [LayoutMainPageTypeTypeTransformer] instance. - static LayoutMainPageTypeTypeTransformer? _instance; -} diff --git a/manager_api_new/lib/model/level_dto.dart b/manager_api_new/lib/model/level_dto.dart deleted file mode 100644 index 3cdc4bc..0000000 --- a/manager_api_new/lib/model/level_dto.dart +++ /dev/null @@ -1,121 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class LevelDTO { - /// Returns a new [LevelDTO] instance. - LevelDTO({ - this.label = const [], - }); - - List? label; - - @override - bool operator ==(Object other) => - identical(this, other) || other is LevelDTO && other.label == label; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (label == null ? 0 : label!.hashCode); - - @override - String toString() => 'LevelDTO[label=$label]'; - - Map toJson() { - final json = {}; - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - return json; - } - - /// Returns a new [LevelDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static LevelDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "LevelDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "LevelDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return LevelDTO( - label: TranslationAndResourceDTO.listFromJson(json[r'label']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = LevelDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = LevelDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of LevelDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = LevelDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/login_dto.dart b/manager_api_new/lib/model/login_dto.dart deleted file mode 100644 index 6e0e230..0000000 --- a/manager_api_new/lib/model/login_dto.dart +++ /dev/null @@ -1,132 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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 => - // ignore: unnecessary_parenthesis - (email == null ? 0 : email!.hashCode) + - (password == null ? 0 : password!.hashCode); - - @override - String toString() => 'LoginDTO[email=$email, password=$password]'; - - Map toJson() { - final json = {}; - if (this.email != null) { - json[r'email'] = this.email; - } else { - json[r'email'] = null; - } - if (this.password != null) { - json[r'password'] = this.password; - } else { - json[r'password'] = null; - } - return json; - } - - /// Returns a new [LoginDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static LoginDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "LoginDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "LoginDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return LoginDTO( - email: mapValueOfType(json, r'email'), - password: mapValueOfType(json, r'password'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = LoginDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = LoginDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of LoginDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = LoginDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/map_annotation.dart b/manager_api_new/lib/model/map_annotation.dart deleted file mode 100644 index 27418e0..0000000 --- a/manager_api_new/lib/model/map_annotation.dart +++ /dev/null @@ -1,31 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapAnnotation { - MapAnnotation({this.id}); - String? id; - - static MapAnnotation? fromJson(dynamic value) => value is Map ? MapAnnotation() : null; - - static List listFromJson(dynamic json, {bool growable = false}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapAnnotation.fromJson(row); - if (value != null) result.add(value); - } - } - return result.toList(growable: growable); - } - - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/map_dto.dart b/manager_api_new/lib/model/map_dto.dart deleted file mode 100644 index e3671f9..0000000 --- a/manager_api_new/lib/model/map_dto.dart +++ /dev/null @@ -1,451 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTO { - /// Returns a new [MapDTO] instance. - MapDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.zoom, - this.mapType, - this.mapTypeMapbox, - this.mapProvider, - this.points = const [], - this.iconResourceId, - this.iconSource, - this.categories = const [], - this.centerLatitude, - this.centerLongitude, - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? zoom; - - MapTypeApp? mapType; - - MapTypeMapBox? mapTypeMapbox; - - MapProvider? mapProvider; - - List? points; - - String? iconResourceId; - - String? iconSource; - - List? categories; - - String? centerLatitude; - - String? centerLongitude; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is MapDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.zoom == zoom && - other.mapType == mapType && - other.mapTypeMapbox == mapTypeMapbox && - other.mapProvider == mapProvider && - _deepEquality.equals(other.points, points) && - other.iconResourceId == iconResourceId && - other.iconSource == iconSource && - _deepEquality.equals(other.categories, categories) && - other.centerLatitude == centerLatitude && - other.centerLongitude == centerLongitude; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (zoom == null ? 0 : zoom!.hashCode) + - (mapType == null ? 0 : mapType!.hashCode) + - (mapTypeMapbox == null ? 0 : mapTypeMapbox!.hashCode) + - (mapProvider == null ? 0 : mapProvider!.hashCode) + - (points == null ? 0 : points!.hashCode) + - (iconResourceId == null ? 0 : iconResourceId!.hashCode) + - (iconSource == null ? 0 : iconSource!.hashCode) + - (categories == null ? 0 : categories!.hashCode) + - (centerLatitude == null ? 0 : centerLatitude!.hashCode) + - (centerLongitude == null ? 0 : centerLongitude!.hashCode); - - @override - String toString() => - 'MapDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, zoom=$zoom, mapType=$mapType, mapTypeMapbox=$mapTypeMapbox, mapProvider=$mapProvider, points=$points, iconResourceId=$iconResourceId, iconSource=$iconSource, categories=$categories, centerLatitude=$centerLatitude, centerLongitude=$centerLongitude]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.zoom != null) { - json[r'zoom'] = this.zoom; - } else { - json[r'zoom'] = null; - } - if (this.mapType != null) { - json[r'mapType'] = this.mapType; - } else { - json[r'mapType'] = null; - } - if (this.mapTypeMapbox != null) { - json[r'mapTypeMapbox'] = this.mapTypeMapbox; - } else { - json[r'mapTypeMapbox'] = null; - } - if (this.mapProvider != null) { - json[r'mapProvider'] = this.mapProvider; - } else { - json[r'mapProvider'] = null; - } - if (this.points != null) { - json[r'points'] = this.points; - } else { - json[r'points'] = null; - } - if (this.iconResourceId != null) { - json[r'iconResourceId'] = this.iconResourceId; - } else { - json[r'iconResourceId'] = null; - } - if (this.iconSource != null) { - json[r'iconSource'] = this.iconSource; - } else { - json[r'iconSource'] = null; - } - if (this.categories != null) { - json[r'categories'] = this.categories; - } else { - json[r'categories'] = null; - } - if (this.centerLatitude != null) { - json[r'centerLatitude'] = this.centerLatitude; - } else { - json[r'centerLatitude'] = null; - } - if (this.centerLongitude != null) { - json[r'centerLongitude'] = this.centerLongitude; - } else { - json[r'centerLongitude'] = null; - } - return json; - } - - /// Returns a new [MapDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "MapDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "MapDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - zoom: mapValueOfType(json, r'zoom'), - mapType: MapTypeApp.fromJson(json[r'mapType']), - mapTypeMapbox: MapTypeMapBox.fromJson(json[r'mapTypeMapbox']), - mapProvider: MapProvider.fromJson(json[r'mapProvider']), - points: GeoPointDTO.listFromJson(json[r'points']), - iconResourceId: mapValueOfType(json, r'iconResourceId'), - iconSource: mapValueOfType(json, r'iconSource'), - categories: CategorieDTO.listFromJson(json[r'categories']), - centerLatitude: mapValueOfType(json, r'centerLatitude'), - centerLongitude: mapValueOfType(json, r'centerLongitude'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/map_dto_all_of_map_provider.dart b/manager_api_new/lib/model/map_dto_all_of_map_provider.dart deleted file mode 100644 index 27aa47a..0000000 --- a/manager_api_new/lib/model/map_dto_all_of_map_provider.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTOAllOfMapProvider { - /// Returns a new [MapDTOAllOfMapProvider] instance. - MapDTOAllOfMapProvider(); - - /*@override - bool operator ==(Object other) => identical(this, other) || other is MapDTOAllOfMapProvider && - - @override - int get hashCode =>*/ - // ignore: unnecessary_parenthesis - - @override - String toString() => 'MapDTOAllOfMapProvider[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [MapDTOAllOfMapProvider] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTOAllOfMapProvider? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "MapDTOAllOfMapProvider[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "MapDTOAllOfMapProvider[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTOAllOfMapProvider( - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTOAllOfMapProvider.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTOAllOfMapProvider.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTOAllOfMapProvider-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTOAllOfMapProvider.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/manager_api_new/lib/model/map_dto_all_of_map_type.dart b/manager_api_new/lib/model/map_dto_all_of_map_type.dart deleted file mode 100644 index 1aab427..0000000 --- a/manager_api_new/lib/model/map_dto_all_of_map_type.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTOAllOfMapType { - /// Returns a new [MapDTOAllOfMapType] instance. - MapDTOAllOfMapType(); - - /*@override - bool operator ==(Object other) => identical(this, other) || other is MapDTOAllOfMapType && - - @override - int get hashCode =>*/ - // ignore: unnecessary_parenthesis - - @override - String toString() => 'MapDTOAllOfMapType[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [MapDTOAllOfMapType] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTOAllOfMapType? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "MapDTOAllOfMapType[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "MapDTOAllOfMapType[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTOAllOfMapType( - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTOAllOfMapType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTOAllOfMapType.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTOAllOfMapType-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTOAllOfMapType.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/manager_api_new/lib/model/map_dto_all_of_map_type_mapbox.dart b/manager_api_new/lib/model/map_dto_all_of_map_type_mapbox.dart deleted file mode 100644 index e98d8e7..0000000 --- a/manager_api_new/lib/model/map_dto_all_of_map_type_mapbox.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTOAllOfMapTypeMapbox { - /// Returns a new [MapDTOAllOfMapTypeMapbox] instance. - MapDTOAllOfMapTypeMapbox(); - - /*@override - bool operator ==(Object other) => identical(this, other) || other is MapDTOAllOfMapTypeMapbox && - - @override - int get hashCode =>*/ - // ignore: unnecessary_parenthesis - - @override - String toString() => 'MapDTOAllOfMapTypeMapbox[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [MapDTOAllOfMapTypeMapbox] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTOAllOfMapTypeMapbox? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "MapDTOAllOfMapTypeMapbox[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "MapDTOAllOfMapTypeMapbox[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTOAllOfMapTypeMapbox( - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTOAllOfMapTypeMapbox.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTOAllOfMapTypeMapbox.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTOAllOfMapTypeMapbox-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTOAllOfMapTypeMapbox.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/manager_api_new/lib/model/map_dto_map_provider.dart b/manager_api_new/lib/model/map_dto_map_provider.dart deleted file mode 100644 index df0842a..0000000 --- a/manager_api_new/lib/model/map_dto_map_provider.dart +++ /dev/null @@ -1,105 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTOMapProvider { - /// Returns a new [MapDTOMapProvider] instance. - MapDTOMapProvider(); - - @override - bool operator ==(Object other) => - identical(this, other) || other is MapDTOMapProvider; - - @override - String toString() => 'MapDTOMapProvider[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [MapDTOMapProvider] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTOMapProvider? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "MapDTOMapProvider[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "MapDTOMapProvider[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTOMapProvider(); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTOMapProvider.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTOMapProvider.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTOMapProvider-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTOMapProvider.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/map_dto_map_type.dart b/manager_api_new/lib/model/map_dto_map_type.dart deleted file mode 100644 index 97f1df5..0000000 --- a/manager_api_new/lib/model/map_dto_map_type.dart +++ /dev/null @@ -1,105 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTOMapType { - /// Returns a new [MapDTOMapType] instance. - MapDTOMapType(); - - @override - bool operator ==(Object other) => - identical(this, other) || other is MapDTOMapType; - - @override - String toString() => 'MapDTOMapType[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [MapDTOMapType] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTOMapType? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "MapDTOMapType[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "MapDTOMapType[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTOMapType(); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTOMapType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTOMapType.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTOMapType-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTOMapType.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/map_dto_map_type_mapbox.dart b/manager_api_new/lib/model/map_dto_map_type_mapbox.dart deleted file mode 100644 index 32bf26d..0000000 --- a/manager_api_new/lib/model/map_dto_map_type_mapbox.dart +++ /dev/null @@ -1,105 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTOMapTypeMapbox { - /// Returns a new [MapDTOMapTypeMapbox] instance. - MapDTOMapTypeMapbox(); - - @override - bool operator ==(Object other) => - identical(this, other) || other is MapDTOMapTypeMapbox; - - @override - String toString() => 'MapDTOMapTypeMapbox[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [MapDTOMapTypeMapbox] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTOMapTypeMapbox? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "MapDTOMapTypeMapbox[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "MapDTOMapTypeMapbox[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTOMapTypeMapbox(); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTOMapTypeMapbox.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTOMapTypeMapbox.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTOMapTypeMapbox-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTOMapTypeMapbox.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/map_provider.dart b/manager_api_new/lib/model/map_provider.dart deleted file mode 100644 index d6de9a6..0000000 --- a/manager_api_new/lib/model/map_provider.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -/// 0 = Google 1 = MapBox -class MapProvider { - /// Instantiate a new enum with the provided [value]. - const MapProvider._(this.value); - - /// The underlying value of this enum member. - final int value; - - @override - String toString() => value.toString(); - - int toJson() => value; - - static const Google = MapProvider._(0); - static const MapBox = MapProvider._(1); - - /// List of all possible values in this [enum][MapProvider]. - static const values = [ - Google, - MapBox, - ]; - - static MapProvider? fromJson(dynamic value) => MapProviderTypeTransformer().decode(value); - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapProvider.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [MapProvider] to int, -/// and [decode] dynamic data back to [MapProvider]. -class MapProviderTypeTransformer { - factory MapProviderTypeTransformer() => _instance ??= const MapProviderTypeTransformer._(); - - const MapProviderTypeTransformer._(); - - int encode(MapProvider data) => data.value; - - /// Decodes a [dynamic value][data] to a MapProvider. - /// - /// 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. - MapProvider? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - if(data.runtimeType == String) { - switch (data.toString().toLowerCase()) { - case r'google': return MapProvider.Google; - case r'mapbox': return MapProvider.MapBox; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } else { - if(data.runtimeType == int) { - switch (data) { - case 0: return MapProvider.Google; - case 1: return MapProvider.MapBox; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - } - } - return null; - } - - /// Singleton [MapProviderTypeTransformer] instance. - static MapProviderTypeTransformer? _instance; -} - diff --git a/manager_api_new/lib/model/map_type_app.dart b/manager_api_new/lib/model/map_type_app.dart deleted file mode 100644 index dd78f67..0000000 --- a/manager_api_new/lib/model/map_type_app.dart +++ /dev/null @@ -1,103 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -/// 0 = none 1 = normal 2 = satellite 3 = terrain 4 = hybrid -class MapTypeApp { - /// Instantiate a new enum with the provided [value]. - const MapTypeApp._(this.value); - - /// The underlying value of this enum member. - final int value; - - @override - String toString() => value.toString(); - - int toJson() => value; - - static const number0 = MapTypeApp._(0); - static const number1 = MapTypeApp._(1); - static const number2 = MapTypeApp._(2); - static const number3 = MapTypeApp._(3); - static const number4 = MapTypeApp._(4); - - /// List of all possible values in this [enum][MapTypeApp]. - static const values = [ - number0, - number1, - number2, - number3, - number4, - ]; - - static MapTypeApp? fromJson(dynamic value) => - MapTypeAppTypeTransformer().decode(value); - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapTypeApp.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [MapTypeApp] to int, -/// and [decode] dynamic data back to [MapTypeApp]. -class MapTypeAppTypeTransformer { - factory MapTypeAppTypeTransformer() => - _instance ??= const MapTypeAppTypeTransformer._(); - - const MapTypeAppTypeTransformer._(); - - int 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 = true}) { - if (data != null) { - switch (data) { - case 0: - return MapTypeApp.number0; - case 1: - return MapTypeApp.number1; - case 2: - return MapTypeApp.number2; - case 3: - return MapTypeApp.number3; - case 4: - return MapTypeApp.number4; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [MapTypeAppTypeTransformer] instance. - static MapTypeAppTypeTransformer? _instance; -} diff --git a/manager_api_new/lib/model/map_type_map_box.dart b/manager_api_new/lib/model/map_type_map_box.dart deleted file mode 100644 index 3f64cd0..0000000 --- a/manager_api_new/lib/model/map_type_map_box.dart +++ /dev/null @@ -1,118 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -/// 0 = standard 1 = streets 2 = outdoors 3 = light 4 = dark 5 = satellite 6 = satellite_streets -class MapTypeMapBox { - /// Instantiate a new enum with the provided [value]. - const MapTypeMapBox._(this.value); - - /// The underlying value of this enum member. - final int value; - - @override - String toString() => value.toString(); - - int toJson() => value; - - static const standard = MapTypeMapBox._(0); - static const streets = MapTypeMapBox._(1); - static const outdoors = MapTypeMapBox._(2); - static const light = MapTypeMapBox._(3); - static const dark = MapTypeMapBox._(4); - static const satellite = MapTypeMapBox._(5); - static const satellite_streets = MapTypeMapBox._(6); - - /// List of all possible values in this [enum][MapTypeMapBox]. - static const values = [ - standard, - streets, - outdoors, - light, - dark, - satellite, - satellite_streets, - ]; - - static MapTypeMapBox? fromJson(dynamic value) => MapTypeMapBoxTypeTransformer().decode(value); - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapTypeMapBox.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [MapTypeMapBox] to int, -/// and [decode] dynamic data back to [MapTypeMapBox]. -class MapTypeMapBoxTypeTransformer { - factory MapTypeMapBoxTypeTransformer() => _instance ??= const MapTypeMapBoxTypeTransformer._(); - - const MapTypeMapBoxTypeTransformer._(); - - int encode(MapTypeMapBox data) => data.value; - - /// Decodes a [dynamic value][data] to a MapTypeMapBox. - /// - /// 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. - MapTypeMapBox? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - if(data.runtimeType == String) { - switch (data.toString().toLowerCase()) { - case r'standard': return MapTypeMapBox.standard; - case r'streets': return MapTypeMapBox.streets; - case r'outdoors': return MapTypeMapBox.outdoors; - case r'light': return MapTypeMapBox.light; - case r'dark': return MapTypeMapBox.dark; - case r'satellite': return MapTypeMapBox.satellite; - case r'satellite_streets': return MapTypeMapBox.satellite_streets; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } else { - if(data.runtimeType == int) { - switch (data) { - case 0: return MapTypeMapBox.standard; - case 1: return MapTypeMapBox.streets; - case 2: return MapTypeMapBox.outdoors; - case 3: return MapTypeMapBox.light; - case 4: return MapTypeMapBox.dark; - case 5: return MapTypeMapBox.satellite; - case 6: return MapTypeMapBox.satellite_streets; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - } - - } - return null; - } - - /// Singleton [MapTypeMapBoxTypeTransformer] instance. - static MapTypeMapBoxTypeTransformer? _instance; -} \ No newline at end of file diff --git a/manager_api_new/lib/model/menu_dto.dart b/manager_api_new/lib/model/menu_dto.dart deleted file mode 100644 index 298fba9..0000000 --- a/manager_api_new/lib/model/menu_dto.dart +++ /dev/null @@ -1,346 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MenuDTO { - /// Returns a new [MenuDTO] instance. - MenuDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.sections = const [], - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - dynamic? sections; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is MenuDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - _deepEquality.equals(other.sections, sections); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (sections == null ? 0 : sections!.hashCode); - - @override - String toString() => - 'MenuDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, sections=$sections]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.sections != null) { - json[r'sections'] = this.sections; - } else { - json[r'sections'] = null; - } - return json; - } - - /// Returns a new [MenuDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MenuDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "MenuDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "MenuDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MenuDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - sections: json[r'sections'], - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MenuDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MenuDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MenuDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MenuDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/ordered_translation_and_resource_dto.dart b/manager_api_new/lib/model/ordered_translation_and_resource_dto.dart deleted file mode 100644 index 1d72d6e..0000000 --- a/manager_api_new/lib/model/ordered_translation_and_resource_dto.dart +++ /dev/null @@ -1,146 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class OrderedTranslationAndResourceDTO { - /// Returns a new [OrderedTranslationAndResourceDTO] instance. - OrderedTranslationAndResourceDTO({ - this.translationAndResourceDTOs = const [], - this.order, - }); - - List? translationAndResourceDTOs; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is OrderedTranslationAndResourceDTO && - _deepEquality.equals( - other.translationAndResourceDTOs, translationAndResourceDTOs) && - other.order == order; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (translationAndResourceDTOs == null - ? 0 - : translationAndResourceDTOs!.hashCode) + - (order == null ? 0 : order!.hashCode); - - @override - String toString() => - 'OrderedTranslationAndResourceDTO[translationAndResourceDTOs=$translationAndResourceDTOs, order=$order]'; - - Map toJson() { - final json = {}; - if (this.translationAndResourceDTOs != null) { - json[r'translationAndResourceDTOs'] = this.translationAndResourceDTOs; - } else { - json[r'translationAndResourceDTOs'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - return json; - } - - /// Returns a new [OrderedTranslationAndResourceDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static OrderedTranslationAndResourceDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "OrderedTranslationAndResourceDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "OrderedTranslationAndResourceDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return OrderedTranslationAndResourceDTO( - translationAndResourceDTOs: TranslationAndResourceDTO.listFromJson( - json[r'translationAndResourceDTOs']), - order: mapValueOfType(json, r'order'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = OrderedTranslationAndResourceDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson( - dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = OrderedTranslationAndResourceDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of OrderedTranslationAndResourceDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = OrderedTranslationAndResourceDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/pdf_dto.dart b/manager_api_new/lib/model/pdf_dto.dart deleted file mode 100644 index 9782365..0000000 --- a/manager_api_new/lib/model/pdf_dto.dart +++ /dev/null @@ -1,346 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PdfDTO { - /// Returns a new [PdfDTO] instance. - PdfDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.pdfs = const [], - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - List? pdfs; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is PdfDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - _deepEquality.equals(other.pdfs, pdfs); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (pdfs == null ? 0 : pdfs!.hashCode); - - @override - String toString() => - 'PdfDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, pdfs=$pdfs]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.pdfs != null) { - json[r'pdfs'] = this.pdfs; - } else { - json[r'pdfs'] = null; - } - return json; - } - - /// Returns a new [PdfDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PdfDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "PdfDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "PdfDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return PdfDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - pdfs: OrderedTranslationAndResourceDTO.listFromJson(json[r'pdfs']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PdfDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PdfDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PdfDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PdfDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/pdf_file_dto.dart b/manager_api_new/lib/model/pdf_file_dto.dart deleted file mode 100644 index dc4cfa3..0000000 --- a/manager_api_new/lib/model/pdf_file_dto.dart +++ /dev/null @@ -1,136 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PDFFileDTO { - /// Returns a new [PDFFileDTO] instance. - PDFFileDTO({ - this.pdfFilesAndTitles = const [], - this.order, - }); - - List? pdfFilesAndTitles; - - int? order; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is PDFFileDTO && - other.pdfFilesAndTitles == pdfFilesAndTitles && - other.order == order; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (pdfFilesAndTitles == null ? 0 : pdfFilesAndTitles!.hashCode) + - (order == null ? 0 : order!.hashCode); - - @override - String toString() => - 'PDFFileDTO[pdfFilesAndTitles=$pdfFilesAndTitles, order=$order]'; - - Map toJson() { - final json = {}; - if (this.pdfFilesAndTitles != null) { - json[r'pdfFilesAndTitles'] = this.pdfFilesAndTitles; - } else { - json[r'pdfFilesAndTitles'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - return json; - } - - /// Returns a new [PDFFileDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PDFFileDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "PDFFileDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "PDFFileDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return PDFFileDTO( - pdfFilesAndTitles: - TranslationAndResourceDTO.listFromJson(json[r'pdfFilesAndTitles']), - order: mapValueOfType(json, r'order'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PDFFileDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PDFFileDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PDFFileDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PDFFileDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/player_message_dto.dart b/manager_api_new/lib/model/player_message_dto.dart deleted file mode 100644 index a3fde1b..0000000 --- a/manager_api_new/lib/model/player_message_dto.dart +++ /dev/null @@ -1,147 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PlayerMessageDTO { - /// Returns a new [PlayerMessageDTO] instance. - PlayerMessageDTO({ - this.configChanged, - this.isDeleted, - }); - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? configChanged; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isDeleted; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is PlayerMessageDTO && - other.configChanged == configChanged && - other.isDeleted == isDeleted; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (configChanged == null ? 0 : configChanged!.hashCode) + - (isDeleted == null ? 0 : isDeleted!.hashCode); - - @override - String toString() => - 'PlayerMessageDTO[configChanged=$configChanged, isDeleted=$isDeleted]'; - - Map toJson() { - final json = {}; - if (this.configChanged != null) { - json[r'configChanged'] = this.configChanged; - } else { - json[r'configChanged'] = null; - } - if (this.isDeleted != null) { - json[r'isDeleted'] = this.isDeleted; - } else { - json[r'isDeleted'] = null; - } - return json; - } - - /// Returns a new [PlayerMessageDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PlayerMessageDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "PlayerMessageDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "PlayerMessageDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return PlayerMessageDTO( - configChanged: mapValueOfType(json, r'configChanged'), - isDeleted: mapValueOfType(json, r'isDeleted'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PlayerMessageDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PlayerMessageDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PlayerMessageDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PlayerMessageDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/programme_block.dart b/manager_api_new/lib/model/programme_block.dart deleted file mode 100644 index 671add8..0000000 --- a/manager_api_new/lib/model/programme_block.dart +++ /dev/null @@ -1,31 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ProgrammeBlock { - ProgrammeBlock({this.id}); - String? id; - - static ProgrammeBlock? fromJson(dynamic value) => value is Map ? ProgrammeBlock() : null; - - static List listFromJson(dynamic json, {bool growable = false}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ProgrammeBlock.fromJson(row); - if (value != null) result.add(value); - } - } - return result.toList(growable: growable); - } - - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/puzzle_dto.dart b/manager_api_new/lib/model/puzzle_dto.dart deleted file mode 100644 index de71bc4..0000000 --- a/manager_api_new/lib/model/puzzle_dto.dart +++ /dev/null @@ -1,414 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PuzzleDTO { - /// Returns a new [PuzzleDTO] instance. - PuzzleDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.messageDebut = const [], - this.messageFin = const [], - this.puzzleImage, - this.puzzleImageId, - this.rows, - this.cols, - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - List? messageDebut; - - List? messageFin; - - ResourceDTO? puzzleImage; - - String? puzzleImageId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? rows; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? cols; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is PuzzleDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - _deepEquality.equals(other.messageDebut, messageDebut) && - _deepEquality.equals(other.messageFin, messageFin) && - other.puzzleImage == puzzleImage && - other.puzzleImageId == puzzleImageId && - other.rows == rows && - other.cols == cols; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (messageDebut == null ? 0 : messageDebut!.hashCode) + - (messageFin == null ? 0 : messageFin!.hashCode) + - (puzzleImage == null ? 0 : puzzleImage!.hashCode) + - (puzzleImageId == null ? 0 : puzzleImageId!.hashCode) + - (rows == null ? 0 : rows!.hashCode) + - (cols == null ? 0 : cols!.hashCode); - - @override - String toString() => - 'PuzzleDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, messageDebut=$messageDebut, messageFin=$messageFin, puzzleImage=$puzzleImage, puzzleImageId=$puzzleImageId, rows=$rows, cols=$cols]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.messageDebut != null) { - json[r'messageDebut'] = this.messageDebut; - } else { - json[r'messageDebut'] = null; - } - if (this.messageFin != null) { - json[r'messageFin'] = this.messageFin; - } else { - json[r'messageFin'] = null; - } - if (this.puzzleImage != null) { - json[r'puzzleImage'] = this.puzzleImage; - } else { - json[r'puzzleImage'] = null; - } - if (this.puzzleImageId != null) { - json[r'puzzleImageId'] = this.puzzleImageId; - } else { - json[r'puzzleImageId'] = null; - } - if (this.rows != null) { - json[r'rows'] = this.rows; - } else { - json[r'rows'] = null; - } - if (this.cols != null) { - json[r'cols'] = this.cols; - } else { - json[r'cols'] = null; - } - return json; - } - - /// Returns a new [PuzzleDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PuzzleDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "PuzzleDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "PuzzleDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return PuzzleDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - messageDebut: - TranslationAndResourceDTO.listFromJson(json[r'messageDebut']), - messageFin: TranslationAndResourceDTO.listFromJson(json[r'messageFin']), - puzzleImage: ResourceDTO.fromJson(json[r'puzzleImage']), - puzzleImageId: mapValueOfType(json, r'puzzleImageId'), - rows: mapValueOfType(json, r'rows'), - cols: mapValueOfType(json, r'cols'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PuzzleDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PuzzleDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PuzzleDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PuzzleDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/puzzle_dto_all_of_puzzle_image.dart b/manager_api_new/lib/model/puzzle_dto_all_of_puzzle_image.dart deleted file mode 100644 index adfdb2d..0000000 --- a/manager_api_new/lib/model/puzzle_dto_all_of_puzzle_image.dart +++ /dev/null @@ -1,191 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PuzzleDTOAllOfPuzzleImage { - /// Returns a new [PuzzleDTOAllOfPuzzleImage] instance. - PuzzleDTOAllOfPuzzleImage({ - this.id, - this.type, - this.label, - this.url, - this.dateCreation, - this.instanceId, - }); - - String? id; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - ResourceType? type; - - String? label; - - String? url; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - String? instanceId; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is PuzzleDTOAllOfPuzzleImage && - other.id == id && - other.type == type && - other.label == label && - other.url == url && - other.dateCreation == dateCreation && - other.instanceId == instanceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode); - - @override - String toString() => - 'PuzzleDTOAllOfPuzzleImage[id=$id, type=$type, label=$label, url=$url, dateCreation=$dateCreation, instanceId=$instanceId]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.url != null) { - json[r'url'] = this.url; - } else { - json[r'url'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - return json; - } - - /// Returns a new [PuzzleDTOAllOfPuzzleImage] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PuzzleDTOAllOfPuzzleImage? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "PuzzleDTOAllOfPuzzleImage[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "PuzzleDTOAllOfPuzzleImage[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return PuzzleDTOAllOfPuzzleImage( - id: mapValueOfType(json, r'id'), - type: ResourceType.fromJson(json[r'type']), - label: mapValueOfType(json, r'label'), - url: mapValueOfType(json, r'url'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - instanceId: mapValueOfType(json, r'instanceId'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PuzzleDTOAllOfPuzzleImage.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PuzzleDTOAllOfPuzzleImage.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PuzzleDTOAllOfPuzzleImage-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PuzzleDTOAllOfPuzzleImage.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/puzzle_dto_image.dart b/manager_api_new/lib/model/puzzle_dto_image.dart deleted file mode 100644 index d47344f..0000000 --- a/manager_api_new/lib/model/puzzle_dto_image.dart +++ /dev/null @@ -1,191 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PuzzleDTOImage { - /// Returns a new [PuzzleDTOImage] instance. - PuzzleDTOImage({ - this.title = const [], - this.description = const [], - this.resourceId, - this.resourceUrl, - this.order, - this.resourceType, - }); - - List? title; - - List? description; - - String? resourceId; - - String? resourceUrl; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - ResourceType? resourceType; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is PuzzleDTOImage && - other.title == title && - other.description == description && - other.resourceId == resourceId && - other.resourceUrl == resourceUrl && - other.order == order && - other.resourceType == resourceType; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (title == null ? 0 : title!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (resourceId == null ? 0 : resourceId!.hashCode) + - (resourceUrl == null ? 0 : resourceUrl!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (resourceType == null ? 0 : resourceType!.hashCode); - - @override - String toString() => - 'PuzzleDTOImage[title=$title, description=$description, resourceId=$resourceId, resourceUrl=$resourceUrl, order=$order, resourceType=$resourceType]'; - - Map toJson() { - final json = {}; - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.resourceId != null) { - json[r'resourceId'] = this.resourceId; - } else { - json[r'resourceId'] = null; - } - if (this.resourceUrl != null) { - json[r'resourceUrl'] = this.resourceUrl; - } else { - json[r'resourceUrl'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.resourceType != null) { - json[r'resourceType'] = this.resourceType; - } else { - json[r'resourceType'] = null; - } - return json; - } - - /// Returns a new [PuzzleDTOImage] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PuzzleDTOImage? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "PuzzleDTOImage[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "PuzzleDTOImage[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return PuzzleDTOImage( - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - resourceId: mapValueOfType(json, r'resourceId'), - resourceUrl: mapValueOfType(json, r'resourceUrl'), - order: mapValueOfType(json, r'order'), - resourceType: ResourceType.fromJson(json[r'resourceType']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PuzzleDTOImage.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PuzzleDTOImage.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PuzzleDTOImage-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PuzzleDTOImage.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/question_dto.dart b/manager_api_new/lib/model/question_dto.dart deleted file mode 100644 index 686d4f4..0000000 --- a/manager_api_new/lib/model/question_dto.dart +++ /dev/null @@ -1,208 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuestionDTO { - /// Returns a new [QuestionDTO] instance. - QuestionDTO({ - this.id, - this.label = const [], - this.responses = const [], - this.imageBackgroundResourceId, - this.imageBackgroundResourceType, - this.imageBackgroundResourceUrl, - this.order, - }); - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? id; - - List? label; - - List? responses; - - String? imageBackgroundResourceId; - - ResourceType? imageBackgroundResourceType; - - String? imageBackgroundResourceUrl; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is QuestionDTO && - other.id == id && - _deepEquality.equals(other.label, label) && - _deepEquality.equals(other.responses, responses) && - other.imageBackgroundResourceId == imageBackgroundResourceId && - other.imageBackgroundResourceType == imageBackgroundResourceType && - other.imageBackgroundResourceUrl == imageBackgroundResourceUrl && - other.order == order; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (responses == null ? 0 : responses!.hashCode) + - (imageBackgroundResourceId == null - ? 0 - : imageBackgroundResourceId!.hashCode) + - (imageBackgroundResourceType == null - ? 0 - : imageBackgroundResourceType!.hashCode) + - (imageBackgroundResourceUrl == null - ? 0 - : imageBackgroundResourceUrl!.hashCode) + - (order == null ? 0 : order!.hashCode); - - @override - String toString() => - 'QuestionDTO[id=$id, label=$label, responses=$responses, imageBackgroundResourceId=$imageBackgroundResourceId, imageBackgroundResourceType=$imageBackgroundResourceType, imageBackgroundResourceUrl=$imageBackgroundResourceUrl, order=$order]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.responses != null) { - json[r'responses'] = this.responses; - } else { - json[r'responses'] = null; - } - if (this.imageBackgroundResourceId != null) { - json[r'imageBackgroundResourceId'] = this.imageBackgroundResourceId; - } else { - json[r'imageBackgroundResourceId'] = null; - } - if (this.imageBackgroundResourceType != null) { - json[r'imageBackgroundResourceType'] = this.imageBackgroundResourceType; - } else { - json[r'imageBackgroundResourceType'] = null; - } - if (this.imageBackgroundResourceUrl != null) { - json[r'imageBackgroundResourceUrl'] = this.imageBackgroundResourceUrl; - } else { - json[r'imageBackgroundResourceUrl'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - return json; - } - - /// Returns a new [QuestionDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QuestionDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "QuestionDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "QuestionDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return QuestionDTO( - id: mapValueOfType(json, r'id'), - label: TranslationAndResourceDTO.listFromJson(json[r'label']), - responses: ResponseDTO.listFromJson(json[r'responses']), - imageBackgroundResourceId: mapValueOfType(json, r'imageBackgroundResourceId'), - imageBackgroundResourceType: ResourceType.fromJson(json[r'imageBackgroundResourceType']), - imageBackgroundResourceUrl: mapValueOfType(json, r'imageBackgroundResourceUrl'), - order: mapValueOfType(json, r'order'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QuestionDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QuestionDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QuestionDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QuestionDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/question_dto_image_background_resource_type.dart b/manager_api_new/lib/model/question_dto_image_background_resource_type.dart deleted file mode 100644 index fae2816..0000000 --- a/manager_api_new/lib/model/question_dto_image_background_resource_type.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuestionDTOImageBackgroundResourceType { - /// Returns a new [QuestionDTOImageBackgroundResourceType] instance. - QuestionDTOImageBackgroundResourceType(); - - /* @override - bool operator ==(Object other) => identical(this, other) || other is QuestionDTOImageBackgroundResourceType && - - @override - int get hashCode =>*/ - // ignore: unnecessary_parenthesis - - @override - String toString() => 'QuestionDTOImageBackgroundResourceType[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [QuestionDTOImageBackgroundResourceType] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QuestionDTOImageBackgroundResourceType? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "QuestionDTOImageBackgroundResourceType[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "QuestionDTOImageBackgroundResourceType[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return QuestionDTOImageBackgroundResourceType( - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QuestionDTOImageBackgroundResourceType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QuestionDTOImageBackgroundResourceType.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QuestionDTOImageBackgroundResourceType-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QuestionDTOImageBackgroundResourceType.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/manager_api_new/lib/model/quiz_dto.dart b/manager_api_new/lib/model/quiz_dto.dart deleted file mode 100644 index 62ba692..0000000 --- a/manager_api_new/lib/model/quiz_dto.dart +++ /dev/null @@ -1,392 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuizDTO { - /// Returns a new [QuizDTO] instance. - QuizDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.questions = const [], - this.badLevel = const [], - this.mediumLevel = const [], - this.goodLevel = const [], - this.greatLevel = const [], - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - List? questions; - - List? badLevel; - - List? mediumLevel; - - List? goodLevel; - - List? greatLevel; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is QuizDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - _deepEquality.equals(other.questions, questions) && - _deepEquality.equals(other.badLevel, badLevel) && - _deepEquality.equals(other.mediumLevel, mediumLevel) && - _deepEquality.equals(other.goodLevel, goodLevel) && - _deepEquality.equals(other.greatLevel, greatLevel); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.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() => - 'QuizDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, questions=$questions, badLevel=$badLevel, mediumLevel=$mediumLevel, goodLevel=$goodLevel, greatLevel=$greatLevel]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.questions != null) { - json[r'questions'] = this.questions; - } else { - json[r'questions'] = null; - } - if (this.badLevel != null) { - json[r'bad_level'] = this.badLevel; - } else { - json[r'bad_level'] = null; - } - if (this.mediumLevel != null) { - json[r'medium_level'] = this.mediumLevel; - } else { - json[r'medium_level'] = null; - } - if (this.goodLevel != null) { - json[r'good_level'] = this.goodLevel; - } else { - json[r'good_level'] = null; - } - if (this.greatLevel != null) { - json[r'great_level'] = this.greatLevel; - } else { - json[r'great_level'] = null; - } - return json; - } - - /// Returns a new [QuizDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QuizDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "QuizDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "QuizDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return QuizDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - questions: QuestionDTO.listFromJson(json[r'questions']), - badLevel: TranslationAndResourceDTO.listFromJson(json[r'bad_level']), - mediumLevel: - TranslationAndResourceDTO.listFromJson(json[r'medium_level']), - goodLevel: TranslationAndResourceDTO.listFromJson(json[r'good_level']), - greatLevel: - TranslationAndResourceDTO.listFromJson(json[r'great_level']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QuizDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QuizDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QuizDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QuizDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/quiz_question.dart b/manager_api_new/lib/model/quiz_question.dart deleted file mode 100644 index 5a34217..0000000 --- a/manager_api_new/lib/model/quiz_question.dart +++ /dev/null @@ -1,199 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuizQuestion { - /// Returns a new [QuizQuestion] instance. - QuizQuestion({ - required this.id, - this.label = const [], - this.responses = const [], - this.resourceId, - this.resource, - this.order, - this.sectionQuizId, - this.sectionQuiz, - }); - - int id; - - List label; - - List responses; - - String? resourceId; - - Resource? resource; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - String? sectionQuizId; - - QuizQuestionSectionQuiz? sectionQuiz; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is QuizQuestion && - other.id == id && - _deepEquality.equals(other.label, label) && - _deepEquality.equals(other.responses, responses) && - other.resourceId == resourceId && - other.resource == resource && - other.order == order && - other.sectionQuizId == sectionQuizId && - other.sectionQuiz == sectionQuiz; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (label.hashCode) + - (responses.hashCode) + - (resourceId == null ? 0 : resourceId!.hashCode) + - (resource == null ? 0 : resource!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (sectionQuizId == null ? 0 : sectionQuizId!.hashCode) + - (sectionQuiz == null ? 0 : sectionQuiz!.hashCode); - - @override - String toString() => - 'QuizQuestion[id=$id, label=$label, responses=$responses, resourceId=$resourceId, resource=$resource, order=$order, sectionQuizId=$sectionQuizId, sectionQuiz=$sectionQuiz]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'label'] = this.label; - json[r'responses'] = this.responses; - if (this.resourceId != null) { - json[r'resourceId'] = this.resourceId; - } else { - json[r'resourceId'] = null; - } - if (this.resource != null) { - json[r'resource'] = this.resource; - } else { - json[r'resource'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.sectionQuizId != null) { - json[r'sectionQuizId'] = this.sectionQuizId; - } else { - json[r'sectionQuizId'] = null; - } - if (this.sectionQuiz != null) { - json[r'sectionQuiz'] = this.sectionQuiz; - } else { - json[r'sectionQuiz'] = null; - } - return json; - } - - /// Returns a new [QuizQuestion] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QuizQuestion? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "QuizQuestion[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "QuizQuestion[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return QuizQuestion( - id: mapValueOfType(json, r'id')!, - label: TranslationAndResourceDTO.listFromJson(json[r'label']), - responses: ResponseDTO.listFromJson(json[r'responses']), - resourceId: mapValueOfType(json, r'resourceId'), - resource: Resource.fromJson(json[r'resource']), - order: mapValueOfType(json, r'order'), - sectionQuizId: mapValueOfType(json, r'sectionQuizId'), - sectionQuiz: QuizQuestionSectionQuiz.fromJson(json[r'sectionQuiz']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QuizQuestion.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QuizQuestion.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QuizQuestion-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QuizQuestion.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'label', - 'responses', - }; -} diff --git a/manager_api_new/lib/model/quiz_question_resource.dart b/manager_api_new/lib/model/quiz_question_resource.dart deleted file mode 100644 index 84171ba..0000000 --- a/manager_api_new/lib/model/quiz_question_resource.dart +++ /dev/null @@ -1,174 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuizQuestionResource { - /// Returns a new [QuizQuestionResource] instance. - QuizQuestionResource({ - required this.id, - required this.type, - required this.label, - required this.instanceId, - this.dateCreation, - this.url, - }); - - String id; - - ResourceType type; - - String label; - - String instanceId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - String? url; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is QuizQuestionResource && - other.id == id && - other.type == type && - other.label == label && - other.instanceId == instanceId && - other.dateCreation == dateCreation && - other.url == url; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (type.hashCode) + - (label.hashCode) + - (instanceId.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (url == null ? 0 : url!.hashCode); - - @override - String toString() => - 'QuizQuestionResource[id=$id, type=$type, label=$label, instanceId=$instanceId, dateCreation=$dateCreation, url=$url]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'type'] = this.type; - json[r'label'] = this.label; - json[r'instanceId'] = this.instanceId; - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.url != null) { - json[r'url'] = this.url; - } else { - json[r'url'] = null; - } - return json; - } - - /// Returns a new [QuizQuestionResource] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QuizQuestionResource? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "QuizQuestionResource[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "QuizQuestionResource[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return QuizQuestionResource( - id: mapValueOfType(json, r'id')!, - type: ResourceType.fromJson(json[r'type'])!, - label: mapValueOfType(json, r'label')!, - instanceId: mapValueOfType(json, r'instanceId')!, - dateCreation: mapDateTime(json, r'dateCreation', r''), - url: mapValueOfType(json, r'url'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QuizQuestionResource.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QuizQuestionResource.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QuizQuestionResource-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QuizQuestionResource.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'type', - 'label', - 'instanceId', - }; -} diff --git a/manager_api_new/lib/model/quiz_question_section_quiz.dart b/manager_api_new/lib/model/quiz_question_section_quiz.dart deleted file mode 100644 index 44c9be4..0000000 --- a/manager_api_new/lib/model/quiz_question_section_quiz.dart +++ /dev/null @@ -1,353 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuizQuestionSectionQuiz { - /// Returns a new [QuizQuestionSectionQuiz] instance. - QuizQuestionSectionQuiz({ - required this.id, - required this.label, - this.title = const [], - required this.configurationId, - required this.type, - required this.isSubSection, - required this.instanceId, - this.quizQuestions = const [], - this.quizBadLevel = const [], - this.quizMediumLevel = const [], - this.quizGoodLevel = const [], - this.quizGreatLevel = const [], - this.description = const [], - this.order, - this.imageId, - this.imageSource, - this.parentId, - this.dateCreation, - this.isBeacon, - this.beaconId, - this.latitude, - this.longitude, - this.meterZoneGPS, - }); - - String id; - - String label; - - List title; - - String configurationId; - - SectionType type; - - bool isSubSection; - - String instanceId; - - List quizQuestions; - - List quizBadLevel; - - List quizMediumLevel; - - List quizGoodLevel; - - List quizGreatLevel; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - String? imageId; - - String? imageSource; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is QuizQuestionSectionQuiz && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - other.configurationId == configurationId && - other.type == type && - other.isSubSection == isSubSection && - other.instanceId == instanceId && - _deepEquality.equals(other.quizQuestions, quizQuestions) && - _deepEquality.equals(other.quizBadLevel, quizBadLevel) && - _deepEquality.equals(other.quizMediumLevel, quizMediumLevel) && - _deepEquality.equals(other.quizGoodLevel, quizGoodLevel) && - _deepEquality.equals(other.quizGreatLevel, quizGreatLevel) && - _deepEquality.equals(other.description, description) && - other.order == order && - other.imageId == imageId && - other.imageSource == imageSource && - other.parentId == parentId && - other.dateCreation == dateCreation && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (label.hashCode) + - (title.hashCode) + - (configurationId.hashCode) + - (type.hashCode) + - (isSubSection.hashCode) + - (instanceId.hashCode) + - (quizQuestions.hashCode) + - (quizBadLevel.hashCode) + - (quizMediumLevel.hashCode) + - (quizGoodLevel.hashCode) + - (quizGreatLevel.hashCode) + - (description == null ? 0 : description!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (imageId == null ? 0 : imageId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode); - - @override - String toString() => - 'QuizQuestionSectionQuiz[id=$id, label=$label, title=$title, configurationId=$configurationId, type=$type, isSubSection=$isSubSection, instanceId=$instanceId, quizQuestions=$quizQuestions, quizBadLevel=$quizBadLevel, quizMediumLevel=$quizMediumLevel, quizGoodLevel=$quizGoodLevel, quizGreatLevel=$quizGreatLevel, description=$description, order=$order, imageId=$imageId, imageSource=$imageSource, parentId=$parentId, dateCreation=$dateCreation, isBeacon=$isBeacon, beaconId=$beaconId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'label'] = this.label; - json[r'title'] = this.title; - json[r'configurationId'] = this.configurationId; - json[r'type'] = this.type; - json[r'isSubSection'] = this.isSubSection; - json[r'instanceId'] = this.instanceId; - json[r'quizQuestions'] = this.quizQuestions; - json[r'quizBadLevel'] = this.quizBadLevel; - json[r'quizMediumLevel'] = this.quizMediumLevel; - json[r'quizGoodLevel'] = this.quizGoodLevel; - json[r'quizGreatLevel'] = this.quizGreatLevel; - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - return json; - } - - /// Returns a new [QuizQuestionSectionQuiz] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QuizQuestionSectionQuiz? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "QuizQuestionSectionQuiz[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "QuizQuestionSectionQuiz[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return QuizQuestionSectionQuiz( - id: mapValueOfType(json, r'id')!, - label: mapValueOfType(json, r'label')!, - title: TranslationDTO.listFromJson(json[r'title']), - configurationId: mapValueOfType(json, r'configurationId')!, - type: SectionType.fromJson(json[r'type'])!, - isSubSection: mapValueOfType(json, r'isSubSection')!, - instanceId: mapValueOfType(json, r'instanceId')!, - quizQuestions: QuizQuestion.listFromJson(json[r'quizQuestions']), - quizBadLevel: - TranslationAndResourceDTO.listFromJson(json[r'quizBadLevel']), - quizMediumLevel: - TranslationAndResourceDTO.listFromJson(json[r'quizMediumLevel']), - quizGoodLevel: - TranslationAndResourceDTO.listFromJson(json[r'quizGoodLevel']), - quizGreatLevel: - TranslationAndResourceDTO.listFromJson(json[r'quizGreatLevel']), - description: TranslationDTO.listFromJson(json[r'description']), - order: mapValueOfType(json, r'order'), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - parentId: mapValueOfType(json, r'parentId'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QuizQuestionSectionQuiz.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QuizQuestionSectionQuiz.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QuizQuestionSectionQuiz-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QuizQuestionSectionQuiz.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'label', - 'title', - 'configurationId', - 'type', - 'isSubSection', - 'instanceId', - 'quizQuestions', - 'quizBadLevel', - 'quizMediumLevel', - 'quizGoodLevel', - 'quizGreatLevel', - }; -} diff --git a/manager_api_new/lib/model/quizz_dto.dart b/manager_api_new/lib/model/quizz_dto.dart deleted file mode 100644 index 6daa28d..0000000 --- a/manager_api_new/lib/model/quizz_dto.dart +++ /dev/null @@ -1,168 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuizzDTO { - /// Returns a new [QuizzDTO] instance. - QuizzDTO({ - this.questions = const [], - 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 => - // ignore: unnecessary_parenthesis - (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 (this.questions != null) { - json[r'questions'] = this.questions; - } else { - json[r'questions'] = null; - } - if (this.badLevel != null) { - json[r'bad_level'] = this.badLevel; - } else { - json[r'bad_level'] = null; - } - if (this.mediumLevel != null) { - json[r'medium_level'] = this.mediumLevel; - } else { - json[r'medium_level'] = null; - } - if (this.goodLevel != null) { - json[r'good_level'] = this.goodLevel; - } else { - json[r'good_level'] = null; - } - if (this.greatLevel != null) { - json[r'great_level'] = this.greatLevel; - } else { - json[r'great_level'] = null; - } - return json; - } - - /// Returns a new [QuizzDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QuizzDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "QuizzDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "QuizzDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return QuizzDTO( - questions: QuestionDTO.listFromJson(json[r'questions']) ?? const [], - 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']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QuizzDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QuizzDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QuizzDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QuizzDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/quizz_dto_bad_level.dart b/manager_api_new/lib/model/quizz_dto_bad_level.dart deleted file mode 100644 index 4a44df1..0000000 --- a/manager_api_new/lib/model/quizz_dto_bad_level.dart +++ /dev/null @@ -1,122 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuizzDTOBadLevel { - /// Returns a new [QuizzDTOBadLevel] instance. - QuizzDTOBadLevel({ - this.label = const [], - }); - - List? label; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is QuizzDTOBadLevel && other.label == label; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (label == null ? 0 : label!.hashCode); - - @override - String toString() => 'QuizzDTOBadLevel[label=$label]'; - - Map toJson() { - final json = {}; - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - return json; - } - - /// Returns a new [QuizzDTOBadLevel] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QuizzDTOBadLevel? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "QuizzDTOBadLevel[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "QuizzDTOBadLevel[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return QuizzDTOBadLevel( - label: TranslationAndResourceDTO.listFromJson(json[r'label']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QuizzDTOBadLevel.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QuizzDTOBadLevel.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QuizzDTOBadLevel-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QuizzDTOBadLevel.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/resource.dart b/manager_api_new/lib/model/resource.dart deleted file mode 100644 index 460c310..0000000 --- a/manager_api_new/lib/model/resource.dart +++ /dev/null @@ -1,174 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class Resource { - /// Returns a new [Resource] instance. - Resource({ - required this.id, - required this.type, - required this.label, - required this.instanceId, - this.dateCreation, - this.url, - }); - - String id; - - ResourceType type; - - String label; - - String instanceId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - String? url; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is Resource && - other.id == id && - other.type == type && - other.label == label && - other.instanceId == instanceId && - other.dateCreation == dateCreation && - other.url == url; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (type.hashCode) + - (label.hashCode) + - (instanceId.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (url == null ? 0 : url!.hashCode); - - @override - String toString() => - 'Resource[id=$id, type=$type, label=$label, instanceId=$instanceId, dateCreation=$dateCreation, url=$url]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'type'] = this.type; - json[r'label'] = this.label; - json[r'instanceId'] = this.instanceId; - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.url != null) { - json[r'url'] = this.url; - } else { - json[r'url'] = null; - } - return json; - } - - /// Returns a new [Resource] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static Resource? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "Resource[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "Resource[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return Resource( - id: mapValueOfType(json, r'id')!, - type: ResourceType.fromJson(json[r'type'])!, - label: mapValueOfType(json, r'label')!, - instanceId: mapValueOfType(json, r'instanceId')!, - dateCreation: mapDateTime(json, r'dateCreation', r''), - url: mapValueOfType(json, r'url'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = Resource.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = Resource.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of Resource-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = Resource.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'type', - 'label', - 'instanceId', - }; -} diff --git a/manager_api_new/lib/model/resource_dto.dart b/manager_api_new/lib/model/resource_dto.dart deleted file mode 100644 index 3f8386b..0000000 --- a/manager_api_new/lib/model/resource_dto.dart +++ /dev/null @@ -1,191 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ResourceDTO { - /// Returns a new [ResourceDTO] instance. - ResourceDTO({ - this.id, - this.type, - this.label, - this.url, - this.dateCreation, - this.instanceId, - }); - - String? id; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - ResourceType? type; - - String? label; - - String? url; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - String? instanceId; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ResourceDTO && - other.id == id && - other.type == type && - other.label == label && - other.url == url && - other.dateCreation == dateCreation && - other.instanceId == instanceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode); - - @override - String toString() => - 'ResourceDTO[id=$id, type=$type, label=$label, url=$url, dateCreation=$dateCreation, instanceId=$instanceId]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.url != null) { - json[r'url'] = this.url; - } else { - json[r'url'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - return json; - } - - /// Returns a new [ResourceDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ResourceDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ResourceDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ResourceDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ResourceDTO( - id: mapValueOfType(json, r'id'), - type: ResourceType.fromJson(json[r'type']), - label: mapValueOfType(json, r'label'), - url: mapValueOfType(json, r'url'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - instanceId: mapValueOfType(json, r'instanceId'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ResourceDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ResourceDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ResourceDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ResourceDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/resource_type.dart b/manager_api_new/lib/model/resource_type.dart deleted file mode 100644 index b42ec0c..0000000 --- a/manager_api_new/lib/model/resource_type.dart +++ /dev/null @@ -1,122 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -/// 0 = Image 1 = Video 2 = ImageUrl 3 = VideoUrl 4 = Audio 5 = PDF 6 = JSON 7 = JSONUrl -class ResourceType { - /// Instantiate a new enum with the provided [value]. - const ResourceType._(this.value); - - /// The underlying value of this enum member. - final int value; - - @override - String toString() => value.toString(); - - int toJson() => value; - - static const Image = ResourceType._(0); - static const Video = ResourceType._(1); - static const ImageUrl = ResourceType._(2); - static const VideoUrl = ResourceType._(3); - static const Audio = ResourceType._(4); - static const Pdf = ResourceType._(5); - static const Json = ResourceType._(6); - static const JsonUrl = ResourceType._(7); - - /// List of all possible values in this [enum][ResourceType]. - static const values = [ - Image, - Video, - ImageUrl, - VideoUrl, - Audio, - Pdf, - Json, - JsonUrl - ]; - - static ResourceType? fromJson(dynamic value) => ResourceTypeTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ResourceType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [ResourceType] to int, -/// and [decode] dynamic data back to [ResourceType]. -class ResourceTypeTypeTransformer { - factory ResourceTypeTypeTransformer() => _instance ??= const ResourceTypeTypeTransformer._(); - - const ResourceTypeTypeTransformer._(); - - int 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 = true}) { - if (data != null) { - if(data.runtimeType == String) { - switch (data.toString()) { - case "Image": return ResourceType.Image; - case "Video": return ResourceType.Video; - case "ImageUrl": return ResourceType.ImageUrl; - case "VideoUrl": return ResourceType.VideoUrl; - case "Audio": return ResourceType.Audio; - case "PDF": return ResourceType.Pdf; - case "JSON": return ResourceType.Json; - case "JSONUrl": return ResourceType.JsonUrl; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } else { - if(data.runtimeType == int) { - switch (data) { - case 0: return ResourceType.Image; - case 1: return ResourceType.Video; - case 2: return ResourceType.ImageUrl; - case 3: return ResourceType.VideoUrl; - case 4: return ResourceType.Audio; - case 5: return ResourceType.Pdf; - case 6: return ResourceType.Json; - case 7: return ResourceType.JsonUrl; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - } - } - return null; - } - - /// Singleton [ResourceTypeTypeTransformer] instance. - static ResourceTypeTypeTransformer? _instance; -} - diff --git a/manager_api_new/lib/model/response_dto.dart b/manager_api_new/lib/model/response_dto.dart deleted file mode 100644 index d9e8dc3..0000000 --- a/manager_api_new/lib/model/response_dto.dart +++ /dev/null @@ -1,158 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ResponseDTO { - /// Returns a new [ResponseDTO] instance. - ResponseDTO({ - this.label = const [], - this.isGood, - this.order, - }); - - List? label; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isGood; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ResponseDTO && - _deepEquality.equals(other.label, label) && - other.isGood == isGood && - other.order == order; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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 (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.isGood != null) { - json[r'isGood'] = this.isGood; - } else { - json[r'isGood'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - return json; - } - - /// Returns a new [ResponseDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ResponseDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ResponseDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ResponseDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ResponseDTO( - label: TranslationAndResourceDTO.listFromJson(json[r'label']), - isGood: mapValueOfType(json, r'isGood'), - order: mapValueOfType(json, r'order'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ResponseDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ResponseDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ResponseDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ResponseDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/section.dart b/manager_api_new/lib/model/section.dart deleted file mode 100644 index 43f6ebe..0000000 --- a/manager_api_new/lib/model/section.dart +++ /dev/null @@ -1,309 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class Section { - /// Returns a new [Section] instance. - Section({ - required this.id, - required this.label, - this.title = const [], - required this.configurationId, - required this.type, - required this.isSubSection, - required this.instanceId, - this.description = const [], - this.order, - this.imageId, - this.imageSource, - this.parentId, - this.dateCreation, - this.isBeacon, - this.beaconId, - this.latitude, - this.longitude, - this.meterZoneGPS, - }); - - String id; - - String label; - - List title; - - String configurationId; - - SectionType type; - - bool isSubSection; - - String instanceId; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - String? imageId; - - String? imageSource; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is Section && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - other.configurationId == configurationId && - other.type == type && - other.isSubSection == isSubSection && - other.instanceId == instanceId && - _deepEquality.equals(other.description, description) && - other.order == order && - other.imageId == imageId && - other.imageSource == imageSource && - other.parentId == parentId && - other.dateCreation == dateCreation && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (label.hashCode) + - (title.hashCode) + - (configurationId.hashCode) + - (type.hashCode) + - (isSubSection.hashCode) + - (instanceId.hashCode) + - (description == null ? 0 : description!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (imageId == null ? 0 : imageId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode); - - @override - String toString() => - 'Section[id=$id, label=$label, title=$title, configurationId=$configurationId, type=$type, isSubSection=$isSubSection, instanceId=$instanceId, description=$description, order=$order, imageId=$imageId, imageSource=$imageSource, parentId=$parentId, dateCreation=$dateCreation, isBeacon=$isBeacon, beaconId=$beaconId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'label'] = this.label; - json[r'title'] = this.title; - json[r'configurationId'] = this.configurationId; - json[r'type'] = this.type; - json[r'isSubSection'] = this.isSubSection; - json[r'instanceId'] = this.instanceId; - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - return json; - } - - /// Returns a new [Section] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static Section? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "Section[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "Section[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return Section( - id: mapValueOfType(json, r'id')!, - label: mapValueOfType(json, r'label')!, - title: TranslationDTO.listFromJson(json[r'title']), - configurationId: mapValueOfType(json, r'configurationId')!, - type: SectionType.fromJson(json[r'type'])!, - isSubSection: mapValueOfType(json, r'isSubSection')!, - instanceId: mapValueOfType(json, r'instanceId')!, - description: TranslationDTO.listFromJson(json[r'description']), - order: mapValueOfType(json, r'order'), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - parentId: mapValueOfType(json, r'parentId'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - ); - } - return null; - } - - static List
listFromJson( - dynamic json, { - bool growable = false, - }) { - final result =
[]; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = Section.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = Section.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of Section-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = Section.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'label', - 'title', - 'configurationId', - 'type', - 'isSubSection', - 'instanceId', - }; -} diff --git a/manager_api_new/lib/model/section_dto.dart b/manager_api_new/lib/model/section_dto.dart deleted file mode 100644 index d03c3c7..0000000 --- a/manager_api_new/lib/model/section_dto.dart +++ /dev/null @@ -1,335 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionDTO { - /// Returns a new [SectionDTO] instance. - SectionDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is SectionDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.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, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - return json; - } - - /// Returns a new [SectionDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "SectionDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "SectionDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/section_event.dart b/manager_api_new/lib/model/section_event.dart deleted file mode 100644 index 3a7a56a..0000000 --- a/manager_api_new/lib/model/section_event.dart +++ /dev/null @@ -1,386 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionEvent { - /// Returns a new [SectionEvent] instance. - SectionEvent({ - required this.id, - required this.label, - this.title = const [], - required this.configurationId, - required this.type, - required this.isSubSection, - required this.instanceId, - this.description = const [], - this.order, - this.imageId, - this.imageSource, - this.parentId, - this.dateCreation, - this.isBeacon, - this.beaconId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isActive, - this.startDate, - this.endDate, - this.programme = const [], - this.parcoursIds = const [], - }); - - String id; - - String label; - - List title; - - String configurationId; - - SectionType type; - - bool isSubSection; - - String instanceId; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - String? imageId; - - String? imageSource; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isActive; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? startDate; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? endDate; - - List? programme; - - List? parcoursIds; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is SectionEvent && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - other.configurationId == configurationId && - other.type == type && - other.isSubSection == isSubSection && - other.instanceId == instanceId && - _deepEquality.equals(other.description, description) && - other.order == order && - other.imageId == imageId && - other.imageSource == imageSource && - other.parentId == parentId && - other.dateCreation == dateCreation && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isActive == isActive && - other.startDate == startDate && - other.endDate == endDate && - _deepEquality.equals(other.programme, programme) && - _deepEquality.equals(other.parcoursIds, parcoursIds); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (label.hashCode) + - (title.hashCode) + - (configurationId.hashCode) + - (type.hashCode) + - (isSubSection.hashCode) + - (instanceId.hashCode) + - (description == null ? 0 : description!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (imageId == null ? 0 : imageId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isActive == null ? 0 : isActive!.hashCode) + - (startDate == null ? 0 : startDate!.hashCode) + - (endDate == null ? 0 : endDate!.hashCode) + - (programme == null ? 0 : programme!.hashCode) + - (parcoursIds == null ? 0 : parcoursIds!.hashCode); - - @override - String toString() => - 'SectionEvent[id=$id, label=$label, title=$title, configurationId=$configurationId, type=$type, isSubSection=$isSubSection, instanceId=$instanceId, description=$description, order=$order, imageId=$imageId, imageSource=$imageSource, parentId=$parentId, dateCreation=$dateCreation, isBeacon=$isBeacon, beaconId=$beaconId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isActive=$isActive, startDate=$startDate, endDate=$endDate, programme=$programme, parcoursIds=$parcoursIds]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'label'] = this.label; - json[r'title'] = this.title; - json[r'configurationId'] = this.configurationId; - json[r'type'] = this.type; - json[r'isSubSection'] = this.isSubSection; - json[r'instanceId'] = this.instanceId; - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isActive != null) { - json[r'isActive'] = this.isActive; - } else { - json[r'isActive'] = null; - } - if (this.startDate != null) { - json[r'startDate'] = this.startDate!.toUtc().toIso8601String(); - } else { - json[r'startDate'] = null; - } - if (this.endDate != null) { - json[r'endDate'] = this.endDate!.toUtc().toIso8601String(); - } else { - json[r'endDate'] = null; - } - if (this.programme != null) { - json[r'programme'] = this.programme; - } else { - json[r'programme'] = null; - } - if (this.parcoursIds != null) { - json[r'parcoursIds'] = this.parcoursIds; - } else { - json[r'parcoursIds'] = null; - } - return json; - } - - /// Returns a new [SectionEvent] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionEvent? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "SectionEvent[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "SectionEvent[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionEvent( - id: mapValueOfType(json, r'id')!, - label: mapValueOfType(json, r'label')!, - title: TranslationDTO.listFromJson(json[r'title']), - configurationId: mapValueOfType(json, r'configurationId')!, - type: SectionType.fromJson(json[r'type'])!, - isSubSection: mapValueOfType(json, r'isSubSection')!, - instanceId: mapValueOfType(json, r'instanceId')!, - description: TranslationDTO.listFromJson(json[r'description']), - order: mapValueOfType(json, r'order'), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - parentId: mapValueOfType(json, r'parentId'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isActive: mapValueOfType(json, r'isActive'), - startDate: mapDateTime(json, r'startDate', r''), - endDate: mapDateTime(json, r'endDate', r''), - programme: ProgrammeBlock.listFromJson(json[r'programme']), - parcoursIds: json[r'parcoursIds'] is Iterable - ? (json[r'parcoursIds'] as Iterable) - .cast() - .toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionEvent.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionEvent.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionEvent-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionEvent.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'label', - 'title', - 'configurationId', - 'type', - 'isSubSection', - 'instanceId', - }; -} diff --git a/manager_api_new/lib/model/section_event_dto.dart b/manager_api_new/lib/model/section_event_dto.dart deleted file mode 100644 index 00ae563..0000000 --- a/manager_api_new/lib/model/section_event_dto.dart +++ /dev/null @@ -1,406 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionEventDTO { - /// Returns a new [SectionEventDTO] instance. - SectionEventDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.isActive, - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.startDate, - this.endDate, - this.parcoursIds = const [], - this.programme = const [], - }); - - String? id; - - String? label; - - List? title; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isActive; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? startDate; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? endDate; - - List? parcoursIds; - - List? programme; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is SectionEventDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.isActive == isActive && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.startDate == startDate && - other.endDate == endDate && - _deepEquality.equals(other.parcoursIds, parcoursIds) && - _deepEquality.equals(other.programme, programme); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (title == null ? 0 : title!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (isActive == null ? 0 : isActive!.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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (startDate == null ? 0 : startDate!.hashCode) + - (endDate == null ? 0 : endDate!.hashCode) + - (parcoursIds == null ? 0 : parcoursIds!.hashCode) + - (programme == null ? 0 : programme!.hashCode); - - @override - String toString() => - 'SectionEventDTO[id=$id, label=$label, title=$title, description=$description, isActive=$isActive, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, startDate=$startDate, endDate=$endDate, parcoursIds=$parcoursIds, programme=$programme]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.isActive != null) { - json[r'isActive'] = this.isActive; - } else { - json[r'isActive'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.startDate != null) { - json[r'startDate'] = this.startDate!.toUtc().toIso8601String(); - } else { - json[r'startDate'] = null; - } - if (this.endDate != null) { - json[r'endDate'] = this.endDate!.toUtc().toIso8601String(); - } else { - json[r'endDate'] = null; - } - if (this.parcoursIds != null) { - json[r'parcoursIds'] = this.parcoursIds; - } else { - json[r'parcoursIds'] = null; - } - if (this.programme != null) { - json[r'programme'] = this.programme; - } else { - json[r'programme'] = null; - } - return json; - } - - /// Returns a new [SectionEventDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionEventDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "SectionEventDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "SectionEventDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionEventDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - isActive: mapValueOfType(json, r'isActive'), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - startDate: mapDateTime(json, r'startDate', r''), - endDate: mapDateTime(json, r'endDate', r''), - parcoursIds: json[r'parcoursIds'] is Iterable - ? (json[r'parcoursIds'] as Iterable) - .cast() - .toList(growable: false) - : const [], - programme: ProgrammeBlock.listFromJson(json[r'programme']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionEventDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionEventDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionEventDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionEventDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/section_map.dart b/manager_api_new/lib/model/section_map.dart deleted file mode 100644 index 770b757..0000000 --- a/manager_api_new/lib/model/section_map.dart +++ /dev/null @@ -1,424 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionMap { - /// Returns a new [SectionMap] instance. - SectionMap({ - required this.id, - required this.label, - this.title = const [], - required this.configurationId, - required this.type, - required this.isSubSection, - required this.instanceId, - this.mapCategories = const [], - this.description = const [], - this.order, - this.imageId, - this.imageSource, - this.parentId, - this.dateCreation, - this.isBeacon, - this.beaconId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.mapZoom, - this.mapMapType, - this.mapTypeMapbox, - this.mapMapProvider, - this.mapPoints = const [], - this.mapResourceId, - this.mapResource, - this.mapCenterLatitude, - this.mapCenterLongitude, - }); - - String id; - - String label; - - List title; - - String configurationId; - - SectionType type; - - bool isSubSection; - - String instanceId; - - List mapCategories; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - String? imageId; - - String? imageSource; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? mapZoom; - - SectionMapAllOfMapMapType? mapMapType; - - SectionMapAllOfMapTypeMapbox? mapTypeMapbox; - - SectionMapAllOfMapMapProvider? mapMapProvider; - - List? mapPoints; - - String? mapResourceId; - - SectionMapAllOfMapResource? mapResource; - - String? mapCenterLatitude; - - String? mapCenterLongitude; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is SectionMap && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - other.configurationId == configurationId && - other.type == type && - other.isSubSection == isSubSection && - other.instanceId == instanceId && - _deepEquality.equals(other.mapCategories, mapCategories) && - _deepEquality.equals(other.description, description) && - other.order == order && - other.imageId == imageId && - other.imageSource == imageSource && - other.parentId == parentId && - other.dateCreation == dateCreation && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.mapZoom == mapZoom && - other.mapMapType == mapMapType && - other.mapTypeMapbox == mapTypeMapbox && - other.mapMapProvider == mapMapProvider && - _deepEquality.equals(other.mapPoints, mapPoints) && - other.mapResourceId == mapResourceId && - other.mapResource == mapResource && - other.mapCenterLatitude == mapCenterLatitude && - other.mapCenterLongitude == mapCenterLongitude; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (label.hashCode) + - (title.hashCode) + - (configurationId.hashCode) + - (type.hashCode) + - (isSubSection.hashCode) + - (instanceId.hashCode) + - (mapCategories.hashCode) + - (description == null ? 0 : description!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (imageId == null ? 0 : imageId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (mapZoom == null ? 0 : mapZoom!.hashCode) + - (mapMapType == null ? 0 : mapMapType!.hashCode) + - (mapTypeMapbox == null ? 0 : mapTypeMapbox!.hashCode) + - (mapMapProvider == null ? 0 : mapMapProvider!.hashCode) + - (mapPoints == null ? 0 : mapPoints!.hashCode) + - (mapResourceId == null ? 0 : mapResourceId!.hashCode) + - (mapResource == null ? 0 : mapResource!.hashCode) + - (mapCenterLatitude == null ? 0 : mapCenterLatitude!.hashCode) + - (mapCenterLongitude == null ? 0 : mapCenterLongitude!.hashCode); - - @override - String toString() => - 'SectionMap[id=$id, label=$label, title=$title, configurationId=$configurationId, type=$type, isSubSection=$isSubSection, instanceId=$instanceId, mapCategories=$mapCategories, description=$description, order=$order, imageId=$imageId, imageSource=$imageSource, parentId=$parentId, dateCreation=$dateCreation, isBeacon=$isBeacon, beaconId=$beaconId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, mapZoom=$mapZoom, mapMapType=$mapMapType, mapTypeMapbox=$mapTypeMapbox, mapMapProvider=$mapMapProvider, mapPoints=$mapPoints, mapResourceId=$mapResourceId, mapResource=$mapResource, mapCenterLatitude=$mapCenterLatitude, mapCenterLongitude=$mapCenterLongitude]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'label'] = this.label; - json[r'title'] = this.title; - json[r'configurationId'] = this.configurationId; - json[r'type'] = this.type; - json[r'isSubSection'] = this.isSubSection; - json[r'instanceId'] = this.instanceId; - json[r'mapCategories'] = this.mapCategories; - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.mapZoom != null) { - json[r'mapZoom'] = this.mapZoom; - } else { - json[r'mapZoom'] = null; - } - if (this.mapMapType != null) { - json[r'mapMapType'] = this.mapMapType; - } else { - json[r'mapMapType'] = null; - } - if (this.mapTypeMapbox != null) { - json[r'mapTypeMapbox'] = this.mapTypeMapbox; - } else { - json[r'mapTypeMapbox'] = null; - } - if (this.mapMapProvider != null) { - json[r'mapMapProvider'] = this.mapMapProvider; - } else { - json[r'mapMapProvider'] = null; - } - if (this.mapPoints != null) { - json[r'mapPoints'] = this.mapPoints; - } else { - json[r'mapPoints'] = null; - } - if (this.mapResourceId != null) { - json[r'mapResourceId'] = this.mapResourceId; - } else { - json[r'mapResourceId'] = null; - } - if (this.mapResource != null) { - json[r'mapResource'] = this.mapResource; - } else { - json[r'mapResource'] = null; - } - if (this.mapCenterLatitude != null) { - json[r'mapCenterLatitude'] = this.mapCenterLatitude; - } else { - json[r'mapCenterLatitude'] = null; - } - if (this.mapCenterLongitude != null) { - json[r'mapCenterLongitude'] = this.mapCenterLongitude; - } else { - json[r'mapCenterLongitude'] = null; - } - return json; - } - - /// Returns a new [SectionMap] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionMap? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "SectionMap[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "SectionMap[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionMap( - id: mapValueOfType(json, r'id')!, - label: mapValueOfType(json, r'label')!, - title: TranslationDTO.listFromJson(json[r'title']), - configurationId: mapValueOfType(json, r'configurationId')!, - type: SectionType.fromJson(json[r'type'])!, - isSubSection: mapValueOfType(json, r'isSubSection')!, - instanceId: mapValueOfType(json, r'instanceId')!, - mapCategories: CategorieDTO.listFromJson(json[r'mapCategories']), - description: TranslationDTO.listFromJson(json[r'description']), - order: mapValueOfType(json, r'order'), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - parentId: mapValueOfType(json, r'parentId'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - mapZoom: mapValueOfType(json, r'mapZoom'), - mapMapType: SectionMapAllOfMapMapType.fromJson(json[r'mapMapType']), - mapTypeMapbox: - SectionMapAllOfMapTypeMapbox.fromJson(json[r'mapTypeMapbox']), - mapMapProvider: - SectionMapAllOfMapMapProvider.fromJson(json[r'mapMapProvider']), - mapPoints: GeoPoint.listFromJson(json[r'mapPoints']), - mapResourceId: mapValueOfType(json, r'mapResourceId'), - mapResource: SectionMapAllOfMapResource.fromJson(json[r'mapResource']), - mapCenterLatitude: mapValueOfType(json, r'mapCenterLatitude'), - mapCenterLongitude: mapValueOfType(json, r'mapCenterLongitude'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionMap.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionMap.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionMap-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionMap.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'label', - 'title', - 'configurationId', - 'type', - 'isSubSection', - 'instanceId', - 'mapCategories', - }; -} diff --git a/manager_api_new/lib/model/section_map_all_of_map_map_provider.dart b/manager_api_new/lib/model/section_map_all_of_map_map_provider.dart deleted file mode 100644 index 1ba2900..0000000 --- a/manager_api_new/lib/model/section_map_all_of_map_map_provider.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionMapAllOfMapMapProvider { - /// Returns a new [SectionMapAllOfMapMapProvider] instance. - SectionMapAllOfMapMapProvider(); - - /*@override - bool operator ==(Object other) => identical(this, other) || other is SectionMapAllOfMapMapProvider && - - @override - int get hashCode => - // ignore: unnecessary_parenthesis -*/ - @override - String toString() => 'SectionMapAllOfMapMapProvider[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [SectionMapAllOfMapMapProvider] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionMapAllOfMapMapProvider? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SectionMapAllOfMapMapProvider[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SectionMapAllOfMapMapProvider[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionMapAllOfMapMapProvider( - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionMapAllOfMapMapProvider.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionMapAllOfMapMapProvider.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionMapAllOfMapMapProvider-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionMapAllOfMapMapProvider.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/manager_api_new/lib/model/section_map_all_of_map_map_type.dart b/manager_api_new/lib/model/section_map_all_of_map_map_type.dart deleted file mode 100644 index 2bf4aeb..0000000 --- a/manager_api_new/lib/model/section_map_all_of_map_map_type.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionMapAllOfMapMapType { - /// Returns a new [SectionMapAllOfMapMapType] instance. - SectionMapAllOfMapMapType(); - - /*@override - bool operator ==(Object other) => identical(this, other) || other is SectionMapAllOfMapMapType && - - @override - int get hashCode => - // ignore: unnecessary_parenthesis -*/ - @override - String toString() => 'SectionMapAllOfMapMapType[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [SectionMapAllOfMapMapType] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionMapAllOfMapMapType? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SectionMapAllOfMapMapType[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SectionMapAllOfMapMapType[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionMapAllOfMapMapType( - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionMapAllOfMapMapType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionMapAllOfMapMapType.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionMapAllOfMapMapType-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionMapAllOfMapMapType.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/manager_api_new/lib/model/section_map_all_of_map_resource.dart b/manager_api_new/lib/model/section_map_all_of_map_resource.dart deleted file mode 100644 index 3caca1a..0000000 --- a/manager_api_new/lib/model/section_map_all_of_map_resource.dart +++ /dev/null @@ -1,174 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionMapAllOfMapResource { - /// Returns a new [SectionMapAllOfMapResource] instance. - SectionMapAllOfMapResource({ - required this.id, - required this.type, - required this.label, - required this.instanceId, - this.dateCreation, - this.url, - }); - - String id; - - ResourceType type; - - String label; - - String instanceId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - String? url; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is SectionMapAllOfMapResource && - other.id == id && - other.type == type && - other.label == label && - other.instanceId == instanceId && - other.dateCreation == dateCreation && - other.url == url; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (type.hashCode) + - (label.hashCode) + - (instanceId.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (url == null ? 0 : url!.hashCode); - - @override - String toString() => - 'SectionMapAllOfMapResource[id=$id, type=$type, label=$label, instanceId=$instanceId, dateCreation=$dateCreation, url=$url]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'type'] = this.type; - json[r'label'] = this.label; - json[r'instanceId'] = this.instanceId; - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.url != null) { - json[r'url'] = this.url; - } else { - json[r'url'] = null; - } - return json; - } - - /// Returns a new [SectionMapAllOfMapResource] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionMapAllOfMapResource? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "SectionMapAllOfMapResource[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "SectionMapAllOfMapResource[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionMapAllOfMapResource( - id: mapValueOfType(json, r'id')!, - type: ResourceType.fromJson(json[r'type'])!, - label: mapValueOfType(json, r'label')!, - instanceId: mapValueOfType(json, r'instanceId')!, - dateCreation: mapDateTime(json, r'dateCreation', r''), - url: mapValueOfType(json, r'url'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionMapAllOfMapResource.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionMapAllOfMapResource.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionMapAllOfMapResource-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionMapAllOfMapResource.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'type', - 'label', - 'instanceId', - }; -} diff --git a/manager_api_new/lib/model/section_map_all_of_map_type_mapbox.dart b/manager_api_new/lib/model/section_map_all_of_map_type_mapbox.dart deleted file mode 100644 index 7a01593..0000000 --- a/manager_api_new/lib/model/section_map_all_of_map_type_mapbox.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionMapAllOfMapTypeMapbox { - /// Returns a new [SectionMapAllOfMapTypeMapbox] instance. - SectionMapAllOfMapTypeMapbox(); - - /*@override - bool operator ==(Object other) => identical(this, other) || other is SectionMapAllOfMapTypeMapbox && - - @override - int get hashCode => - // ignore: unnecessary_parenthesis -*/ - @override - String toString() => 'SectionMapAllOfMapTypeMapbox[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [SectionMapAllOfMapTypeMapbox] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionMapAllOfMapTypeMapbox? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SectionMapAllOfMapTypeMapbox[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SectionMapAllOfMapTypeMapbox[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionMapAllOfMapTypeMapbox( - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionMapAllOfMapTypeMapbox.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionMapAllOfMapTypeMapbox.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionMapAllOfMapTypeMapbox-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionMapAllOfMapTypeMapbox.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/manager_api_new/lib/model/section_quiz.dart b/manager_api_new/lib/model/section_quiz.dart deleted file mode 100644 index 43861f1..0000000 --- a/manager_api_new/lib/model/section_quiz.dart +++ /dev/null @@ -1,353 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionQuiz { - /// Returns a new [SectionQuiz] instance. - SectionQuiz({ - required this.id, - required this.label, - this.title = const [], - required this.configurationId, - required this.type, - required this.isSubSection, - required this.instanceId, - this.quizQuestions = const [], - this.quizBadLevel = const [], - this.quizMediumLevel = const [], - this.quizGoodLevel = const [], - this.quizGreatLevel = const [], - this.description = const [], - this.order, - this.imageId, - this.imageSource, - this.parentId, - this.dateCreation, - this.isBeacon, - this.beaconId, - this.latitude, - this.longitude, - this.meterZoneGPS, - }); - - String id; - - String label; - - List title; - - String configurationId; - - SectionType type; - - bool isSubSection; - - String instanceId; - - List quizQuestions; - - List quizBadLevel; - - List quizMediumLevel; - - List quizGoodLevel; - - List quizGreatLevel; - - List? description; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? order; - - String? imageId; - - String? imageSource; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is SectionQuiz && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - other.configurationId == configurationId && - other.type == type && - other.isSubSection == isSubSection && - other.instanceId == instanceId && - _deepEquality.equals(other.quizQuestions, quizQuestions) && - _deepEquality.equals(other.quizBadLevel, quizBadLevel) && - _deepEquality.equals(other.quizMediumLevel, quizMediumLevel) && - _deepEquality.equals(other.quizGoodLevel, quizGoodLevel) && - _deepEquality.equals(other.quizGreatLevel, quizGreatLevel) && - _deepEquality.equals(other.description, description) && - other.order == order && - other.imageId == imageId && - other.imageSource == imageSource && - other.parentId == parentId && - other.dateCreation == dateCreation && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (label.hashCode) + - (title.hashCode) + - (configurationId.hashCode) + - (type.hashCode) + - (isSubSection.hashCode) + - (instanceId.hashCode) + - (quizQuestions.hashCode) + - (quizBadLevel.hashCode) + - (quizMediumLevel.hashCode) + - (quizGoodLevel.hashCode) + - (quizGreatLevel.hashCode) + - (description == null ? 0 : description!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (imageId == null ? 0 : imageId!.hashCode) + - (imageSource == null ? 0 : imageSource!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode); - - @override - String toString() => - 'SectionQuiz[id=$id, label=$label, title=$title, configurationId=$configurationId, type=$type, isSubSection=$isSubSection, instanceId=$instanceId, quizQuestions=$quizQuestions, quizBadLevel=$quizBadLevel, quizMediumLevel=$quizMediumLevel, quizGoodLevel=$quizGoodLevel, quizGreatLevel=$quizGreatLevel, description=$description, order=$order, imageId=$imageId, imageSource=$imageSource, parentId=$parentId, dateCreation=$dateCreation, isBeacon=$isBeacon, beaconId=$beaconId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'label'] = this.label; - json[r'title'] = this.title; - json[r'configurationId'] = this.configurationId; - json[r'type'] = this.type; - json[r'isSubSection'] = this.isSubSection; - json[r'instanceId'] = this.instanceId; - json[r'quizQuestions'] = this.quizQuestions; - json[r'quizBadLevel'] = this.quizBadLevel; - json[r'quizMediumLevel'] = this.quizMediumLevel; - json[r'quizGoodLevel'] = this.quizGoodLevel; - json[r'quizGreatLevel'] = this.quizGreatLevel; - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - return json; - } - - /// Returns a new [SectionQuiz] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionQuiz? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "SectionQuiz[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "SectionQuiz[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionQuiz( - id: mapValueOfType(json, r'id')!, - label: mapValueOfType(json, r'label')!, - title: TranslationDTO.listFromJson(json[r'title']), - configurationId: mapValueOfType(json, r'configurationId')!, - type: SectionType.fromJson(json[r'type'])!, - isSubSection: mapValueOfType(json, r'isSubSection')!, - instanceId: mapValueOfType(json, r'instanceId')!, - quizQuestions: QuizQuestion.listFromJson(json[r'quizQuestions']), - quizBadLevel: - TranslationAndResourceDTO.listFromJson(json[r'quizBadLevel']), - quizMediumLevel: - TranslationAndResourceDTO.listFromJson(json[r'quizMediumLevel']), - quizGoodLevel: - TranslationAndResourceDTO.listFromJson(json[r'quizGoodLevel']), - quizGreatLevel: - TranslationAndResourceDTO.listFromJson(json[r'quizGreatLevel']), - description: TranslationDTO.listFromJson(json[r'description']), - order: mapValueOfType(json, r'order'), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - parentId: mapValueOfType(json, r'parentId'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionQuiz.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionQuiz.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionQuiz-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionQuiz.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'label', - 'title', - 'configurationId', - 'type', - 'isSubSection', - 'instanceId', - 'quizQuestions', - 'quizBadLevel', - 'quizMediumLevel', - 'quizGoodLevel', - 'quizGreatLevel', - }; -} diff --git a/manager_api_new/lib/model/section_type.dart b/manager_api_new/lib/model/section_type.dart deleted file mode 100644 index ad229bc..0000000 --- a/manager_api_new/lib/model/section_type.dart +++ /dev/null @@ -1,134 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -/// 0 = Map 1 = Slider 2 = Video 3 = Web 4 = Menu 5 = Quiz 6 = Article 7 = PDF 8 = Puzzle 9 = Agenda -class SectionType { - /// Instantiate a new enum with the provided [value]. - const SectionType._(this.value); - - /// The underlying value of this enum member. - final int value; - - @override - String toString() => value.toString(); - - int toJson() => value; - - static const Map = SectionType._(0); - static const Slider = SectionType._(1); - static const Video = SectionType._(2); - static const Web = SectionType._(3); - static const Menu = SectionType._(4); - static const Quiz = SectionType._(5); - static const Article = SectionType._(6); - static const Pdf = SectionType._(7); - static const Puzzle = SectionType._(8); - static const Agenda = SectionType._(9); - static const Weather = SectionType._(10); - - /// List of all possible values in this [enum][SectionType]. - static const values = [ - Map, - Slider, - Video, - Web, - Menu, - Quiz, - Article, - Pdf, - Puzzle, - Agenda, - Weather - ]; - - static SectionType? fromJson(dynamic value) => SectionTypeTypeTransformer().decode(value); - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [SectionType] to int, -/// and [decode] dynamic data back to [SectionType]. -class SectionTypeTypeTransformer { - factory SectionTypeTypeTransformer() => _instance ??= const SectionTypeTypeTransformer._(); - - const SectionTypeTypeTransformer._(); - - int 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 = true}) { - if (data != null) { - if(data.runtimeType == String) { - switch (data.toString()) { - 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'Quiz': return SectionType.Quiz; - case r'Article': return SectionType.Article; - case r'PDF': return SectionType.Pdf; - case r'Puzzle': return SectionType.Puzzle; - case r'Agenda': return SectionType.Agenda; - case r'Weather': return SectionType.Weather; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } else { - if(data.runtimeType == int) { - switch (data) { - case 0: return SectionType.Map; - case 1: return SectionType.Slider; - case 2: return SectionType.Video; - case 3: return SectionType.Web; - case 4: return SectionType.Menu; - case 5: return SectionType.Quiz; - case 6: return SectionType.Article; - case 7: return SectionType.Pdf; - case 8: return SectionType.Puzzle; - case 9: return SectionType.Agenda; - case 10: return SectionType.Weather; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - } - } - return null; - } - - /// Singleton [SectionTypeTypeTransformer] instance. - static SectionTypeTypeTransformer? _instance; -} - diff --git a/manager_api_new/lib/model/slider_dto.dart b/manager_api_new/lib/model/slider_dto.dart deleted file mode 100644 index 87c5f1c..0000000 --- a/manager_api_new/lib/model/slider_dto.dart +++ /dev/null @@ -1,346 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SliderDTO { - /// Returns a new [SliderDTO] instance. - SliderDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.contents = const [], - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - List? contents; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is SliderDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - _deepEquality.equals(other.contents, contents); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (contents == null ? 0 : contents!.hashCode); - - @override - String toString() => - 'SliderDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, contents=$contents]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.contents != null) { - json[r'contents'] = this.contents; - } else { - json[r'contents'] = null; - } - return json; - } - - /// Returns a new [SliderDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SliderDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "SliderDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "SliderDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SliderDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - contents: ContentDTO.listFromJson(json[r'contents']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SliderDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SliderDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SliderDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SliderDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/token_dto.dart b/manager_api_new/lib/model/token_dto.dart deleted file mode 100644 index be65209..0000000 --- a/manager_api_new/lib/model/token_dto.dart +++ /dev/null @@ -1,213 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class TokenDTO { - /// Returns a new [TokenDTO] instance. - TokenDTO({ - this.accessToken, - this.refreshToken, - this.scope, - this.tokenType, - this.expiresIn, - this.expiration, - this.instanceId, - this.pinCode, - }); - - String? accessToken; - - String? refreshToken; - - String? scope; - - String? tokenType; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? expiresIn; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? expiration; - - String? instanceId; - - String? pinCode; - - @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 && - other.instanceId == instanceId && - other.pinCode == pinCode; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (pinCode == null ? 0 : pinCode!.hashCode); - - @override - String toString() => - 'TokenDTO[accessToken=$accessToken, refreshToken=$refreshToken, scope=$scope, tokenType=$tokenType, expiresIn=$expiresIn, expiration=$expiration, instanceId=$instanceId, pinCode=$pinCode]'; - - Map toJson() { - final json = {}; - if (this.accessToken != null) { - json[r'access_token'] = this.accessToken; - } else { - json[r'access_token'] = null; - } - if (this.refreshToken != null) { - json[r'refresh_token'] = this.refreshToken; - } else { - json[r'refresh_token'] = null; - } - if (this.scope != null) { - json[r'scope'] = this.scope; - } else { - json[r'scope'] = null; - } - if (this.tokenType != null) { - json[r'token_type'] = this.tokenType; - } else { - json[r'token_type'] = null; - } - if (this.expiresIn != null) { - json[r'expires_in'] = this.expiresIn; - } else { - json[r'expires_in'] = null; - } - if (this.expiration != null) { - json[r'expiration'] = this.expiration!.toUtc().toIso8601String(); - } else { - json[r'expiration'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.pinCode != null) { - json[r'pinCode'] = this.pinCode; - } else { - json[r'pinCode'] = null; - } - return json; - } - - /// Returns a new [TokenDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static TokenDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "TokenDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "TokenDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return TokenDTO( - accessToken: mapValueOfType(json, r'access_token'), - refreshToken: mapValueOfType(json, r'refresh_token'), - scope: mapValueOfType(json, r'scope'), - tokenType: mapValueOfType(json, r'token_type'), - expiresIn: mapValueOfType(json, r'expires_in'), - expiration: mapDateTime(json, r'expiration', r''), - instanceId: mapValueOfType(json, r'instanceId'), - pinCode: mapValueOfType(json, r'pinCode'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = TokenDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = TokenDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of TokenDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = TokenDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/translation_and_resource_dto.dart b/manager_api_new/lib/model/translation_and_resource_dto.dart deleted file mode 100644 index 3fa9192..0000000 --- a/manager_api_new/lib/model/translation_and_resource_dto.dart +++ /dev/null @@ -1,157 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class TranslationAndResourceDTO { - /// Returns a new [TranslationAndResourceDTO] instance. - TranslationAndResourceDTO({ - this.language, - this.value, - this.resourceId, - this.resource, - }); - - String? language; - - String? value; - - String? resourceId; - - ResourceDTO? resource; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is TranslationAndResourceDTO && - other.language == language && - other.value == value && - other.resourceId == resourceId && - other.resource == resource; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (language == null ? 0 : language!.hashCode) + - (value == null ? 0 : value!.hashCode) + - (resourceId == null ? 0 : resourceId!.hashCode) + - (resource == null ? 0 : resource!.hashCode); - - @override - String toString() => - 'TranslationAndResourceDTO[language=$language, value=$value, resourceId=$resourceId, resource=$resource]'; - - Map toJson() { - final json = {}; - if (this.language != null) { - json[r'language'] = this.language; - } else { - json[r'language'] = null; - } - if (this.value != null) { - json[r'value'] = this.value; - } else { - json[r'value'] = null; - } - if (this.resourceId != null) { - json[r'resourceId'] = this.resourceId; - } else { - json[r'resourceId'] = null; - } - if (this.resource != null) { - json[r'resource'] = this.resource; - } else { - json[r'resource'] = null; - } - return json; - } - - /// Returns a new [TranslationAndResourceDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static TranslationAndResourceDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "TranslationAndResourceDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "TranslationAndResourceDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return TranslationAndResourceDTO( - language: mapValueOfType(json, r'language'), - value: mapValueOfType(json, r'value'), - resourceId: mapValueOfType(json, r'resourceId'), - resource: ResourceDTO.fromJson(json[r'resource']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = TranslationAndResourceDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = TranslationAndResourceDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of TranslationAndResourceDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = TranslationAndResourceDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/translation_dto.dart b/manager_api_new/lib/model/translation_dto.dart deleted file mode 100644 index 798ab21..0000000 --- a/manager_api_new/lib/model/translation_dto.dart +++ /dev/null @@ -1,134 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -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 => - // ignore: unnecessary_parenthesis - (language == null ? 0 : language!.hashCode) + - (value == null ? 0 : value!.hashCode); - - @override - String toString() => 'TranslationDTO[language=$language, value=$value]'; - - Map toJson() { - final json = {}; - if (this.language != null) { - json[r'language'] = this.language; - } else { - json[r'language'] = null; - } - if (this.value != null) { - json[r'value'] = this.value; - } else { - json[r'value'] = null; - } - return json; - } - - /// Returns a new [TranslationDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static TranslationDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "TranslationDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "TranslationDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return TranslationDTO( - language: mapValueOfType(json, r'language'), - value: mapValueOfType(json, r'value'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = TranslationDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = TranslationDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of TranslationDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = TranslationDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/user.dart b/manager_api_new/lib/model/user.dart deleted file mode 100644 index 14698a7..0000000 --- a/manager_api_new/lib/model/user.dart +++ /dev/null @@ -1,190 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class User { - /// Returns a new [User] instance. - User({ - required this.id, - required this.email, - required this.password, - required this.lastName, - required this.token, - required this.instanceId, - this.firstName, - this.dateCreation, - }); - - String id; - - String email; - - String password; - - String lastName; - - String token; - - String instanceId; - - String? firstName; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is User && - other.id == id && - other.email == email && - other.password == password && - other.lastName == lastName && - other.token == token && - other.instanceId == instanceId && - other.firstName == firstName && - other.dateCreation == dateCreation; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (email.hashCode) + - (password.hashCode) + - (lastName.hashCode) + - (token.hashCode) + - (instanceId.hashCode) + - (firstName == null ? 0 : firstName!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode); - - @override - String toString() => - 'User[id=$id, email=$email, password=$password, lastName=$lastName, token=$token, instanceId=$instanceId, firstName=$firstName, dateCreation=$dateCreation]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'email'] = this.email; - json[r'password'] = this.password; - json[r'lastName'] = this.lastName; - json[r'token'] = this.token; - json[r'instanceId'] = this.instanceId; - if (this.firstName != null) { - json[r'firstName'] = this.firstName; - } else { - json[r'firstName'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - return json; - } - - /// Returns a new [User] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static User? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "User[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "User[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return User( - id: mapValueOfType(json, r'id')!, - email: mapValueOfType(json, r'email')!, - password: mapValueOfType(json, r'password')!, - lastName: mapValueOfType(json, r'lastName')!, - token: mapValueOfType(json, r'token')!, - instanceId: mapValueOfType(json, r'instanceId')!, - firstName: mapValueOfType(json, r'firstName'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = User.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = User.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of User-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = User.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'email', - 'password', - 'lastName', - 'token', - 'instanceId', - }; -} diff --git a/manager_api_new/lib/model/user_detail_dto.dart b/manager_api_new/lib/model/user_detail_dto.dart deleted file mode 100644 index fb48547..0000000 --- a/manager_api_new/lib/model/user_detail_dto.dart +++ /dev/null @@ -1,168 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class UserDetailDTO { - /// Returns a new [UserDetailDTO] instance. - UserDetailDTO({ - this.id, - this.email, - this.firstName, - this.lastName, - this.instanceId, - }); - - String? id; - - String? email; - - String? firstName; - - String? lastName; - - String? instanceId; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is UserDetailDTO && - other.id == id && - other.email == email && - other.firstName == firstName && - other.lastName == lastName && - other.instanceId == instanceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (email == null ? 0 : email!.hashCode) + - (firstName == null ? 0 : firstName!.hashCode) + - (lastName == null ? 0 : lastName!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode); - - @override - String toString() => - 'UserDetailDTO[id=$id, email=$email, firstName=$firstName, lastName=$lastName, instanceId=$instanceId]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.email != null) { - json[r'email'] = this.email; - } else { - json[r'email'] = null; - } - if (this.firstName != null) { - json[r'firstName'] = this.firstName; - } else { - json[r'firstName'] = null; - } - if (this.lastName != null) { - json[r'lastName'] = this.lastName; - } else { - json[r'lastName'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - return json; - } - - /// Returns a new [UserDetailDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UserDetailDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "UserDetailDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "UserDetailDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return UserDetailDTO( - id: mapValueOfType(json, r'id'), - email: mapValueOfType(json, r'email'), - firstName: mapValueOfType(json, r'firstName'), - lastName: mapValueOfType(json, r'lastName'), - instanceId: mapValueOfType(json, r'instanceId'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UserDetailDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UserDetailDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UserDetailDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UserDetailDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/video_dto.dart b/manager_api_new/lib/model/video_dto.dart deleted file mode 100644 index 8cf9e0c..0000000 --- a/manager_api_new/lib/model/video_dto.dart +++ /dev/null @@ -1,346 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class VideoDTO { - /// Returns a new [VideoDTO] instance. - VideoDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.source_, - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? source_; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is VideoDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.source_ == source_; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (source_ == null ? 0 : source_!.hashCode); - - @override - String toString() => - 'VideoDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, source_=$source_]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.source_ != null) { - json[r'source'] = this.source_; - } else { - json[r'source'] = null; - } - return json; - } - - /// Returns a new [VideoDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static VideoDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "VideoDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "VideoDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return VideoDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - source_: mapValueOfType(json, r'source'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = VideoDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = VideoDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of VideoDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = VideoDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/weather_dto.dart b/manager_api_new/lib/model/weather_dto.dart deleted file mode 100644 index 342a85c..0000000 --- a/manager_api_new/lib/model/weather_dto.dart +++ /dev/null @@ -1,368 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class WeatherDTO { - /// Returns a new [WeatherDTO] instance. - WeatherDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.city, - this.updatedDate, - this.result, - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? city; - - DateTime? updatedDate; - - String? result; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is WeatherDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.city == city && - other.updatedDate == updatedDate && - other.result == result; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (city == null ? 0 : city!.hashCode) + - (updatedDate == null ? 0 : updatedDate!.hashCode) + - (result == null ? 0 : result!.hashCode); - - @override - String toString() => - 'WeatherDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, city=$city, updatedDate=$updatedDate, result=$result]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.city != null) { - json[r'city'] = this.city; - } else { - json[r'city'] = null; - } - if (this.updatedDate != null) { - json[r'updatedDate'] = this.updatedDate!.toUtc().toIso8601String(); - } else { - json[r'updatedDate'] = null; - } - if (this.result != null) { - json[r'result'] = this.result; - } else { - json[r'result'] = null; - } - return json; - } - - /// Returns a new [WeatherDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static WeatherDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "WeatherDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "WeatherDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return WeatherDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - city: mapValueOfType(json, r'city'), - updatedDate: mapDateTime(json, r'updatedDate', r''), - result: mapValueOfType(json, r'result'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = WeatherDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = WeatherDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of WeatherDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = WeatherDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/web_dto.dart b/manager_api_new/lib/model/web_dto.dart deleted file mode 100644 index 1189110..0000000 --- a/manager_api_new/lib/model/web_dto.dart +++ /dev/null @@ -1,346 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class WebDTO { - /// Returns a new [WebDTO] instance. - WebDTO({ - this.id, - this.label, - this.title = const [], - this.description = const [], - this.imageId, - this.imageSource, - this.configurationId, - this.isSubSection, - this.parentId, - this.type, - this.dateCreation, - this.order, - this.instanceId, - this.latitude, - this.longitude, - this.meterZoneGPS, - this.isBeacon, - this.beaconId, - this.source_, - }); - - String? id; - - String? label; - - List? title; - - List? description; - - String? imageId; - - String? imageSource; - - String? configurationId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSubSection; - - String? parentId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - SectionType? type; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - int? order; - - String? instanceId; - - String? latitude; - - String? longitude; - - int? meterZoneGPS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isBeacon; - - int? beaconId; - - String? source_; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is WebDTO && - other.id == id && - other.label == label && - _deepEquality.equals(other.title, title) && - _deepEquality.equals(other.description, description) && - other.imageId == imageId && - other.imageSource == imageSource && - other.configurationId == configurationId && - other.isSubSection == isSubSection && - other.parentId == parentId && - other.type == type && - other.dateCreation == dateCreation && - other.order == order && - other.instanceId == instanceId && - other.latitude == latitude && - other.longitude == longitude && - other.meterZoneGPS == meterZoneGPS && - other.isBeacon == isBeacon && - other.beaconId == beaconId && - other.source_ == source_; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (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) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (order == null ? 0 : order!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (meterZoneGPS == null ? 0 : meterZoneGPS!.hashCode) + - (isBeacon == null ? 0 : isBeacon!.hashCode) + - (beaconId == null ? 0 : beaconId!.hashCode) + - (source_ == null ? 0 : source_!.hashCode); - - @override - String toString() => - 'WebDTO[id=$id, label=$label, title=$title, description=$description, imageId=$imageId, imageSource=$imageSource, configurationId=$configurationId, isSubSection=$isSubSection, parentId=$parentId, type=$type, dateCreation=$dateCreation, order=$order, instanceId=$instanceId, latitude=$latitude, longitude=$longitude, meterZoneGPS=$meterZoneGPS, isBeacon=$isBeacon, beaconId=$beaconId, source_=$source_]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - json[r'description'] = null; - } - if (this.imageId != null) { - json[r'imageId'] = this.imageId; - } else { - json[r'imageId'] = null; - } - if (this.imageSource != null) { - json[r'imageSource'] = this.imageSource; - } else { - json[r'imageSource'] = null; - } - if (this.configurationId != null) { - json[r'configurationId'] = this.configurationId; - } else { - json[r'configurationId'] = null; - } - if (this.isSubSection != null) { - json[r'isSubSection'] = this.isSubSection; - } else { - json[r'isSubSection'] = null; - } - if (this.parentId != null) { - json[r'parentId'] = this.parentId; - } else { - json[r'parentId'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.order != null) { - json[r'order'] = this.order; - } else { - json[r'order'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.latitude != null) { - json[r'latitude'] = this.latitude; - } else { - json[r'latitude'] = null; - } - if (this.longitude != null) { - json[r'longitude'] = this.longitude; - } else { - json[r'longitude'] = null; - } - if (this.meterZoneGPS != null) { - json[r'meterZoneGPS'] = this.meterZoneGPS; - } else { - json[r'meterZoneGPS'] = null; - } - if (this.isBeacon != null) { - json[r'isBeacon'] = this.isBeacon; - } else { - json[r'isBeacon'] = null; - } - if (this.beaconId != null) { - json[r'beaconId'] = this.beaconId; - } else { - json[r'beaconId'] = null; - } - if (this.source_ != null) { - json[r'source'] = this.source_; - } else { - json[r'source'] = null; - } - return json; - } - - /// Returns a new [WebDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static WebDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "WebDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "WebDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return WebDTO( - id: mapValueOfType(json, r'id'), - label: mapValueOfType(json, r'label'), - title: TranslationDTO.listFromJson(json[r'title']), - description: TranslationDTO.listFromJson(json[r'description']), - imageId: mapValueOfType(json, r'imageId'), - imageSource: mapValueOfType(json, r'imageSource'), - configurationId: mapValueOfType(json, r'configurationId'), - isSubSection: mapValueOfType(json, r'isSubSection'), - parentId: mapValueOfType(json, r'parentId'), - type: SectionType.fromJson(json[r'type']), - dateCreation: mapDateTime(json, r'dateCreation', r''), - order: mapValueOfType(json, r'order'), - instanceId: mapValueOfType(json, r'instanceId'), - latitude: mapValueOfType(json, r'latitude'), - longitude: mapValueOfType(json, r'longitude'), - meterZoneGPS: mapValueOfType(json, r'meterZoneGPS'), - isBeacon: mapValueOfType(json, r'isBeacon'), - beaconId: mapValueOfType(json, r'beaconId'), - source_: mapValueOfType(json, r'source'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = WebDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = WebDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of WebDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = WebDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/pubspec.yaml b/manager_api_new/pubspec.yaml deleted file mode 100644 index 1da4fa4..0000000 --- a/manager_api_new/pubspec.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# -# AUTO-GENERATED FILE, DO NOT MODIFY! -# - -name: 'manager_api_new' -version: '1.0.0' -description: 'OpenAPI API client' -homepage: 'homepage' -environment: - sdk: '>=2.12.0 <4.0.0' -dependencies: - collection: '>=1.17.0 <2.0.0' - http: '>=0.13.0 <2.0.0' - intl: any - meta: '>=1.1.8 <2.0.0' -dev_dependencies: - test: '>=1.21.6 <1.22.0' diff --git a/manager_api_new/test/agenda_dto_all_of_agenda_map_provider_test.dart b/manager_api_new/test/agenda_dto_all_of_agenda_map_provider_test.dart deleted file mode 100644 index a37da45..0000000 --- a/manager_api_new/test/agenda_dto_all_of_agenda_map_provider_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for AgendaDTOAllOfAgendaMapProvider -void main() { - // final instance = AgendaDTOAllOfAgendaMapProvider(); - - group('test AgendaDTOAllOfAgendaMapProvider', () {}); -} diff --git a/manager_api_new/test/agenda_dto_test.dart b/manager_api_new/test/agenda_dto_test.dart deleted file mode 100644 index 21a544e..0000000 --- a/manager_api_new/test/agenda_dto_test.dart +++ /dev/null @@ -1,24 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for AgendaDTO -void main() { - // final instance = AgendaDTO(); - - group('test AgendaDTO', () { - // String resourceId - test('to test the property `resourceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/article_dto_test.dart b/manager_api_new/test/article_dto_test.dart deleted file mode 100644 index a8dcca3..0000000 --- a/manager_api_new/test/article_dto_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for ArticleDTO -void main() { - // final instance = ArticleDTO(); - - group('test ArticleDTO', () { - // List content (default value: const []) - test('to test the property `content`', () async { - // TODO - }); - - // String qrCode - test('to test the property `qrCode`', () async { - // TODO - }); - - // bool isContentTop - test('to test the property `isContentTop`', () async { - // TODO - }); - - // List audioIds (default value: const []) - test('to test the property `audioIds`', () async { - // TODO - }); - - // bool isReadAudioAuto - test('to test the property `isReadAudioAuto`', () async { - // TODO - }); - - // List images (default value: const []) - test('to test the property `images`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/authentication_api_test.dart b/manager_api_new/test/authentication_api_test.dart deleted file mode 100644 index 0d16e2a..0000000 --- a/manager_api_new/test/authentication_api_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/categorie_dto_test.dart b/manager_api_new/test/categorie_dto_test.dart deleted file mode 100644 index 43d8523..0000000 --- a/manager_api_new/test/categorie_dto_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for CategorieDTO -void main() { - // final instance = CategorieDTO(); - - group('test CategorieDTO', () { - // String name - test('to test the property `name`', () async { - // TODO - }); - - // String icon - test('to test the property `icon`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/configuration_api_test.dart b/manager_api_new/test/configuration_api_test.dart deleted file mode 100644 index 0146ce3..0000000 --- a/manager_api_new/test/configuration_api_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 configurationExport(String id) async - test('test configurationExport', () async { - // TODO - }); - - //Future> configurationGet({ String instanceId }) async - test('test configurationGet', () async { - // TODO - }); - - //Future configurationGetDetail(String id) async - test('test configurationGetDetail', () async { - // TODO - }); - - //Future configurationImport(ExportConfigurationDTO exportConfigurationDTO) async - test('test configurationImport', () async { - // TODO - }); - - //Future configurationUpdate(ConfigurationDTO configurationDTO) async - test('test configurationUpdate', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/configuration_dto_test.dart b/manager_api_new/test/configuration_dto_test.dart deleted file mode 100644 index 7c2cbe4..0000000 --- a/manager_api_new/test/configuration_dto_test.dart +++ /dev/null @@ -1,84 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - - // List title (default value: const []) - test('to test the property `title`', () async { - // TODO - }); - - // String imageId - test('to test the property `imageId`', () async { - // TODO - }); - - // String imageSource - test('to test the property `imageSource`', () 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 - }); - - // bool isMobile - test('to test the property `isMobile`', () async { - // TODO - }); - - // bool isTablet - test('to test the property `isTablet`', () async { - // TODO - }); - - // bool isOffline - test('to test the property `isOffline`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/content_dto_resource_test.dart b/manager_api_new/test/content_dto_resource_test.dart deleted file mode 100644 index 1a1000c..0000000 --- a/manager_api_new/test/content_dto_resource_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for ContentDTOResource -void main() { - // final instance = ContentDTOResource(); - - group('test ContentDTOResource', () { - // 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 url - test('to test the property `url`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/content_dto_test.dart b/manager_api_new/test/content_dto_test.dart deleted file mode 100644 index 41ccfb6..0000000 --- a/manager_api_new/test/content_dto_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for ContentDTO -void main() { - // final instance = ContentDTO(); - - group('test ContentDTO', () { - // 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 resourceUrl - test('to test the property `resourceUrl`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - // ResourceType resourceType - test('to test the property `resourceType`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/content_geo_point_test.dart b/manager_api_new/test/content_geo_point_test.dart deleted file mode 100644 index 976901c..0000000 --- a/manager_api_new/test/content_geo_point_test.dart +++ /dev/null @@ -1,39 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for ContentGeoPoint -void main() { - // final instance = ContentGeoPoint(); - - group('test ContentGeoPoint', () { - // String resourceId - test('to test the property `resourceId`', () async { - // TODO - }); - - // ResourceType resourceType - test('to test the property `resourceType`', () async { - // TODO - }); - - // String resourceUrl - test('to test the property `resourceUrl`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/device_api_test.dart b/manager_api_new/test/device_api_test.dart deleted file mode 100644 index 8cf1066..0000000 --- a/manager_api_new/test/device_api_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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({ String instanceId }) 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_new/test/device_detail_dto_all_of_test.dart b/manager_api_new/test/device_detail_dto_all_of_test.dart deleted file mode 100644 index 0fb3beb..0000000 --- a/manager_api_new/test/device_detail_dto_all_of_test.dart +++ /dev/null @@ -1,39 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/device_detail_dto_test.dart b/manager_api_new/test/device_detail_dto_test.dart deleted file mode 100644 index 20ff017..0000000 --- a/manager_api_new/test/device_detail_dto_test.dart +++ /dev/null @@ -1,94 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 identifier - test('to test the property `identifier`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - // String ipAddressWLAN - test('to test the property `ipAddressWLAN`', () async { - // TODO - }); - - // String ipAddressETH - test('to test the property `ipAddressETH`', () 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 - }); - - // DateTime dateUpdate - test('to test the property `dateUpdate`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () 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_new/test/device_dto_test.dart b/manager_api_new/test/device_dto_test.dart deleted file mode 100644 index d854620..0000000 --- a/manager_api_new/test/device_dto_test.dart +++ /dev/null @@ -1,74 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 identifier - test('to test the property `identifier`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - // String ipAddressWLAN - test('to test the property `ipAddressWLAN`', () async { - // TODO - }); - - // String ipAddressETH - test('to test the property `ipAddressETH`', () 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 - }); - - // DateTime dateUpdate - test('to test the property `dateUpdate`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/export_configuration_dto_all_of_test.dart b/manager_api_new/test/export_configuration_dto_all_of_test.dart deleted file mode 100644 index f80ca79..0000000 --- a/manager_api_new/test/export_configuration_dto_all_of_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/export_configuration_dto_test.dart b/manager_api_new/test/export_configuration_dto_test.dart deleted file mode 100644 index ce0a09c..0000000 --- a/manager_api_new/test/export_configuration_dto_test.dart +++ /dev/null @@ -1,94 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - - // List title (default value: const []) - test('to test the property `title`', () async { - // TODO - }); - - // String imageId - test('to test the property `imageId`', () async { - // TODO - }); - - // String imageSource - test('to test the property `imageSource`', () 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 - }); - - // bool isMobile - test('to test the property `isMobile`', () async { - // TODO - }); - - // bool isTablet - test('to test the property `isTablet`', () async { - // TODO - }); - - // bool isOffline - test('to test the property `isOffline`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () 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_new/test/geo_point_dto_categorie_test.dart b/manager_api_new/test/geo_point_dto_categorie_test.dart deleted file mode 100644 index a1c9d4b..0000000 --- a/manager_api_new/test/geo_point_dto_categorie_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for GeoPointDTOCategorie -void main() { - // final instance = GeoPointDTOCategorie(); - - group('test GeoPointDTOCategorie', () { - // String name - test('to test the property `name`', () async { - // TODO - }); - - // String icon - test('to test the property `icon`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/geo_point_dto_test.dart b/manager_api_new/test/geo_point_dto_test.dart deleted file mode 100644 index 36a4653..0000000 --- a/manager_api_new/test/geo_point_dto_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/geo_point_section_map_test.dart b/manager_api_new/test/geo_point_section_map_test.dart deleted file mode 100644 index 4f80ed1..0000000 --- a/manager_api_new/test/geo_point_section_map_test.dart +++ /dev/null @@ -1,159 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for GeoPointSectionMap -void main() { - // final instance = GeoPointSectionMap(); - - group('test GeoPointSectionMap', () { - // 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 - }); - - // String configurationId - test('to test the property `configurationId`', () async { - // TODO - }); - - // SectionType type - test('to test the property `type`', () async { - // TODO - }); - - // bool isSubSection - test('to test the property `isSubSection`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // List mapCategories (default value: const []) - test('to test the property `mapCategories`', () async { - // TODO - }); - - // List description (default value: const []) - test('to test the property `description`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - // String imageId - test('to test the property `imageId`', () async { - // TODO - }); - - // String imageSource - test('to test the property `imageSource`', () async { - // TODO - }); - - // String parentId - test('to test the property `parentId`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // bool isBeacon - test('to test the property `isBeacon`', () async { - // TODO - }); - - // int beaconId - test('to test the property `beaconId`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - - // String longitude - test('to test the property `longitude`', () async { - // TODO - }); - - // int meterZoneGPS - test('to test the property `meterZoneGPS`', () async { - // TODO - }); - - // int mapZoom - test('to test the property `mapZoom`', () async { - // TODO - }); - - // SectionMapAllOfMapMapType mapMapType - test('to test the property `mapMapType`', () async { - // TODO - }); - - // SectionMapAllOfMapTypeMapbox mapTypeMapbox - test('to test the property `mapTypeMapbox`', () async { - // TODO - }); - - // SectionMapAllOfMapMapProvider mapMapProvider - test('to test the property `mapMapProvider`', () async { - // TODO - }); - - // List mapPoints (default value: const []) - test('to test the property `mapPoints`', () async { - // TODO - }); - - // String mapResourceId - test('to test the property `mapResourceId`', () async { - // TODO - }); - - // SectionMapAllOfMapResource mapResource - test('to test the property `mapResource`', () async { - // TODO - }); - - // String mapCenterLatitude - test('to test the property `mapCenterLatitude`', () async { - // TODO - }); - - // String mapCenterLongitude - test('to test the property `mapCenterLongitude`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/geo_point_test.dart b/manager_api_new/test/geo_point_test.dart deleted file mode 100644 index 27900b9..0000000 --- a/manager_api_new/test/geo_point_test.dart +++ /dev/null @@ -1,89 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for GeoPoint -void main() { - // final instance = GeoPoint(); - - group('test GeoPoint', () { - // 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 contents (default value: const []) - test('to test the property `contents`', () async { - // TODO - }); - - // List schedules (default value: const []) - test('to test the property `schedules`', () async { - // TODO - }); - - // List prices (default value: const []) - test('to test the property `prices`', () async { - // TODO - }); - - // List phone (default value: const []) - test('to test the property `phone`', () async { - // TODO - }); - - // List email (default value: const []) - test('to test the property `email`', () async { - // TODO - }); - - // List site (default value: const []) - test('to test the property `site`', () async { - // TODO - }); - - // int categorieId - test('to test the property `categorieId`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - - // String longitude - test('to test the property `longitude`', () async { - // TODO - }); - - // String imageResourceId - test('to test the property `imageResourceId`', () async { - // TODO - }); - - // String imageUrl - test('to test the property `imageUrl`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/image_dto_test.dart b/manager_api_new/test/image_dto_test.dart deleted file mode 100644 index b1eb80c..0000000 --- a/manager_api_new/test/image_dto_test.dart +++ /dev/null @@ -1,44 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/image_geo_point_test.dart b/manager_api_new/test/image_geo_point_test.dart deleted file mode 100644 index 43b3852..0000000 --- a/manager_api_new/test/image_geo_point_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/instance_api_test.dart b/manager_api_new/test/instance_api_test.dart deleted file mode 100644 index 78bdf14..0000000 --- a/manager_api_new/test/instance_api_test.dart +++ /dev/null @@ -1,44 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -/// tests for InstanceApi -void main() { - // final instance = InstanceApi(); - - group('tests for InstanceApi', () { - //Future instanceCreateInstance(Instance instance) async - test('test instanceCreateInstance', () async { - // TODO - }); - - //Future instanceDeleteInstance(String id) async - test('test instanceDeleteInstance', () async { - // TODO - }); - - //Future> instanceGet() async - test('test instanceGet', () async { - // TODO - }); - - //Future instanceGetDetail(String id) async - test('test instanceGetDetail', () async { - // TODO - }); - - //Future instanceUpdateinstance(Instance instance) async - test('test instanceUpdateinstance', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/instance_dto_test.dart b/manager_api_new/test/instance_dto_test.dart deleted file mode 100644 index 745777f..0000000 --- a/manager_api_new/test/instance_dto_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for InstanceDTO -void main() { - // final instance = InstanceDTO(); - - group('test InstanceDTO', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/instance_test.dart b/manager_api_new/test/instance_test.dart deleted file mode 100644 index 8a78243..0000000 --- a/manager_api_new/test/instance_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for Instance -void main() { - // final instance = Instance(); - - group('test Instance', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/level_dto_test.dart b/manager_api_new/test/level_dto_test.dart deleted file mode 100644 index bca1bd3..0000000 --- a/manager_api_new/test/level_dto_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/login_dto_test.dart b/manager_api_new/test/login_dto_test.dart deleted file mode 100644 index 5b39eaf..0000000 --- a/manager_api_new/test/login_dto_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/map_dto_all_of_map_provider_test.dart b/manager_api_new/test/map_dto_all_of_map_provider_test.dart deleted file mode 100644 index 499cd8d..0000000 --- a/manager_api_new/test/map_dto_all_of_map_provider_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTOAllOfMapProvider -void main() { - // final instance = MapDTOAllOfMapProvider(); - - group('test MapDTOAllOfMapProvider', () {}); -} diff --git a/manager_api_new/test/map_dto_all_of_map_type_mapbox_test.dart b/manager_api_new/test/map_dto_all_of_map_type_mapbox_test.dart deleted file mode 100644 index 54c03d4..0000000 --- a/manager_api_new/test/map_dto_all_of_map_type_mapbox_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTOAllOfMapTypeMapbox -void main() { - // final instance = MapDTOAllOfMapTypeMapbox(); - - group('test MapDTOAllOfMapTypeMapbox', () {}); -} diff --git a/manager_api_new/test/map_dto_all_of_map_type_test.dart b/manager_api_new/test/map_dto_all_of_map_type_test.dart deleted file mode 100644 index 9384293..0000000 --- a/manager_api_new/test/map_dto_all_of_map_type_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTOAllOfMapType -void main() { - // final instance = MapDTOAllOfMapType(); - - group('test MapDTOAllOfMapType', () {}); -} diff --git a/manager_api_new/test/map_dto_map_provider_test.dart b/manager_api_new/test/map_dto_map_provider_test.dart deleted file mode 100644 index fa2f46d..0000000 --- a/manager_api_new/test/map_dto_map_provider_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTOMapProvider -void main() { - // final instance = MapDTOMapProvider(); - - group('test MapDTOMapProvider', () {}); -} diff --git a/manager_api_new/test/map_dto_map_type_mapbox_test.dart b/manager_api_new/test/map_dto_map_type_mapbox_test.dart deleted file mode 100644 index 8d50d5d..0000000 --- a/manager_api_new/test/map_dto_map_type_mapbox_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTOMapTypeMapbox -void main() { - // final instance = MapDTOMapTypeMapbox(); - - group('test MapDTOMapTypeMapbox', () {}); -} diff --git a/manager_api_new/test/map_dto_map_type_test.dart b/manager_api_new/test/map_dto_map_type_test.dart deleted file mode 100644 index f6b4cc3..0000000 --- a/manager_api_new/test/map_dto_map_type_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTOMapType -void main() { - // final instance = MapDTOMapType(); - - group('test MapDTOMapType', () {}); -} diff --git a/manager_api_new/test/map_dto_test.dart b/manager_api_new/test/map_dto_test.dart deleted file mode 100644 index 46714d5..0000000 --- a/manager_api_new/test/map_dto_test.dart +++ /dev/null @@ -1,44 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - - // MapTypeApp 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_new/test/map_provider_test.dart b/manager_api_new/test/map_provider_test.dart deleted file mode 100644 index 809db34..0000000 --- a/manager_api_new/test/map_provider_test.dart +++ /dev/null @@ -1,17 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapProvider -void main() { - group('test MapProvider', () {}); -} diff --git a/manager_api_new/test/map_type_app_test.dart b/manager_api_new/test/map_type_app_test.dart deleted file mode 100644 index b3cf91b..0000000 --- a/manager_api_new/test/map_type_app_test.dart +++ /dev/null @@ -1,17 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapTypeApp -void main() { - group('test MapTypeApp', () {}); -} diff --git a/manager_api_new/test/map_type_map_box_test.dart b/manager_api_new/test/map_type_map_box_test.dart deleted file mode 100644 index f5e68b5..0000000 --- a/manager_api_new/test/map_type_map_box_test.dart +++ /dev/null @@ -1,17 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapTypeMapBox -void main() { - group('test MapTypeMapBox', () {}); -} diff --git a/manager_api_new/test/menu_dto_test.dart b/manager_api_new/test/menu_dto_test.dart deleted file mode 100644 index d056934..0000000 --- a/manager_api_new/test/menu_dto_test.dart +++ /dev/null @@ -1,24 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/ordered_translation_and_resource_dto_test.dart b/manager_api_new/test/ordered_translation_and_resource_dto_test.dart deleted file mode 100644 index e69f718..0000000 --- a/manager_api_new/test/ordered_translation_and_resource_dto_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for OrderedTranslationAndResourceDTO -void main() { - // final instance = OrderedTranslationAndResourceDTO(); - - group('test OrderedTranslationAndResourceDTO', () { - // List translationAndResourceDTOs (default value: const []) - test('to test the property `translationAndResourceDTOs`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/pdf_dto_test.dart b/manager_api_new/test/pdf_dto_test.dart deleted file mode 100644 index 8bb540e..0000000 --- a/manager_api_new/test/pdf_dto_test.dart +++ /dev/null @@ -1,24 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for PdfDTO -void main() { - // final instance = PdfDTO(); - - group('test PdfDTO', () { - // String resourceId - test('to test the property `resourceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/pdf_file_dto_test.dart b/manager_api_new/test/pdf_file_dto_test.dart deleted file mode 100644 index 393189a..0000000 --- a/manager_api_new/test/pdf_file_dto_test.dart +++ /dev/null @@ -1,24 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for PDFFileDTO -void main() { - // final instance = PDFFileDTO(); - - group('test PDFFileDTO', () { - // List pdfFilesAndTitles (default value: const []) - test('to test the property `pdfFilesAndTitles`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/player_message_dto_test.dart b/manager_api_new/test/player_message_dto_test.dart deleted file mode 100644 index de37e33..0000000 --- a/manager_api_new/test/player_message_dto_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - - // bool isDeleted - test('to test the property `isDeleted`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/puzzle_dto_all_of_puzzle_image_test.dart b/manager_api_new/test/puzzle_dto_all_of_puzzle_image_test.dart deleted file mode 100644 index 872049b..0000000 --- a/manager_api_new/test/puzzle_dto_all_of_puzzle_image_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for PuzzleDTOAllOfPuzzleImage -void main() { - // final instance = PuzzleDTOAllOfPuzzleImage(); - - group('test PuzzleDTOAllOfPuzzleImage', () { - // 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 url - test('to test the property `url`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/puzzle_dto_image_test.dart b/manager_api_new/test/puzzle_dto_image_test.dart deleted file mode 100644 index 7aacc6e..0000000 --- a/manager_api_new/test/puzzle_dto_image_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for PuzzleDTOImage -void main() { - // final instance = PuzzleDTOImage(); - - group('test PuzzleDTOImage', () { - // 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 - }); - - // ResourceType type - test('to test the property `type`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/puzzle_dto_test.dart b/manager_api_new/test/puzzle_dto_test.dart deleted file mode 100644 index 7a5948d..0000000 --- a/manager_api_new/test/puzzle_dto_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for PuzzleDTO -void main() { - // final instance = PuzzleDTO(); - - group('test PuzzleDTO', () { - // List messageDebut (default value: const []) - test('to test the property `messageDebut`', () async { - // TODO - }); - - // List messageFin (default value: const []) - test('to test the property `messageFin`', () async { - // TODO - }); - - // PuzzleDTOImage image - test('to test the property `image`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/question_dto_image_background_resource_type_test.dart b/manager_api_new/test/question_dto_image_background_resource_type_test.dart deleted file mode 100644 index 14b7fe0..0000000 --- a/manager_api_new/test/question_dto_image_background_resource_type_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for QuestionDTOImageBackgroundResourceType -void main() { - // final instance = QuestionDTOImageBackgroundResourceType(); - - group('test QuestionDTOImageBackgroundResourceType', () {}); -} diff --git a/manager_api_new/test/question_dto_test.dart b/manager_api_new/test/question_dto_test.dart deleted file mode 100644 index 2c8e074..0000000 --- a/manager_api_new/test/question_dto_test.dart +++ /dev/null @@ -1,44 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/quiz_dto_test.dart b/manager_api_new/test/quiz_dto_test.dart deleted file mode 100644 index fcf449e..0000000 --- a/manager_api_new/test/quiz_dto_test.dart +++ /dev/null @@ -1,134 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for QuizDTO -void main() { - // final instance = QuizDTO(); - - group('test QuizDTO', () { - // 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 - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - - // String longitude - test('to test the property `longitude`', () async { - // TODO - }); - - // int meterZoneGPS - test('to test the property `meterZoneGPS`', () async { - // TODO - }); - - // bool isBeacon - test('to test the property `isBeacon`', () async { - // TODO - }); - - // int beaconId - test('to test the property `beaconId`', () async { - // TODO - }); - - // List questions (default value: const []) - test('to test the property `questions`', () async { - // TODO - }); - - // List badLevel (default value: const []) - test('to test the property `badLevel`', () async { - // TODO - }); - - // List mediumLevel (default value: const []) - test('to test the property `mediumLevel`', () async { - // TODO - }); - - // List goodLevel (default value: const []) - test('to test the property `goodLevel`', () async { - // TODO - }); - - // List greatLevel (default value: const []) - test('to test the property `greatLevel`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/quiz_question_resource_test.dart b/manager_api_new/test/quiz_question_resource_test.dart deleted file mode 100644 index daef4a9..0000000 --- a/manager_api_new/test/quiz_question_resource_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for QuizQuestionResource -void main() { - // final instance = QuizQuestionResource(); - - group('test QuizQuestionResource', () { - // 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 instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String url - test('to test the property `url`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/quiz_question_section_quiz_test.dart b/manager_api_new/test/quiz_question_section_quiz_test.dart deleted file mode 100644 index 5f47a87..0000000 --- a/manager_api_new/test/quiz_question_section_quiz_test.dart +++ /dev/null @@ -1,134 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for QuizQuestionSectionQuiz -void main() { - // final instance = QuizQuestionSectionQuiz(); - - group('test QuizQuestionSectionQuiz', () { - // 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 - }); - - // String configurationId - test('to test the property `configurationId`', () async { - // TODO - }); - - // SectionType type - test('to test the property `type`', () async { - // TODO - }); - - // bool isSubSection - test('to test the property `isSubSection`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // List quizQuestions (default value: const []) - test('to test the property `quizQuestions`', () async { - // TODO - }); - - // List quizBadLevel (default value: const []) - test('to test the property `quizBadLevel`', () async { - // TODO - }); - - // List quizMediumLevel (default value: const []) - test('to test the property `quizMediumLevel`', () async { - // TODO - }); - - // List quizGoodLevel (default value: const []) - test('to test the property `quizGoodLevel`', () async { - // TODO - }); - - // List quizGreatLevel (default value: const []) - test('to test the property `quizGreatLevel`', () async { - // TODO - }); - - // List description (default value: const []) - test('to test the property `description`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - // String imageId - test('to test the property `imageId`', () async { - // TODO - }); - - // String imageSource - test('to test the property `imageSource`', () async { - // TODO - }); - - // String parentId - test('to test the property `parentId`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // bool isBeacon - test('to test the property `isBeacon`', () async { - // TODO - }); - - // int beaconId - test('to test the property `beaconId`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - - // String longitude - test('to test the property `longitude`', () async { - // TODO - }); - - // int meterZoneGPS - test('to test the property `meterZoneGPS`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/quiz_question_test.dart b/manager_api_new/test/quiz_question_test.dart deleted file mode 100644 index df28dd9..0000000 --- a/manager_api_new/test/quiz_question_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for QuizQuestion -void main() { - // final instance = QuizQuestion(); - - group('test QuizQuestion', () { - // int id - test('to test the property `id`', () async { - // TODO - }); - - // 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 - }); - - // QuizQuestionResource resource - test('to test the property `resource`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/quizz_dto_bad_level_test.dart b/manager_api_new/test/quizz_dto_bad_level_test.dart deleted file mode 100644 index 46b452c..0000000 --- a/manager_api_new/test/quizz_dto_bad_level_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for QuizzDTOBadLevel -void main() { - // final instance = QuizzDTOBadLevel(); - - group('test QuizzDTOBadLevel', () { - // 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_new/test/quizz_dto_test.dart b/manager_api_new/test/quizz_dto_test.dart deleted file mode 100644 index 765440b..0000000 --- a/manager_api_new/test/quizz_dto_test.dart +++ /dev/null @@ -1,44 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - - // QuizzDTOBadLevel badLevel - test('to test the property `badLevel`', () async { - // TODO - }); - - // QuizzDTOBadLevel mediumLevel - test('to test the property `mediumLevel`', () async { - // TODO - }); - - // QuizzDTOBadLevel goodLevel - test('to test the property `goodLevel`', () async { - // TODO - }); - - // QuizzDTOBadLevel greatLevel - test('to test the property `greatLevel`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/resource_api_test.dart b/manager_api_new/test/resource_api_test.dart deleted file mode 100644 index 64baaf7..0000000 --- a/manager_api_new/test/resource_api_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -/// tests for ResourceApi -void main() { - // final instance = ResourceApi(); - - group('tests for ResourceApi', () { - //Future resourceCreate(ResourceDTO resourceDTO) async - test('test resourceCreate', () async { - // TODO - }); - - //Future resourceDelete(String id) async - test('test resourceDelete', () async { - // TODO - }); - - //Future> resourceGet({ String instanceId, List types }) 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(ResourceDTO resourceDTO) async - test('test resourceUpdate', () async { - // TODO - }); - - //Future resourceUpload({ String label, String type, String instanceId }) async - test('test resourceUpload', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/resource_dto_test.dart b/manager_api_new/test/resource_dto_test.dart deleted file mode 100644 index 18ba5df..0000000 --- a/manager_api_new/test/resource_dto_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/resource_test.dart b/manager_api_new/test/resource_test.dart deleted file mode 100644 index f85fd02..0000000 --- a/manager_api_new/test/resource_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for Resource -void main() { - // final instance = Resource(); - - group('test Resource', () { - // 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 instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String url - test('to test the property `url`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/resource_type_test.dart b/manager_api_new/test/resource_type_test.dart deleted file mode 100644 index db9ec15..0000000 --- a/manager_api_new/test/resource_type_test.dart +++ /dev/null @@ -1,17 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for ResourceType -void main() { - group('test ResourceType', () {}); -} diff --git a/manager_api_new/test/response_dto_test.dart b/manager_api_new/test/response_dto_test.dart deleted file mode 100644 index 3459297..0000000 --- a/manager_api_new/test/response_dto_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/section_api_test.dart b/manager_api_new/test/section_api_test.dart deleted file mode 100644 index 71623d5..0000000 --- a/manager_api_new/test/section_api_test.dart +++ /dev/null @@ -1,104 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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({ String instanceId }) async - test('test sectionGet', () async { - // TODO - }); - - //Future> sectionGetAllSectionSubSections(String id) async - test('test sectionGetAllSectionSubSections', () async { - // TODO - }); - - //Future sectionGetArticleDTO() async - test('test sectionGetArticleDTO', () 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 sectionGetQuizzDTO() async - test('test sectionGetQuizzDTO', () 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 sectionPlayerMessageDTO() async - test('test sectionPlayerMessageDTO', () 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_new/test/section_dto_test.dart b/manager_api_new/test/section_dto_test.dart deleted file mode 100644 index 8400519..0000000 --- a/manager_api_new/test/section_dto_test.dart +++ /dev/null @@ -1,89 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/section_map_all_of_map_map_provider_test.dart b/manager_api_new/test/section_map_all_of_map_map_provider_test.dart deleted file mode 100644 index ad07407..0000000 --- a/manager_api_new/test/section_map_all_of_map_map_provider_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionMapAllOfMapMapProvider -void main() { - // final instance = SectionMapAllOfMapMapProvider(); - - group('test SectionMapAllOfMapMapProvider', () {}); -} diff --git a/manager_api_new/test/section_map_all_of_map_map_type_test.dart b/manager_api_new/test/section_map_all_of_map_map_type_test.dart deleted file mode 100644 index da26fa4..0000000 --- a/manager_api_new/test/section_map_all_of_map_map_type_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionMapAllOfMapMapType -void main() { - // final instance = SectionMapAllOfMapMapType(); - - group('test SectionMapAllOfMapMapType', () {}); -} diff --git a/manager_api_new/test/section_map_all_of_map_resource_test.dart b/manager_api_new/test/section_map_all_of_map_resource_test.dart deleted file mode 100644 index 20067cb..0000000 --- a/manager_api_new/test/section_map_all_of_map_resource_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionMapAllOfMapResource -void main() { - // final instance = SectionMapAllOfMapResource(); - - group('test SectionMapAllOfMapResource', () { - // 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 instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String url - test('to test the property `url`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/section_map_all_of_map_type_mapbox_test.dart b/manager_api_new/test/section_map_all_of_map_type_mapbox_test.dart deleted file mode 100644 index f715967..0000000 --- a/manager_api_new/test/section_map_all_of_map_type_mapbox_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionMapAllOfMapTypeMapbox -void main() { - // final instance = SectionMapAllOfMapTypeMapbox(); - - group('test SectionMapAllOfMapTypeMapbox', () {}); -} diff --git a/manager_api_new/test/section_map_api_test.dart b/manager_api_new/test/section_map_api_test.dart deleted file mode 100644 index b7de8ed..0000000 --- a/manager_api_new/test/section_map_api_test.dart +++ /dev/null @@ -1,39 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -/// tests for SectionMapApi -void main() { - // final instance = SectionMapApi(); - - group('tests for SectionMapApi', () { - //Future sectionMapCreate(String sectionId, GeoPointDTO geoPointDTO) async - test('test sectionMapCreate', () async { - // TODO - }); - - //Future sectionMapDelete(int geoPointId) async - test('test sectionMapDelete', () async { - // TODO - }); - - //Future> sectionMapGetAllGeoPointsFromSection(String sectionId) async - test('test sectionMapGetAllGeoPointsFromSection', () async { - // TODO - }); - - //Future sectionMapUpdate(GeoPointDTO geoPointDTO) async - test('test sectionMapUpdate', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/section_map_test.dart b/manager_api_new/test/section_map_test.dart deleted file mode 100644 index 72f7812..0000000 --- a/manager_api_new/test/section_map_test.dart +++ /dev/null @@ -1,159 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionMap -void main() { - // final instance = SectionMap(); - - group('test SectionMap', () { - // 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 - }); - - // String configurationId - test('to test the property `configurationId`', () async { - // TODO - }); - - // SectionType type - test('to test the property `type`', () async { - // TODO - }); - - // bool isSubSection - test('to test the property `isSubSection`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // List mapCategories (default value: const []) - test('to test the property `mapCategories`', () async { - // TODO - }); - - // List description (default value: const []) - test('to test the property `description`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - // String imageId - test('to test the property `imageId`', () async { - // TODO - }); - - // String imageSource - test('to test the property `imageSource`', () async { - // TODO - }); - - // String parentId - test('to test the property `parentId`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // bool isBeacon - test('to test the property `isBeacon`', () async { - // TODO - }); - - // int beaconId - test('to test the property `beaconId`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - - // String longitude - test('to test the property `longitude`', () async { - // TODO - }); - - // int meterZoneGPS - test('to test the property `meterZoneGPS`', () async { - // TODO - }); - - // int mapZoom - test('to test the property `mapZoom`', () async { - // TODO - }); - - // SectionMapAllOfMapMapType mapMapType - test('to test the property `mapMapType`', () async { - // TODO - }); - - // SectionMapAllOfMapTypeMapbox mapTypeMapbox - test('to test the property `mapTypeMapbox`', () async { - // TODO - }); - - // SectionMapAllOfMapMapProvider mapMapProvider - test('to test the property `mapMapProvider`', () async { - // TODO - }); - - // List mapPoints (default value: const []) - test('to test the property `mapPoints`', () async { - // TODO - }); - - // String mapResourceId - test('to test the property `mapResourceId`', () async { - // TODO - }); - - // SectionMapAllOfMapResource mapResource - test('to test the property `mapResource`', () async { - // TODO - }); - - // String mapCenterLatitude - test('to test the property `mapCenterLatitude`', () async { - // TODO - }); - - // String mapCenterLongitude - test('to test the property `mapCenterLongitude`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/section_quiz_api_test.dart b/manager_api_new/test/section_quiz_api_test.dart deleted file mode 100644 index d14cf12..0000000 --- a/manager_api_new/test/section_quiz_api_test.dart +++ /dev/null @@ -1,39 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -/// tests for SectionQuizApi -void main() { - // final instance = SectionQuizApi(); - - group('tests for SectionQuizApi', () { - //Future sectionQuizCreate(String sectionId, QuestionDTO questionDTO) async - test('test sectionQuizCreate', () async { - // TODO - }); - - //Future sectionQuizDelete(int quizQuestionId) async - test('test sectionQuizDelete', () async { - // TODO - }); - - //Future> sectionQuizGetAllQuizQuestionFromSection(String sectionId) async - test('test sectionQuizGetAllQuizQuestionFromSection', () async { - // TODO - }); - - //Future sectionQuizUpdate(QuestionDTO questionDTO) async - test('test sectionQuizUpdate', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/section_quiz_test.dart b/manager_api_new/test/section_quiz_test.dart deleted file mode 100644 index 4712839..0000000 --- a/manager_api_new/test/section_quiz_test.dart +++ /dev/null @@ -1,134 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionQuiz -void main() { - // final instance = SectionQuiz(); - - group('test SectionQuiz', () { - // 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 - }); - - // String configurationId - test('to test the property `configurationId`', () async { - // TODO - }); - - // SectionType type - test('to test the property `type`', () async { - // TODO - }); - - // bool isSubSection - test('to test the property `isSubSection`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // List quizQuestions (default value: const []) - test('to test the property `quizQuestions`', () async { - // TODO - }); - - // List quizBadLevel (default value: const []) - test('to test the property `quizBadLevel`', () async { - // TODO - }); - - // List quizMediumLevel (default value: const []) - test('to test the property `quizMediumLevel`', () async { - // TODO - }); - - // List quizGoodLevel (default value: const []) - test('to test the property `quizGoodLevel`', () async { - // TODO - }); - - // List quizGreatLevel (default value: const []) - test('to test the property `quizGreatLevel`', () async { - // TODO - }); - - // List description (default value: const []) - test('to test the property `description`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - // String imageId - test('to test the property `imageId`', () async { - // TODO - }); - - // String imageSource - test('to test the property `imageSource`', () async { - // TODO - }); - - // String parentId - test('to test the property `parentId`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // bool isBeacon - test('to test the property `isBeacon`', () async { - // TODO - }); - - // int beaconId - test('to test the property `beaconId`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - - // String longitude - test('to test the property `longitude`', () async { - // TODO - }); - - // int meterZoneGPS - test('to test the property `meterZoneGPS`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/section_test.dart b/manager_api_new/test/section_test.dart deleted file mode 100644 index 73d3667..0000000 --- a/manager_api_new/test/section_test.dart +++ /dev/null @@ -1,109 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for Section -void main() { - // final instance = Section(); - - group('test Section', () { - // 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 - }); - - // String configurationId - test('to test the property `configurationId`', () async { - // TODO - }); - - // SectionType type - test('to test the property `type`', () async { - // TODO - }); - - // bool isSubSection - test('to test the property `isSubSection`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // List description (default value: const []) - test('to test the property `description`', () async { - // TODO - }); - - // int order - test('to test the property `order`', () async { - // TODO - }); - - // String imageId - test('to test the property `imageId`', () async { - // TODO - }); - - // String imageSource - test('to test the property `imageSource`', () async { - // TODO - }); - - // String parentId - test('to test the property `parentId`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // bool isBeacon - test('to test the property `isBeacon`', () async { - // TODO - }); - - // int beaconId - test('to test the property `beaconId`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - - // String longitude - test('to test the property `longitude`', () async { - // TODO - }); - - // int meterZoneGPS - test('to test the property `meterZoneGPS`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/section_type_test.dart b/manager_api_new/test/section_type_test.dart deleted file mode 100644 index 31c1f85..0000000 --- a/manager_api_new/test/section_type_test.dart +++ /dev/null @@ -1,17 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionType -void main() { - group('test SectionType', () {}); -} diff --git a/manager_api_new/test/slider_dto_test.dart b/manager_api_new/test/slider_dto_test.dart deleted file mode 100644 index 7625d8f..0000000 --- a/manager_api_new/test/slider_dto_test.dart +++ /dev/null @@ -1,24 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/token_dto_test.dart b/manager_api_new/test/token_dto_test.dart deleted file mode 100644 index 7c69682..0000000 --- a/manager_api_new/test/token_dto_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/translation_and_resource_dto_test.dart b/manager_api_new/test/translation_and_resource_dto_test.dart deleted file mode 100644 index 58ca673..0000000 --- a/manager_api_new/test/translation_and_resource_dto_test.dart +++ /dev/null @@ -1,44 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for TranslationAndResourceDTO -void main() { - // final instance = TranslationAndResourceDTO(); - - group('test TranslationAndResourceDTO', () { - // String language - test('to test the property `language`', () async { - // TODO - }); - - // String value - test('to test the property `value`', () async { - // TODO - }); - - // String resourceId - test('to test the property `resourceId`', () async { - // TODO - }); - - // ResourceType resourceType - test('to test the property `resourceType`', () async { - // TODO - }); - - // String resourceUrl - test('to test the property `resourceUrl`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/translation_dto_test.dart b/manager_api_new/test/translation_dto_test.dart deleted file mode 100644 index 2f54b36..0000000 --- a/manager_api_new/test/translation_dto_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/user_api_test.dart b/manager_api_new/test/user_api_test.dart deleted file mode 100644 index 4e866ff..0000000 --- a/manager_api_new/test/user_api_test.dart +++ /dev/null @@ -1,44 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/user_detail_dto_test.dart b/manager_api_new/test/user_detail_dto_test.dart deleted file mode 100644 index 56efe08..0000000 --- a/manager_api_new/test/user_detail_dto_test.dart +++ /dev/null @@ -1,39 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/user_test.dart b/manager_api_new/test/user_test.dart deleted file mode 100644 index ce9fb95..0000000 --- a/manager_api_new/test/user_test.dart +++ /dev/null @@ -1,59 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/video_dto_test.dart b/manager_api_new/test/video_dto_test.dart deleted file mode 100644 index dc86b92..0000000 --- a/manager_api_new/test/video_dto_test.dart +++ /dev/null @@ -1,24 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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_new/test/weather_dto_test.dart b/manager_api_new/test/weather_dto_test.dart deleted file mode 100644 index 43cb003..0000000 --- a/manager_api_new/test/weather_dto_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for WeatherDTO -void main() { - // final instance = WeatherDTO(); - - group('test WeatherDTO', () { - // String city - test('to test the property `city`', () async { - // TODO - }); - - // DateTime updatedDate - test('to test the property `updatedDate`', () async { - // TODO - }); - - // String result - test('to test the property `result`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/web_dto_test.dart b/manager_api_new/test/web_dto_test.dart deleted file mode 100644 index 9479441..0000000 --- a/manager_api_new/test/web_dto_test.dart +++ /dev/null @@ -1,24 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/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 - }); - }); -}