From 4ae4bd2c411fd7d4dd3a19a0d706bc899fa36bdd Mon Sep 17 00:00:00 2001 From: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Date: Tue, 10 Sep 2024 09:31:35 +0500 Subject: [PATCH 1/6] Code generated for v4 Code fixed Tests fixed Fixed tests Added exception parsing Generate form content type changed to multipart/form-data Regenerated after spec update Test fix Added documentation snippets Multipart file encapsulated to API functions Code formatted Added scripts for snippets run. Fixed snippets Snippets test added to gitignore Regenerated after operationId added to spec Snippets test added to Makefile Updated after operationId optimized Formate code Version updated --- .gitignore | 1 + Code128.jpeg | Bin 0 -> 10832 bytes Code128.png | Bin 0 -> 10832 bytes Code39.jpeg | Bin 0 -> 3806 bytes Code39.png | Bin 0 -> 2714 bytes Makefile | 1 + Pdf417.png | Bin 0 -> 1730 bytes Pdf417.svg | 493 +++++++ README.md | 150 +-- aztec.png | Bin 0 -> 6720 bytes doc/api/BarcodeApi.md | 673 ---------- doc/api/FileApi.md | 253 ---- doc/api/FolderApi.md | 244 ---- doc/api/GenerateApi.md | 113 ++ doc/api/RecognizeApi.md | 97 ++ doc/api/ScanApi.md | 91 ++ doc/api/StorageApi.md | 191 --- doc/models/ApiError.md | 11 +- doc/models/ApiErrorResponse.md | 5 +- doc/models/AustralianPostParams.md | 16 - doc/models/AutoSizeMode.md | 14 - doc/models/AvailableGraphicsUnit.md | 15 - doc/models/AztecEncodeMode.md | 14 - doc/models/AztecParams.md | 22 - doc/models/AztecSymbolMode.md | 15 - doc/models/BarcodeImageFormat.md | 16 + doc/models/BarcodeImageParams.md | 23 + doc/models/BarcodeResponse.md | 8 +- doc/models/BarcodeResponseList.md | 2 +- doc/models/BorderDashStyle.md | 16 - doc/models/CaptionParams.md | 21 - doc/models/ChecksumValidation.md | 14 - doc/models/CodabarChecksumMode.md | 13 - doc/models/CodabarParams.md | 17 - doc/models/CodabarSymbol.md | 15 - doc/models/CodablockParams.md | 17 - doc/models/Code128Emulation.md | 15 - doc/models/Code128EncodeMode.md | 18 - doc/models/Code128Params.md | 15 - doc/models/Code16KParams.md | 17 - doc/models/CodeLocation.md | 7 +- doc/models/CouponParams.md | 15 - .../CustomerInformationInterpretingType.md | 14 - doc/models/DataBarParams.md | 19 - doc/models/DataMatrixEccType.md | 18 - doc/models/DataMatrixEncodeMode.md | 20 - doc/models/DataMatrixParams.md | 22 - doc/models/DataMatrixVersion.md | 82 -- doc/models/DecodeBarcodeType.md | 171 ++- doc/models/DiscUsage.md | 16 - doc/models/DotCodeEncodeMode.md | 14 - doc/models/DotCodeParams.md | 20 - doc/models/ECIEncodings.md | 38 - doc/models/EnableChecksum.md | 14 - doc/models/EncodeBarcodeType.md | 147 +-- doc/models/EncodeData.md | 16 + doc/models/EncodeDataType.md | 14 + doc/models/Error.md | 18 - doc/models/ErrorDetails.md | 16 - doc/models/FileVersion.md | 20 - doc/models/FileVersions.md | 15 - doc/models/FilesList.md | 15 - doc/models/FilesUploadResult.md | 16 - doc/models/FontMode.md | 13 - doc/models/FontParams.md | 17 - doc/models/FontStyle.md | 16 - doc/models/GenerateParams.md | 17 + doc/models/GeneratorParams.md | 70 - doc/models/GeneratorParamsList.md | 17 - doc/models/GraphicsUnit.md | 15 + doc/models/HanXinEncodeMode.md | 17 - doc/models/HanXinErrorLevel.md | 15 - doc/models/HanXinParams.md | 18 - doc/models/HanXinVersion.md | 96 -- doc/models/ITF14BorderType.md | 16 - doc/models/ITFParams.md | 17 - doc/models/MacroCharacter.md | 14 - doc/models/MaxiCodeEncodeMode.md | 14 - doc/models/MaxiCodeMode.md | 16 - doc/models/MaxiCodeParams.md | 17 - doc/models/ObjectExist.md | 16 - doc/models/Padding.md | 18 - doc/models/PatchCodeParams.md | 16 - doc/models/PatchFormat.md | 16 - doc/models/Pdf417CompactionMode.md | 15 - doc/models/Pdf417ErrorLevel.md | 20 - doc/models/Pdf417MacroTerminator.md | 14 - doc/models/Pdf417Params.md | 38 - doc/models/PostalParams.md | 15 - doc/models/PresetType.md | 17 - doc/models/QREncodeMode.md | 17 - doc/models/QREncodeType.md | 14 - doc/models/QRErrorLevel.md | 15 - doc/models/QRVersion.md | 56 - doc/models/QrParams.md | 22 - doc/models/ReaderParams.md | 50 - doc/models/RecognitionImageKind.md | 14 + doc/models/RecognitionMode.md | 14 + doc/models/RecognizeBase64Request.md | 18 + doc/models/RegionPoint.md | 4 +- doc/models/ResultImageInfo.md | 17 - .../{StorageExist.md => ScanBase64Request.md} | 6 +- doc/models/StorageFile.md | 19 - doc/models/StructuredAppend.md | 17 - doc/models/TextAlignment.md | 14 - example/main.dart | 30 +- lib/aspose_barcode_cloud.dart | 89 +- lib/src/api/barcode_api.dart | 1137 ----------------- lib/src/api/file_api.dart | 258 ---- lib/src/api/folder_api.dart | 221 ---- lib/src/api/generate_api.dart | 265 ++++ lib/src/api/recognize_api.dart | 197 +++ lib/src/api/scan_api.dart | 169 +++ lib/src/api/storage_api.dart | 162 --- lib/src/api_client.dart | 166 +-- lib/src/api_exception.dart | 27 + lib/src/configuration.dart | 4 +- lib/src/model/api_error.dart | 36 +- lib/src/model/api_error_response.dart | 17 +- lib/src/model/australian_post_params.dart | 40 - lib/src/model/auto_size_mode.dart | 52 - lib/src/model/available_graphics_unit.dart | 60 - lib/src/model/aztec_encode_mode.dart | 52 - lib/src/model/aztec_params.dart | 72 -- lib/src/model/aztec_symbol_mode.dart | 57 - lib/src/model/barcode_image_format.dart | 61 + lib/src/model/barcode_image_params.dart | 99 ++ lib/src/model/barcode_response.dart | 20 +- lib/src/model/barcode_response_list.dart | 9 +- lib/src/model/border_dash_style.dart | 62 - lib/src/model/caption_params.dart | 67 - lib/src/model/checksum_validation.dart | 52 - lib/src/model/codabar_checksum_mode.dart | 48 - lib/src/model/codabar_params.dart | 47 - lib/src/model/codabar_symbol.dart | 56 - lib/src/model/codablock_params.dart | 42 - lib/src/model/code128_emulation.dart | 56 - lib/src/model/code128_encode_mode.dart | 71 - lib/src/model/code128_params.dart | 35 - lib/src/model/code16_k_params.dart | 46 - lib/src/model/code_location.dart | 11 +- lib/src/model/coupon_params.dart | 34 - ...ustomer_information_interpreting_type.dart | 57 - lib/src/model/data_bar_params.dart | 56 - lib/src/model/data_matrix_ecc_type.dart | 72 -- lib/src/model/data_matrix_encode_mode.dart | 89 -- lib/src/model/data_matrix_params.dart | 73 -- lib/src/model/data_matrix_version.dart | 461 ------- lib/src/model/decode_barcode_type.dart | 615 +++++---- lib/src/model/disc_usage.dart | 38 - lib/src/model/dot_code_encode_mode.dart | 52 - lib/src/model/dot_code_params.dart | 62 - lib/src/model/eci_encodings.dart | 171 --- lib/src/model/enable_checksum.dart | 51 - lib/src/model/encode_barcode_type.dart | 530 ++++---- lib/src/model/encode_data.dart | 43 + lib/src/model/encode_data_type.dart | 53 + lib/src/model/error.dart | 52 - lib/src/model/error_details.dart | 41 - lib/src/model/file_version.dart | 69 - lib/src/model/file_versions.dart | 35 - lib/src/model/files_list.dart | 35 - lib/src/model/files_upload_result.dart | 40 - lib/src/model/font_mode.dart | 46 - lib/src/model/font_params.dart | 43 - lib/src/model/font_style.dart | 61 - lib/src/model/generate_params.dart | 52 + lib/src/model/generator_params.dart | 312 ----- lib/src/model/generator_params_list.dart | 43 - lib/src/model/graphics_unit.dart | 56 + lib/src/model/han_xin_encode_mode.dart | 67 - lib/src/model/han_xin_error_level.dart | 56 - lib/src/model/han_xin_params.dart | 52 - lib/src/model/han_xin_version.dart | 461 ------- lib/src/model/itf14_border_type.dart | 61 - lib/src/model/itf_params.dart | 47 - lib/src/model/macro_character.dart | 51 - lib/src/model/maxi_code_encode_mode.dart | 52 - lib/src/model/maxi_code_mode.dart | 61 - lib/src/model/maxi_code_params.dart | 43 - lib/src/model/object_exist.dart | 38 - lib/src/model/padding.dart | 46 - lib/src/model/patch_code_params.dart | 39 - lib/src/model/patch_format.dart | 62 - lib/src/model/pdf417_compaction_mode.dart | 60 - lib/src/model/pdf417_error_level.dart | 81 -- lib/src/model/pdf417_macro_terminator.dart | 54 - lib/src/model/pdf417_params.dart | 157 --- lib/src/model/postal_params.dart | 34 - lib/src/model/preset_type.dart | 69 - lib/src/model/qr_encode_mode.dart | 67 - lib/src/model/qr_encode_type.dart | 52 - lib/src/model/qr_error_level.dart | 56 - lib/src/model/qr_params.dart | 72 -- lib/src/model/qr_version.dart | 261 ---- lib/src/model/reader_params.dart | 219 ---- lib/src/model/recognition_image_kind.dart | 54 + lib/src/model/recognition_mode.dart | 52 + lib/src/model/recognize_base64_request.dart | 61 + lib/src/model/region_point.dart | 16 +- lib/src/model/result_image_info.dart | 46 - lib/src/model/scan_base64_request.dart | 37 + lib/src/model/storage_exist.dart | 34 - lib/src/model/storage_file.dart | 59 - lib/src/model/structured_append.dart | 46 - lib/src/model/text_alignment.dart | 51 - pubspec.yaml | 2 +- qr.png | Bin 419 -> 466 bytes scripts/insert-credentials.py | 65 + scripts/run_snippet.sh | 13 + scripts/run_snippets.sh | 17 + .../generate/appearance/generate_body.dart | 42 + .../generate/appearance/generate_get.dart | 39 + .../appearance/generate_multipart.dart | 38 + snippets/generate/save/generate_body.dart | 42 + snippets/generate/save/generate_get.dart | 33 + .../generate/save/generate_multipart.dart | 33 + .../set_colorscheme/generate_body.dart | 44 + .../set_colorscheme/generate_get.dart | 36 + .../set_colorscheme/generate_multipart.dart | 36 + snippets/generate/set_size/generate_body.dart | 44 + snippets/generate/set_size/generate_get.dart | 40 + .../generate/set_size/generate_multipart.dart | 37 + snippets/generate/set_text/generate_body.dart | 38 + snippets/generate/set_text/generate_get.dart | 30 + .../generate/set_text/generate_multipart.dart | 34 + snippets/manual_fetch_token.dart | 32 + .../read/set_image_kind/recognize_body.dart | 45 + .../read/set_image_kind/recognize_get.dart | 29 + .../set_image_kind/recognize_multipart.dart | 29 + snippets/read/set_quality/recognize_body.dart | 40 + snippets/read/set_quality/recognize_get.dart | 30 + .../read/set_quality/recognize_multipart.dart | 30 + snippets/read/set_source/recognize_body.dart | 40 + snippets/read/set_source/recognize_get.dart | 25 + .../read/set_source/recognize_multipart.dart | 36 + snippets/read/set_source/scan_body.dart | 34 + snippets/read/set_source/scan_get.dart | 34 + snippets/read/set_source/scan_multipart.dart | 29 + .../read/set_target_types/recognize_body.dart | 42 + .../read/set_target_types/recognize_get.dart | 29 + .../set_target_types/recognize_multipart.dart | 30 + test/barcode_api_test.dart | 35 - test/configuration.example.json | 4 +- test/configuration_test.dart | 4 +- test/exception_test.dart | 33 + test/generate_api_test.dart | 41 + test/post_generate_multiple_test.dart | 31 - ..._put_barcode_recognize_from_body_test.dart | 40 - ...e_multiple_get_barcode_recognize_test.dart | 43 - test/recognize_api_test.dart | 57 + test/recognize_test.dart | 37 - test/scan_api_test.dart | 58 + test/scan_test.dart | 53 - test/test_config.dart | 5 +- 255 files changed, 4461 insertions(+), 11466 deletions(-) create mode 100644 Code128.jpeg create mode 100644 Code128.png create mode 100644 Code39.jpeg create mode 100644 Code39.png create mode 100644 Pdf417.png create mode 100644 Pdf417.svg create mode 100644 aztec.png delete mode 100644 doc/api/BarcodeApi.md delete mode 100644 doc/api/FileApi.md delete mode 100644 doc/api/FolderApi.md create mode 100644 doc/api/GenerateApi.md create mode 100644 doc/api/RecognizeApi.md create mode 100644 doc/api/ScanApi.md delete mode 100644 doc/api/StorageApi.md delete mode 100644 doc/models/AustralianPostParams.md delete mode 100644 doc/models/AutoSizeMode.md delete mode 100644 doc/models/AvailableGraphicsUnit.md delete mode 100644 doc/models/AztecEncodeMode.md delete mode 100644 doc/models/AztecParams.md delete mode 100644 doc/models/AztecSymbolMode.md create mode 100644 doc/models/BarcodeImageFormat.md create mode 100644 doc/models/BarcodeImageParams.md delete mode 100644 doc/models/BorderDashStyle.md delete mode 100644 doc/models/CaptionParams.md delete mode 100644 doc/models/ChecksumValidation.md delete mode 100644 doc/models/CodabarChecksumMode.md delete mode 100644 doc/models/CodabarParams.md delete mode 100644 doc/models/CodabarSymbol.md delete mode 100644 doc/models/CodablockParams.md delete mode 100644 doc/models/Code128Emulation.md delete mode 100644 doc/models/Code128EncodeMode.md delete mode 100644 doc/models/Code128Params.md delete mode 100644 doc/models/Code16KParams.md delete mode 100644 doc/models/CouponParams.md delete mode 100644 doc/models/CustomerInformationInterpretingType.md delete mode 100644 doc/models/DataBarParams.md delete mode 100644 doc/models/DataMatrixEccType.md delete mode 100644 doc/models/DataMatrixEncodeMode.md delete mode 100644 doc/models/DataMatrixParams.md delete mode 100644 doc/models/DataMatrixVersion.md delete mode 100644 doc/models/DiscUsage.md delete mode 100644 doc/models/DotCodeEncodeMode.md delete mode 100644 doc/models/DotCodeParams.md delete mode 100644 doc/models/ECIEncodings.md delete mode 100644 doc/models/EnableChecksum.md create mode 100644 doc/models/EncodeData.md create mode 100644 doc/models/EncodeDataType.md delete mode 100644 doc/models/Error.md delete mode 100644 doc/models/ErrorDetails.md delete mode 100644 doc/models/FileVersion.md delete mode 100644 doc/models/FileVersions.md delete mode 100644 doc/models/FilesList.md delete mode 100644 doc/models/FilesUploadResult.md delete mode 100644 doc/models/FontMode.md delete mode 100644 doc/models/FontParams.md delete mode 100644 doc/models/FontStyle.md create mode 100644 doc/models/GenerateParams.md delete mode 100644 doc/models/GeneratorParams.md delete mode 100644 doc/models/GeneratorParamsList.md create mode 100644 doc/models/GraphicsUnit.md delete mode 100644 doc/models/HanXinEncodeMode.md delete mode 100644 doc/models/HanXinErrorLevel.md delete mode 100644 doc/models/HanXinParams.md delete mode 100644 doc/models/HanXinVersion.md delete mode 100644 doc/models/ITF14BorderType.md delete mode 100644 doc/models/ITFParams.md delete mode 100644 doc/models/MacroCharacter.md delete mode 100644 doc/models/MaxiCodeEncodeMode.md delete mode 100644 doc/models/MaxiCodeMode.md delete mode 100644 doc/models/MaxiCodeParams.md delete mode 100644 doc/models/ObjectExist.md delete mode 100644 doc/models/Padding.md delete mode 100644 doc/models/PatchCodeParams.md delete mode 100644 doc/models/PatchFormat.md delete mode 100644 doc/models/Pdf417CompactionMode.md delete mode 100644 doc/models/Pdf417ErrorLevel.md delete mode 100644 doc/models/Pdf417MacroTerminator.md delete mode 100644 doc/models/Pdf417Params.md delete mode 100644 doc/models/PostalParams.md delete mode 100644 doc/models/PresetType.md delete mode 100644 doc/models/QREncodeMode.md delete mode 100644 doc/models/QREncodeType.md delete mode 100644 doc/models/QRErrorLevel.md delete mode 100644 doc/models/QRVersion.md delete mode 100644 doc/models/QrParams.md delete mode 100644 doc/models/ReaderParams.md create mode 100644 doc/models/RecognitionImageKind.md create mode 100644 doc/models/RecognitionMode.md create mode 100644 doc/models/RecognizeBase64Request.md delete mode 100644 doc/models/ResultImageInfo.md rename doc/models/{StorageExist.md => ScanBase64Request.md} (57%) delete mode 100644 doc/models/StorageFile.md delete mode 100644 doc/models/StructuredAppend.md delete mode 100644 doc/models/TextAlignment.md delete mode 100644 lib/src/api/barcode_api.dart delete mode 100644 lib/src/api/file_api.dart delete mode 100644 lib/src/api/folder_api.dart create mode 100644 lib/src/api/generate_api.dart create mode 100644 lib/src/api/recognize_api.dart create mode 100644 lib/src/api/scan_api.dart delete mode 100644 lib/src/api/storage_api.dart delete mode 100644 lib/src/model/australian_post_params.dart delete mode 100644 lib/src/model/auto_size_mode.dart delete mode 100644 lib/src/model/available_graphics_unit.dart delete mode 100644 lib/src/model/aztec_encode_mode.dart delete mode 100644 lib/src/model/aztec_params.dart delete mode 100644 lib/src/model/aztec_symbol_mode.dart create mode 100644 lib/src/model/barcode_image_format.dart create mode 100644 lib/src/model/barcode_image_params.dart delete mode 100644 lib/src/model/border_dash_style.dart delete mode 100644 lib/src/model/caption_params.dart delete mode 100644 lib/src/model/checksum_validation.dart delete mode 100644 lib/src/model/codabar_checksum_mode.dart delete mode 100644 lib/src/model/codabar_params.dart delete mode 100644 lib/src/model/codabar_symbol.dart delete mode 100644 lib/src/model/codablock_params.dart delete mode 100644 lib/src/model/code128_emulation.dart delete mode 100644 lib/src/model/code128_encode_mode.dart delete mode 100644 lib/src/model/code128_params.dart delete mode 100644 lib/src/model/code16_k_params.dart delete mode 100644 lib/src/model/coupon_params.dart delete mode 100644 lib/src/model/customer_information_interpreting_type.dart delete mode 100644 lib/src/model/data_bar_params.dart delete mode 100644 lib/src/model/data_matrix_ecc_type.dart delete mode 100644 lib/src/model/data_matrix_encode_mode.dart delete mode 100644 lib/src/model/data_matrix_params.dart delete mode 100644 lib/src/model/data_matrix_version.dart delete mode 100644 lib/src/model/disc_usage.dart delete mode 100644 lib/src/model/dot_code_encode_mode.dart delete mode 100644 lib/src/model/dot_code_params.dart delete mode 100644 lib/src/model/eci_encodings.dart delete mode 100644 lib/src/model/enable_checksum.dart create mode 100644 lib/src/model/encode_data.dart create mode 100644 lib/src/model/encode_data_type.dart delete mode 100644 lib/src/model/error.dart delete mode 100644 lib/src/model/error_details.dart delete mode 100644 lib/src/model/file_version.dart delete mode 100644 lib/src/model/file_versions.dart delete mode 100644 lib/src/model/files_list.dart delete mode 100644 lib/src/model/files_upload_result.dart delete mode 100644 lib/src/model/font_mode.dart delete mode 100644 lib/src/model/font_params.dart delete mode 100644 lib/src/model/font_style.dart create mode 100644 lib/src/model/generate_params.dart delete mode 100644 lib/src/model/generator_params.dart delete mode 100644 lib/src/model/generator_params_list.dart create mode 100644 lib/src/model/graphics_unit.dart delete mode 100644 lib/src/model/han_xin_encode_mode.dart delete mode 100644 lib/src/model/han_xin_error_level.dart delete mode 100644 lib/src/model/han_xin_params.dart delete mode 100644 lib/src/model/han_xin_version.dart delete mode 100644 lib/src/model/itf14_border_type.dart delete mode 100644 lib/src/model/itf_params.dart delete mode 100644 lib/src/model/macro_character.dart delete mode 100644 lib/src/model/maxi_code_encode_mode.dart delete mode 100644 lib/src/model/maxi_code_mode.dart delete mode 100644 lib/src/model/maxi_code_params.dart delete mode 100644 lib/src/model/object_exist.dart delete mode 100644 lib/src/model/padding.dart delete mode 100644 lib/src/model/patch_code_params.dart delete mode 100644 lib/src/model/patch_format.dart delete mode 100644 lib/src/model/pdf417_compaction_mode.dart delete mode 100644 lib/src/model/pdf417_error_level.dart delete mode 100644 lib/src/model/pdf417_macro_terminator.dart delete mode 100644 lib/src/model/pdf417_params.dart delete mode 100644 lib/src/model/postal_params.dart delete mode 100644 lib/src/model/preset_type.dart delete mode 100644 lib/src/model/qr_encode_mode.dart delete mode 100644 lib/src/model/qr_encode_type.dart delete mode 100644 lib/src/model/qr_error_level.dart delete mode 100644 lib/src/model/qr_params.dart delete mode 100644 lib/src/model/qr_version.dart delete mode 100644 lib/src/model/reader_params.dart create mode 100644 lib/src/model/recognition_image_kind.dart create mode 100644 lib/src/model/recognition_mode.dart create mode 100644 lib/src/model/recognize_base64_request.dart delete mode 100644 lib/src/model/result_image_info.dart create mode 100644 lib/src/model/scan_base64_request.dart delete mode 100644 lib/src/model/storage_exist.dart delete mode 100644 lib/src/model/storage_file.dart delete mode 100644 lib/src/model/structured_append.dart delete mode 100644 lib/src/model/text_alignment.dart create mode 100644 scripts/insert-credentials.py create mode 100644 scripts/run_snippet.sh create mode 100644 scripts/run_snippets.sh create mode 100644 snippets/generate/appearance/generate_body.dart create mode 100644 snippets/generate/appearance/generate_get.dart create mode 100644 snippets/generate/appearance/generate_multipart.dart create mode 100644 snippets/generate/save/generate_body.dart create mode 100644 snippets/generate/save/generate_get.dart create mode 100644 snippets/generate/save/generate_multipart.dart create mode 100644 snippets/generate/set_colorscheme/generate_body.dart create mode 100644 snippets/generate/set_colorscheme/generate_get.dart create mode 100644 snippets/generate/set_colorscheme/generate_multipart.dart create mode 100644 snippets/generate/set_size/generate_body.dart create mode 100644 snippets/generate/set_size/generate_get.dart create mode 100644 snippets/generate/set_size/generate_multipart.dart create mode 100644 snippets/generate/set_text/generate_body.dart create mode 100644 snippets/generate/set_text/generate_get.dart create mode 100644 snippets/generate/set_text/generate_multipart.dart create mode 100644 snippets/manual_fetch_token.dart create mode 100644 snippets/read/set_image_kind/recognize_body.dart create mode 100644 snippets/read/set_image_kind/recognize_get.dart create mode 100644 snippets/read/set_image_kind/recognize_multipart.dart create mode 100644 snippets/read/set_quality/recognize_body.dart create mode 100644 snippets/read/set_quality/recognize_get.dart create mode 100644 snippets/read/set_quality/recognize_multipart.dart create mode 100644 snippets/read/set_source/recognize_body.dart create mode 100644 snippets/read/set_source/recognize_get.dart create mode 100644 snippets/read/set_source/recognize_multipart.dart create mode 100644 snippets/read/set_source/scan_body.dart create mode 100644 snippets/read/set_source/scan_get.dart create mode 100644 snippets/read/set_source/scan_multipart.dart create mode 100644 snippets/read/set_target_types/recognize_body.dart create mode 100644 snippets/read/set_target_types/recognize_get.dart create mode 100644 snippets/read/set_target_types/recognize_multipart.dart delete mode 100644 test/barcode_api_test.dart create mode 100644 test/exception_test.dart create mode 100644 test/generate_api_test.dart delete mode 100644 test/post_generate_multiple_test.dart delete mode 100644 test/put_barcode_generate_file_put_barcode_recognize_from_body_test.dart delete mode 100644 test/put_generate_multiple_get_barcode_recognize_test.dart create mode 100644 test/recognize_api_test.dart delete mode 100644 test/recognize_test.dart create mode 100644 test/scan_api_test.dart delete mode 100644 test/scan_test.dart diff --git a/.gitignore b/.gitignore index 2512216..7cb5c2c 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ pubspec.lock coverage/ test/configuration*.json !test/configuration.example.json +snippets_test/ diff --git a/Code128.jpeg b/Code128.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..4e7013c50512ca3a8abffb326ba51d59910904f4 GIT binary patch literal 10832 zcmeHNZB!Fy7LImND=O_dYqQ-dv0Js&QsaT5)*#V}BF74T0}Dw+k<_*2V-dqwGV8V; zs@Wq|u^I%kej)}kv>-8%%qYmRXe0%M5hTe9LWCg+5Qe~nnb`^Oqo@0C&+fmu=VWHi zoI5w~yz|_9-}m0<^sb1oh4X(upT%M=4BsBQhsB!hO<&)dH-|p9v_qNn>CKewF=;H; zqB_rSRzvcg1QzR~q43bn`!Wg#3s0W&4?h0XZe~L z?V`-+%Ze%KXbSe9QT;3A<*GBqW$$B;ly}^LE$C zk)x3U{s5F8rd`axSQp-)Z?bVsR|bM_!FNM2)6;7$wz183Bly`L2x??SuC7JW(6UR*V>*J4_- z%9O;}XBI%uas>R*uC`0s-o`oSA#GQSDo*poaZA2$Z*#!SG-g1|3^5pDyo`xMOkiYE z2a{ZxCNR0-n$ZUPD&YUHr z2vkI6xewqUrwR7z{gjn_skuc6<(CM9)tqLXvWzcE*1~qO(R#5FzaOBL9e_y3p;k`N z9Yq;?m`@JpQDoOW2VU`5b!91b?R6A%*AhhAZ!+g5t_gHXjWmrYr!mH7E^2cHA#5Tt zSqo}@05z9EO+WJD2`IXc+(Wnah4Jxbm@ocO$7lXl(1BZ0i1Alg8UmrlkW5=bm~?P761qzj zsU`mqP7P&oB8?8HE6x%m;#Q+_6tArocA3TcltSqK>h@}qh(9bnDMVm$0vjXU@@C8m zT5hfCM80V%W@C|-R9UA~zlQLj!+u!0uG*~MRS9Z+&zrUK;r<$XdR6v^R_XRcL~eCk zh1^;&d*x3bgqX3@+>!E40rdA=6-WbJl+@1daj{+4snJ&M1~t1DTiRhS>&Lt@1XKtj zv4Wye_Axzg=;#maABQyytq5;9=Hik&;#T?ag z`d>o&RnR}{W;Y&8>{A&$^R12X@j?$1OI&y~_pDMz>L6aM=sxIppmOB%rL!Q}wn_2> z`G6dA%hh-FIvv&4fP%wC<_N0N*ja-Z}ct1h2Uhk%wKRn-oX&q@qKo1&W8ocAPpSl2| z$!m2+Y~2!JZUXHC`=@|sh!goslDRN^FNfH967|M$JBg!zLE?b-x^W(k7%@H(-Gh1c z;b%uZp$G;#Y}lzS%@Db=p<0&O4sh)_W#I(3TXpbvI_m51uvDV8-a$S8xiguVxM;cO z!WSum{Y$l^CR&F%7U)ozOb!jG5q^m{{$6Snh-q)J5E-Tt+D(VmkvRh3Lj2JyqVX_rV5_9zXgj$+4pggt~x-csk?a`uD5 ztCd_c4R`9q1GJPM%b~IATC3)y>tH>JdtXAVWjdJ)ra~U_T%*@3eP!mfXwHtF3svVk z>ZK-Uw*Xdt|M)CEo_~7a7~yhT%T~t$J-07-V0D>>Rpz78+}r_iE6AOV%B%6HMQujY zQP_wTCDiYx(rcfEd|NWO&AEbhw6wsLP`kB+zv0@ubU+q)JS|U|c}zklgWKyo?=(J> zTFf3$^@yj^L}J#o9v1lOkz=+eA5Ch0NqU@CqD@qJ^rq#-|0qRyn3q*fKFtHAsKoH4 hZu(-5hx_>kYnzZ)t{4nFN#9|GZ;c35e}3?<{{~ZZCb$3q literal 0 HcmV?d00001 diff --git a/Code128.png b/Code128.png new file mode 100644 index 0000000000000000000000000000000000000000..4e7013c50512ca3a8abffb326ba51d59910904f4 GIT binary patch literal 10832 zcmeHNZB!Fy7LImND=O_dYqQ-dv0Js&QsaT5)*#V}BF74T0}Dw+k<_*2V-dqwGV8V; zs@Wq|u^I%kej)}kv>-8%%qYmRXe0%M5hTe9LWCg+5Qe~nnb`^Oqo@0C&+fmu=VWHi zoI5w~yz|_9-}m0<^sb1oh4X(upT%M=4BsBQhsB!hO<&)dH-|p9v_qNn>CKewF=;H; zqB_rSRzvcg1QzR~q43bn`!Wg#3s0W&4?h0XZe~L z?V`-+%Ze%KXbSe9QT;3A<*GBqW$$B;ly}^LE$C zk)x3U{s5F8rd`axSQp-)Z?bVsR|bM_!FNM2)6;7$wz183Bly`L2x??SuC7JW(6UR*V>*J4_- z%9O;}XBI%uas>R*uC`0s-o`oSA#GQSDo*poaZA2$Z*#!SG-g1|3^5pDyo`xMOkiYE z2a{ZxCNR0-n$ZUPD&YUHr z2vkI6xewqUrwR7z{gjn_skuc6<(CM9)tqLXvWzcE*1~qO(R#5FzaOBL9e_y3p;k`N z9Yq;?m`@JpQDoOW2VU`5b!91b?R6A%*AhhAZ!+g5t_gHXjWmrYr!mH7E^2cHA#5Tt zSqo}@05z9EO+WJD2`IXc+(Wnah4Jxbm@ocO$7lXl(1BZ0i1Alg8UmrlkW5=bm~?P761qzj zsU`mqP7P&oB8?8HE6x%m;#Q+_6tArocA3TcltSqK>h@}qh(9bnDMVm$0vjXU@@C8m zT5hfCM80V%W@C|-R9UA~zlQLj!+u!0uG*~MRS9Z+&zrUK;r<$XdR6v^R_XRcL~eCk zh1^;&d*x3bgqX3@+>!E40rdA=6-WbJl+@1daj{+4snJ&M1~t1DTiRhS>&Lt@1XKtj zv4Wye_Axzg=;#maABQyytq5;9=Hik&;#T?ag z`d>o&RnR}{W;Y&8>{A&$^R12X@j?$1OI&y~_pDMz>L6aM=sxIppmOB%rL!Q}wn_2> z`G6dA%hh-FIvv&4fP%wC<_N0N*ja-Z}ct1h2Uhk%wKRn-oX&q@qKo1&W8ocAPpSl2| z$!m2+Y~2!JZUXHC`=@|sh!goslDRN^FNfH967|M$JBg!zLE?b-x^W(k7%@H(-Gh1c z;b%uZp$G;#Y}lzS%@Db=p<0&O4sh)_W#I(3TXpbvI_m51uvDV8-a$S8xiguVxM;cO z!WSum{Y$l^CR&F%7U)ozOb!jG5q^m{{$6Snh-q)J5E-Tt+D(VmkvRh3Lj2JyqVX_rV5_9zXgj$+4pggt~x-csk?a`uD5 ztCd_c4R`9q1GJPM%b~IATC3)y>tH>JdtXAVWjdJ)ra~U_T%*@3eP!mfXwHtF3svVk z>ZK-Uw*Xdt|M)CEo_~7a7~yhT%T~t$J-07-V0D>>Rpz78+}r_iE6AOV%B%6HMQujY zQP_wTCDiYx(rcfEd|NWO&AEbhw6wsLP`kB+zv0@ubU+q)JS|U|c}zklgWKyo?=(J> zTFf3$^@yj^L}J#o9v1lOkz=+eA5Ch0NqU@CqD@qJ^rq#-|0qRyn3q*fKFtHAsKoH4 hZu(-5hx_>kYnzZ)t{4nFN#9|GZ;c35e}3?<{{~ZZCb$3q literal 0 HcmV?d00001 diff --git a/Code39.jpeg b/Code39.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..c5a4b3cf74faeee76ffb02e146edebd57cc38e78 GIT binary patch literal 3806 zcmeHJdpMM78-K>kI7KDHA{nBb%B)jJnh+{UaxRBjiCIZSA?ZyD*)(b$N+jn)4l8G} z6Jk)vl5r|@a%P;yWX8PTJN0c_-|qEYyWij6b6xMe_w_vYbHDd*?)&-u9=Hb{1~*Is zNGAZ;yH^G90|2l<3WWtI#M+NM>;G-rAhr?;{b`;Du|;`4+gv|VIOfy56JmcJN0AqI z<@YxlfM`B|L1qAV->uI!ifcdkBMty?KQIRTyu5t8Sbjb}J^=xKK_Q&5(5h8JlIuj* z;5JC%Wj07jOUo*#Davl#A}=kiq@%p$dvz@>Exe+hfv(05HBBuIZV;4!fPl~{Aqin& z2@N@EIgNij;3q(YA9w+GG-@N@5ka9vQ1DZLM_^%5p9U8TcOW1zSYAGU0l`&>L+M(; zgF>TuFla0mgWyF4b3tN6uO0)pb- zNk~d<+N`LgtfHm8O-EO6yYX%lQ?osL_gUN6+Sxle9(FtKe!|0(^rNrex%2)3ffqur zUJDD4xE^`?=a|^I_&awKQq$5iGPAOCavv3!l$MoOR94m1KW%8FHZ`~W*4g#4o7U6Y zH~i-9yZ0YPM#siy=jIm{8B5HM%UoP2fc^{%`Ta{=A_y)X3P?s-KY`5k2AWJQdBD-uX%_r_QTl@L2(7G;Z3t#XrGY%Jz!VdR~k4RiCkN>{E@rY+&I={d|^Gt0nM8D+;El74! z=*q;#jF-@(Ut1`BFmPk-oGqUUI)AFRQRhse$6_9tnF51x7Z@~YzucF&X?^qFO+;e63&dt(rIhQ}Igq~&i45B?@5Q*nx%&vt<5M{z2G<|qa4>=#|bvD$lVjih;X-$ zsXiX)Apc;4y7RVc{<*J=mAj@ea(m{|8@pqCZ(A$+oLXVo+d2^x^g271Iwn4{@AkX$ zj@8;&nt2qEU2EC*G}ys8ko)LCONOd`D^2CT^MK0_YhrKiY8tuu>xai998vso{0;*c zTqdr>UeF2Hb6^+L7f{?iji;%oeu_&3Vl^F zTEi`S2krAGgEyO-B?~4$`tWk1^(gXBQ8^jyYoH;da_(mA&BR5ufFKwEh^0atR);~3 zZ~Y(>4TD}Q7zmJ8%O z?Em%|gYcE@-2LN&3vXetc@1+vH10%S;s6*hY%7Ogunq>E0hui{mZ)jjAZ4knyIR3X zUS@T`7&#@6_>a8RZM=!O3-f_8IVL!JDxOEo_;BSB=gs~B z&qEmXMNTRDJ&LcT$u-@DG-Ba+G}Y%E$v=JkP+#tq`MT`2eka4!_+>e%Whs0r*Bu6h zE!y&I3v=0=-5ReQ1J07X7hY`=+BTb4{wNKro}-BQ`B^z;=zeUcJ&uq!RZ{t;qC=Yz zIa`|$bj_me02pX!Pny`0b0%#`1ofMRbD#h@k) z!bdbzfS>yg2DVE_vRJO2+D$MRt|r;i$As;Mk;B z8#KHcsU;bybiz#k>Eu@Y(NxinVnKTaz7=$s%Y@O2QNc$ju)_A0S z^kGnx##uYFe20y+UdZ4|lt0oM^Ye6%tjW_bm|udyroX#WriILAvn7J0iR=}mAa@1gPh%iZx9ynUxq=|rI|%WD-xU@4s}tH9zt@T^zyCcNO9U{En;bm*HOO3 z&~$!5c~h^cw2&{2Xz1`pxx?l}*YZwsQJ6{;*2vqYx_FfJsj$!R;$r4@Mc!un6J9Ea zRA07gY7*j?m#=6NJO7AnvgO67j>fL(8{4J>sLyjMeB=kz-X6BH=pw5vnU>&^9I~tR z3!k??4t=`4G%>-uAtS0pgRJItH7Qx;!lZK=pG;=ezBhz?wjSxYT8VjtX-+Il)9|dz zUZ-2vTd8@Y{#r|WGZi6Q^*3l~?zaTz{qE@p_qm-rkZ~_zA z*1x|ZdY?pQnqGfL^Sxr7#7NB0I}ag3h@ez1=%77B?qp6yJ4R zSyEyL5AmlE=84L7=AP2_Wg(^x40w{+UKa^vj7#tHM|>Y*7s>9d>LYE#FyNoAguyN! zUKk9i!r&U7esdyuftT*X;h`|O=UW_EHcaL&Tf-mF%(P0NfeUp2CVdb}QCra}%5sxv`y_CRvR!QhitjI8ipL>5CVIa*K&4E$%;Fxsa% za(~LlrDMU_uG2OwC`q&aU|n_jUU&4CG?iU_dlo0A64L&ZpG(JLzTJ#%*s3JUdTXQp zax-^*tt`PkeF9wfNQ%R|*eS2TyWPvQ;&`2{d8{N`oRy3E5cXg*>iIbFHR>dINw`b@EmWfkB`-!uk!CW@6-J%LC+OWqVy%;)&`fg zwR^Wv?)nqr!rvded^&I>tEf;9p;3KKCJ|w4e?-|_8gdcN4vvLNIaEgQTc1A0nyCH1P2Qjp{WG@VPFf&^wSU#qey_6+8+L3oB(^m89 zO(Z`kp!^=hu@gBAVk|$Xm(nxnHS&z56Z^qWukrN-4|?9i6Si6VtVrX@yWJw%RJ+o2 zwN&ehs#tBPdzlomx(1iVjT8b+pbqi!2LP$K~x&xMATJK4IpHgm;qs1n*Yc~1YuPgg;D8{j~jEt4| z6hmT9-i(e@ZlM2}z=)l8dT9Ck+gSJLYSRRDz80$N zabK#duZ!=u8v85xE7d;rf7SkL)y7$w0Pf@N#jv;U77$A+yL(19M%}_xV>TqT3C*m; zhj}6Qp{xE*FnFL73em+7b*qk4&5cv@OM8a9*&;C>bF3M66VDNO<;%JJS{OM1_An46 z4sW0lM}>z5*;t5P@Fud8WmM?Ca((zLCa%c6(oXw@ZB5VU8uex3L!Y>ot>SO03(0|H~~RG5&#N>0;RwxAO%iAP>>XW z0bxKHFb2qgGY||U1J#cpPy~jmF>nNdAQct|!hv#N9FPO&AUH@4Ab<#<0+;|4zy$~a zQUFLG5~u_w0VQw=LV}b4K#4vMWjYAudMTAa)s%!#N+=@~3FU+eLM5RpSB2GKlp>{^ zQbDOy4HzX%k1|G)QO>AfR5Gea64X-}Qbfv;3ZxRLVotbT&p1U+Ij4eC$*Gcq2)!v2 z6b0pi3PGiyN+TkvLSmAlq+C)Vsgx9SbyYiLx;)5r(kKCyYJ}+6j35%^1O-7!5Og;B zKujM;AuABo50$=z=~FU>$dEG>3?)-7Rkcb~G5v5vfhZA`6NIDU!&HbP=O{Qzj>;Y) zP?2ORPaqd+8BhvTo)L+PIa9?FxkMpRN(6l`6g}m(N>UywyOcA!i-hP}Frs(lLHj2RtA^az$p>t7DId`zXg*sKn)i0C6s>$>#9J> zkXEDP{rdVn&0|83%&y44^0~|V(GO}Wj$KV9 zA0)emoGPeIG#Fjxc=!~C9fHVH`})s|x{)(6{^HvH2j!fc>6;qX2Hq(S&#)YDEcE#I z>UwKHT5ZMFxs z7wQhzFTJ#_p*duAW`bc!fUEU|TVmS=yZnW&8y^^EM=sC&G+_Bw^LUqKyBr#9(mE>Y ziHz@TnUH6F&p&fi(y*y6kxBJUm7^0)MKz;0dzJ=#pWycOqL!qLH#Ohy_gmopF!gz! zd%>RZr3)XXd+)ScwVg)UB0qNtO)A{~a%lgy!;Lor#%0)l+%zV$Uvg4WO5`uQ+fzbM z21RXoQ;~EmdzNEUA%3*rH&F>5_s`0M@jZ#fxj_wEqP`fu!{y15Dfjw&9I;$m?4G;K zcf{koknE7LMRC#D@C8x?}dUz4=Q#N=o)_?Y-uiKi&EMv)sU7`>zguxg%PZ zPHY|VH2?Gnd-sB!*`LN#Y#J3)QhuiATu0eW`y8*bEZ?x$lQrS@i{h&NJ@b#RS~0Tp z9~J3Oqf3*$>*BKS7LD}Y-E=YR>57({VL2D~w-0z(`6%u?ugd!T81JfHN7v#rtvi#; zFaI#!^Dn1g|2O-`s%QQlhpUHO8d;w27Vi~%cF^ut|@W@;GV#UlD>e>!0`7zZ(GbTNa)IB#Lf z_wX)bnr}UF%mOqrn}oWwQgH| zLbN&Yx2Nj2IdP$BzbCld{`#a_MyJie7D!KZ^oQ)xLn1$qXTx)+olgCG;es1 zrrjx?#w?aWPaN@O)!;{>*)-1W@0#;cIlZsph$9*Xxq5G(ljGz^A*Em1TiTDzz3@6X zBx2)T=d@q`YV_|zex?H<96MU?9NPX?+dVhpXT$Zj2E*n79Fnj4YBM=;usdpT=1_7) zTVt9+$SWG78g7Zx57!tH*Uru?&e&p*;?~SUdPH|0Y>{r z;Apnf{Cz65>2$LpLflX2D-5=Q1z^7p?)l1T^)Jg4XAIf<*fq^+a3QA2E1UYvxA}pW z9B0Qzn;bHn`(9tS6~k(cQUCccW7m|Ou?|1j{Upmk9xg$XV?Yg=iTxr93bT_{+mefYS*TA-cf(Y2-RPK)l3nQX~-?>YI-<9q#n z-}!Q9es<*I_{9(eMds#gD*~eee4?;W@Xw8K#e*UI^PG}u2#UJx|AP7sb$kp#p&#XL z+d@CqI@!48o1}~-IJZw??3M2bf?t=HHlAs|eLW}o!Zp74V#jISJ!Zm%4(%dr_*n!h z>x)BZ!ca&P%e*TQtbN{f<=Gu69{I1N?RK?b8lDP65Yui%dn$#9iX7W}j z1Hl1tCNO~lZ$Bm8B%K3_zI_6H3*OGOE$nc_2gJeO9uWQ+)5r zBU=zAaCQp~oFPZIc(>eyLvhn(B$eZmt&A+M(%=#Nn2K`LmTOYgRT=mMm@vTRO&S~3 z>{-3iL!=U$d$^aB-35#?Nrjk3YMCgv_-|+u(&JD8clR+E&w>eq#gw8l7;iuLM6d!C zY))f3b85g${)I0VGd$aob(|KxtJ+FdI+g64@rKP|5!eI;PCar*v?a`c9tcyvWwel& zY8&l`LjnP3AgR_1_71hkVgDrhDGgamjyqr3T_)2d~B2VX1Pz6`|3eljpBblw~#0-yT0dKLkAvY%3=z=NW{ zO_J+zDB%<%OKhKT{b5mYXd4Zj4xV8J*gRCO?BNi8B%p#@yyVgK23_yzhafnky3u~l zI$?Zw3MAu@DcAYFqsI2#Tu=rgw_W14yOoZe?uL0nqU3H(BEwx2Hq^>sI-<1dPEsIt z5dJMujDK2i60(1$8Irk_?B+R!XCZ664`{~>Oe!@kUBj!Hp&(1WB(zuWOT)~i>7t2u%}RA?o0 zm8h4z#C+}J;#mOoN7W0a#}nD^k@=Li6uQ-&LNf3S!gv5g1Al`i5047;?*KGVehtUI z;=>aEu@_Q1nKV-ESZy*tSFvx+5~)?qi&!w53(|qBy-f2PbJh_M$EymD7Exu=dSjKt zr@M56WmCl*Ht&1j$qgdX~s!k-;zpSX|&1aHkSbydRuW%R(Ed z$U=H}I4AteYE;`>$#f;zywA1s-CnaZEg8XsmZHrfOU6R%@H&L!l8$Rzsl=0uSOvZr z?)ez>#8s-*ED;w}2iHa~N68-TbVWW)_&NUxeS@d4y|&$^<=p&DMOokwkHnC4^~@cq zY3D2`$Zdef!7m_oVv|Ch=T`tuRMlIUgEEauO_Ma;y#hc33wgUT4%H5v7 Kt$XX<<9`DQj$CK} literal 0 HcmV?d00001 diff --git a/Pdf417.svg b/Pdf417.svg new file mode 100644 index 0000000..cc39c28 --- /dev/null +++ b/Pdf417.svg @@ -0,0 +1,493 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 392b40c..6658cf8 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![Dart test](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart/actions/workflows/dart.yml/badge.svg?branch=main)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart/actions/workflows/dart.yml) -- API version: 3.0 -- SDK version: 1.24.12 +- API version: 4.0 +- SDK version: 4.25.1 This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily @@ -34,7 +34,7 @@ Add this dependency to your *pubspec.yaml*: ```yaml dependencies: - aspose_barcode_cloud: 1.24.12 + aspose_barcode_cloud: 4.25.1 ``` ## Sample usage @@ -48,41 +48,35 @@ import 'dart:io'; import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -import 'package:http/http.dart' show MultipartFile; Future main() async { const fileName = "qr.png"; - final api = BarcodeApi(ApiClient(Configuration( + final client = ApiClient(Configuration( clientId: "Client Id from https://dashboard.aspose.cloud/applications", clientSecret: "Client Secret from https://dashboard.aspose.cloud/applications", // For testing only accessToken: Platform.environment["TEST_CONFIGURATION_ACCESS_TOKEN"], - ))); + )); + final genApi = GenerateApi(client); + final scanApi = ScanApi(client); // Generate image with barcode - final Uint8List generated = await api.getBarcodeGenerate( - EncodeBarcodeType.QR.toString(), - "text", - textLocation: CodeLocation.None.toString(), - ); + final Uint8List generated = + await genApi.generate(EncodeBarcodeType.QR, "text"); // Save generated image to file File(fileName).writeAsBytesSync(generated); print("Generated image saved to '$fileName'"); // Recognize generated image - final formFile = MultipartFile.fromBytes("image", generated.toList(), - filename: "barcode.png"); - final BarcodeResponseList recognized = await api.scanBarcode( - formFile, - decodeTypes: [DecodeBarcodeType.QR], - ); - - if (recognized.barcodes != null && recognized.barcodes!.isNotEmpty) { - print("Recognized Type: ${recognized.barcodes![0].type!}"); - print("Recognized Value: ${recognized.barcodes![0].barcodeValue!}"); + + final BarcodeResponseList recognized = await scanApi.scanMultipart(generated); + + if (recognized.barcodes.isNotEmpty) { + print("Recognized Type: ${recognized.barcodes[0].type!}"); + print("Recognized Value: ${recognized.barcodes[0].barcodeValue!}"); } else { print("No barcode found"); } @@ -109,112 +103,38 @@ All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed und ## Documentation for API Endpoints -All URIs are relative to ** +All URIs are relative to ** Class | Method | HTTP request | Description ----- | ------ | ------------ | ----------- -*BarcodeApi* | [**getBarcodeGenerate**](doc/api/BarcodeApi.md#getbarcodegenerate) | **GET** /barcode/generate | Generate barcode. -*BarcodeApi* | [**getBarcodeRecognize**](doc/api/BarcodeApi.md#getbarcoderecognize) | **GET** /barcode/{name}/recognize | Recognize barcode from a file on server. -*BarcodeApi* | [**postBarcodeRecognizeFromUrlOrContent**](doc/api/BarcodeApi.md#postbarcoderecognizefromurlorcontent) | **POST** /barcode/recognize | Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type \"application/octet-stream\". An image can also be passed as a form field. -*BarcodeApi* | [**postGenerateMultiple**](doc/api/BarcodeApi.md#postgeneratemultiple) | **POST** /barcode/generateMultiple | Generate multiple barcodes and return in response stream -*BarcodeApi* | [**putBarcodeGenerateFile**](doc/api/BarcodeApi.md#putbarcodegeneratefile) | **PUT** /barcode/{name}/generate | Generate barcode and save on server (from query params or from file with json or xml content) -*BarcodeApi* | [**putBarcodeRecognizeFromBody**](doc/api/BarcodeApi.md#putbarcoderecognizefrombody) | **PUT** /barcode/{name}/recognize | Recognition of a barcode from file on server with parameters in body. -*BarcodeApi* | [**putGenerateMultiple**](doc/api/BarcodeApi.md#putgeneratemultiple) | **PUT** /barcode/{name}/generateMultiple | Generate image with multiple barcodes and put new file on server -*BarcodeApi* | [**scanBarcode**](doc/api/BarcodeApi.md#scanbarcode) | **POST** /barcode/scan | Quickly scan a barcode from an image. -*FileApi* | [**copyFile**](doc/api/FileApi.md#copyfile) | **PUT** /barcode/storage/file/copy/{srcPath} | Copy file -*FileApi* | [**deleteFile**](doc/api/FileApi.md#deletefile) | **DELETE** /barcode/storage/file/{path} | Delete file -*FileApi* | [**downloadFile**](doc/api/FileApi.md#downloadfile) | **GET** /barcode/storage/file/{path} | Download file -*FileApi* | [**moveFile**](doc/api/FileApi.md#movefile) | **PUT** /barcode/storage/file/move/{srcPath} | Move file -*FileApi* | [**uploadFile**](doc/api/FileApi.md#uploadfile) | **PUT** /barcode/storage/file/{path} | Upload file -*FolderApi* | [**copyFolder**](doc/api/FolderApi.md#copyfolder) | **PUT** /barcode/storage/folder/copy/{srcPath} | Copy folder -*FolderApi* | [**createFolder**](doc/api/FolderApi.md#createfolder) | **PUT** /barcode/storage/folder/{path} | Create the folder -*FolderApi* | [**deleteFolder**](doc/api/FolderApi.md#deletefolder) | **DELETE** /barcode/storage/folder/{path} | Delete folder -*FolderApi* | [**getFilesList**](doc/api/FolderApi.md#getfileslist) | **GET** /barcode/storage/folder/{path} | Get all files and folders within a folder -*FolderApi* | [**moveFolder**](doc/api/FolderApi.md#movefolder) | **PUT** /barcode/storage/folder/move/{srcPath} | Move folder -*StorageApi* | [**getDiscUsage**](doc/api/StorageApi.md#getdiscusage) | **GET** /barcode/storage/disc | Get disc usage -*StorageApi* | [**getFileVersions**](doc/api/StorageApi.md#getfileversions) | **GET** /barcode/storage/version/{path} | Get file versions -*StorageApi* | [**objectExists**](doc/api/StorageApi.md#objectexists) | **GET** /barcode/storage/exist/{path} | Check if file or folder exists -*StorageApi* | [**storageExists**](doc/api/StorageApi.md#storageexists) | **GET** /barcode/storage/{storageName}/exist | Check if storage exists +*GenerateApi* | [**generate**](doc/api/GenerateApi.md#generate) | **GET** /barcode/generate/{barcodeType} | Generate barcode using GET request with parameters in route and query string. +*GenerateApi* | [**generateBody**](doc/api/GenerateApi.md#generatebody) | **POST** /barcode/generate-body | Generate barcode using POST request with parameters in body in json or xml format. +*GenerateApi* | [**generateMultipart**](doc/api/GenerateApi.md#generatemultipart) | **POST** /barcode/generate-multipart | Generate barcode using POST request with parameters in multipart form. +*RecognizeApi* | [**recognize**](doc/api/RecognizeApi.md#recognize) | **GET** /barcode/recognize | Recognize barcode from file on server using GET requests with parameters in route and query string. +*RecognizeApi* | [**recognizeBase64**](doc/api/RecognizeApi.md#recognizebase64) | **POST** /barcode/recognize-body | Recognize barcode from file in request body using POST requests with parameters in body in json or xml format. +*RecognizeApi* | [**recognizeMultipart**](doc/api/RecognizeApi.md#recognizemultipart) | **POST** /barcode/recognize-multipart | Recognize barcode from file in request body using POST requests with parameters in multipart form. +*ScanApi* | [**scan**](doc/api/ScanApi.md#scan) | **GET** /barcode/scan | Scan barcode from file on server using GET requests with parameter in query string. +*ScanApi* | [**scanBase64**](doc/api/ScanApi.md#scanbase64) | **POST** /barcode/scan-body | Scan barcode from file in request body using POST requests with parameter in body in json or xml format. +*ScanApi* | [**scanMultipart**](doc/api/ScanApi.md#scanmultipart) | **POST** /barcode/scan-multipart | Scan barcode from file in request body using POST requests with parameter in multipart form. ## Documentation For Models - [ApiError](doc/models/ApiError.md) - [ApiErrorResponse](doc/models/ApiErrorResponse.md) -- [AustralianPostParams](doc/models/AustralianPostParams.md) -- [AutoSizeMode](doc/models/AutoSizeMode.md) -- [AvailableGraphicsUnit](doc/models/AvailableGraphicsUnit.md) -- [AztecEncodeMode](doc/models/AztecEncodeMode.md) -- [AztecParams](doc/models/AztecParams.md) -- [AztecSymbolMode](doc/models/AztecSymbolMode.md) +- [BarcodeImageFormat](doc/models/BarcodeImageFormat.md) +- [BarcodeImageParams](doc/models/BarcodeImageParams.md) - [BarcodeResponse](doc/models/BarcodeResponse.md) - [BarcodeResponseList](doc/models/BarcodeResponseList.md) -- [BorderDashStyle](doc/models/BorderDashStyle.md) -- [CaptionParams](doc/models/CaptionParams.md) -- [ChecksumValidation](doc/models/ChecksumValidation.md) -- [CodabarChecksumMode](doc/models/CodabarChecksumMode.md) -- [CodabarParams](doc/models/CodabarParams.md) -- [CodabarSymbol](doc/models/CodabarSymbol.md) -- [CodablockParams](doc/models/CodablockParams.md) -- [Code128Emulation](doc/models/Code128Emulation.md) -- [Code128EncodeMode](doc/models/Code128EncodeMode.md) -- [Code128Params](doc/models/Code128Params.md) -- [Code16KParams](doc/models/Code16KParams.md) - [CodeLocation](doc/models/CodeLocation.md) -- [CouponParams](doc/models/CouponParams.md) -- [CustomerInformationInterpretingType](doc/models/CustomerInformationInterpretingType.md) -- [DataBarParams](doc/models/DataBarParams.md) -- [DataMatrixEccType](doc/models/DataMatrixEccType.md) -- [DataMatrixEncodeMode](doc/models/DataMatrixEncodeMode.md) -- [DataMatrixParams](doc/models/DataMatrixParams.md) -- [DataMatrixVersion](doc/models/DataMatrixVersion.md) - [DecodeBarcodeType](doc/models/DecodeBarcodeType.md) -- [DiscUsage](doc/models/DiscUsage.md) -- [DotCodeEncodeMode](doc/models/DotCodeEncodeMode.md) -- [DotCodeParams](doc/models/DotCodeParams.md) -- [ECIEncodings](doc/models/ECIEncodings.md) -- [EnableChecksum](doc/models/EnableChecksum.md) - [EncodeBarcodeType](doc/models/EncodeBarcodeType.md) -- [Error](doc/models/Error.md) -- [ErrorDetails](doc/models/ErrorDetails.md) -- [FileVersions](doc/models/FileVersions.md) -- [FilesList](doc/models/FilesList.md) -- [FilesUploadResult](doc/models/FilesUploadResult.md) -- [FontMode](doc/models/FontMode.md) -- [FontParams](doc/models/FontParams.md) -- [FontStyle](doc/models/FontStyle.md) -- [GeneratorParams](doc/models/GeneratorParams.md) -- [GeneratorParamsList](doc/models/GeneratorParamsList.md) -- [HanXinEncodeMode](doc/models/HanXinEncodeMode.md) -- [HanXinErrorLevel](doc/models/HanXinErrorLevel.md) -- [HanXinParams](doc/models/HanXinParams.md) -- [HanXinVersion](doc/models/HanXinVersion.md) -- [ITF14BorderType](doc/models/ITF14BorderType.md) -- [ITFParams](doc/models/ITFParams.md) -- [MacroCharacter](doc/models/MacroCharacter.md) -- [MaxiCodeEncodeMode](doc/models/MaxiCodeEncodeMode.md) -- [MaxiCodeMode](doc/models/MaxiCodeMode.md) -- [MaxiCodeParams](doc/models/MaxiCodeParams.md) -- [ObjectExist](doc/models/ObjectExist.md) -- [Padding](doc/models/Padding.md) -- [PatchCodeParams](doc/models/PatchCodeParams.md) -- [PatchFormat](doc/models/PatchFormat.md) -- [Pdf417CompactionMode](doc/models/Pdf417CompactionMode.md) -- [Pdf417ErrorLevel](doc/models/Pdf417ErrorLevel.md) -- [Pdf417MacroTerminator](doc/models/Pdf417MacroTerminator.md) -- [Pdf417Params](doc/models/Pdf417Params.md) -- [PostalParams](doc/models/PostalParams.md) -- [PresetType](doc/models/PresetType.md) -- [QREncodeMode](doc/models/QREncodeMode.md) -- [QREncodeType](doc/models/QREncodeType.md) -- [QRErrorLevel](doc/models/QRErrorLevel.md) -- [QRVersion](doc/models/QRVersion.md) -- [QrParams](doc/models/QrParams.md) -- [ReaderParams](doc/models/ReaderParams.md) +- [EncodeData](doc/models/EncodeData.md) +- [EncodeDataType](doc/models/EncodeDataType.md) +- [GenerateParams](doc/models/GenerateParams.md) +- [GraphicsUnit](doc/models/GraphicsUnit.md) +- [RecognitionImageKind](doc/models/RecognitionImageKind.md) +- [RecognitionMode](doc/models/RecognitionMode.md) +- [RecognizeBase64Request](doc/models/RecognizeBase64Request.md) - [RegionPoint](doc/models/RegionPoint.md) -- [ResultImageInfo](doc/models/ResultImageInfo.md) -- [StorageExist](doc/models/StorageExist.md) -- [StorageFile](doc/models/StorageFile.md) -- [StructuredAppend](doc/models/StructuredAppend.md) -- [TextAlignment](doc/models/TextAlignment.md) -- [FileVersion](doc/models/FileVersion.md) +- [ScanBase64Request](doc/models/ScanBase64Request.md) diff --git a/aztec.png b/aztec.png new file mode 100644 index 0000000000000000000000000000000000000000..4ed7a8070d0855fb8f8b9bb29fa658128b66f6b7 GIT binary patch literal 6720 zcmeHMdsI^C76-AYxJZvR(PV*d>t<@@l^zh7rjVND^e$gzO;&1CjObCrN1EN50kuiX zLb{?&>CH!)R|y~0jLh@^A+toZS($(eR2(27;2x`4>;7~9>#kL|{y6J=XRovN-rruo zz4vc_-^mT@L(tRaPJ_WS5~kqc9kD#>4~v-9tx) z!M=V<3kukjdSUFR&L6$%(TG8tjh^#lC*Cgp+r8HxU$sm9+k%Y^R!c}wkXuK4BYeh; zCnu5ApdgpjEJ%{`ftEGPDK@Jm@SvmWShJ!~6OnFH@^t)j+P^2zki)lD(~Nu)i_Yvb zhj?Bbyq~c(EOezW)vca#U zMGp7!GK(~fbeziCXk@Kl*^kW2F)RM)jj$MyEzqrg;7BkeybF6uQ z?mwB)9H1??Zex$GP0<>V)f(?Pa{PS226pA_@@YtKCU5(m(W$g5#pcW8*+W2~oNwv8 z%0~qoLrx5kE%i>lr^W`DiK~ z+Q<>+K{_KO#xbYg*Yc9;!;38QYvoteq63mjt*Jb0OnuXb@>Q%5!1<>>UblRHX5y41 zx4|w~0efAdM5+0)&EI~)eql7V(m&yoGcR<_s`5MKAQ+$@8aBw<%)zjybsfKz83~5B~0;pK6>ic(hKA4#4;cC~Ex(>v{5d z@J*R^#bZrA7kNIKYXJ0JuL$9Q^}cc5Ax5AW5$>}gU0~WXUgklv4W~QY;5#d`tFS+R z9`4QgE+qM}KXcuc^djv`m_S?}Il>uACsKUC%V%0W$8i`j%CfLhLu>0ofNMV1-@g3? z-j|<7Edm1$bJAbH1k-hFHx=R;(fAY&I1fA1B*xkzPR=?OO) zevYCA32ku+hE}xN_rXyNj*H!mD{{+>y`aEBLAXP7qnSFEi%6+i(FGF*vcLOC3?P=G zO&u!M^N4fWvLMl(hqCvTl|$a!mOPWh+L-)jDYl*&Z=-?4V8IXXi|6<^!)A|e-5kCD z`)aHBqU1kfaz0}%@HDExTWJXuRqG97P;HtiLG-oN$+$)zQtczzb^IYlC>68cd@Ct; zpdGxqBUyB;PQKWg#8spCXuu}X9T1Srohi-7!K@oTWBy+h{kIrp(@Pv`R){empubEu z-X|Wr31RdO{k9N(Aq(mRprY+u7pocK5T!|TR%Fc*kM@*X`w6<&FDH;IMY|#o+W`WT zwA{Q8M;-`{aopV+Hw0Txff|PC=-|C)T@y(WMmRmMW2#a=62a7zrM*dY%uFm$G{~0)kgJV-~4f=QM9#0l9 zRcYTxbJ%7DJW`)_=qS`Y915(N5ScLLP)O4gB2X%%>96(5-3bz?&;Y zBqu2svkS=HwavL0f@upfelD0D>cd7YikIj{h{mk2+|`Fwla9pYg+VA+;MfUbq_=?L zUBmtajRyl18FINCU-{73XW!5V!WuEuR`R+l+NP=TO)B_)Je$ru6FGQrmhgZSAztmI zvM#7>>-AvwR3W*U6p3Zyy3E>er|NJF#hk@6SDZ0Lmr=Hq;j#>HnlWUdUf`cy<4=OA z5k(qSD{agqb=T znL^o!{CGmaJde!SKJrkaKIxWUkVElmUp4;K4S*0g*X0BaUuwXl?G%*xq6=^HFk$8s zH$OHrCky>1YEMdl$dwfHNahaU;-Q%W)d&Z0s_}*a?{1ybGdQrFix%ssq7r?|Ne=RB zjQFlyViqR^Xsc-s1&Kmv@R+?H0TLy;y@IHJC<1;(fDIH!uA-3RGpe3R!YsvcOD6Tf zNGvd8dvb{~jSUTPUgF8hG@jxvzz-7To<=J7X8Th(c zrWH4;?qktXHly50FT5WY)0s&|pD30-Mcw7bznWKsOT~`STFK4kl51T6->|1Bs%H%i za}#B7lb6dZp}l(qQRXGTT|01zha8xcUZfGJt(Bwo1J^92@mrfVND$f_63wVcu}SpX zl6#MZHGC#+uCjmIXmd#QOfQLU(273|Kumk;5GCSuMQ>=AwVoM5U+M;BS?R+ zqJ8F@yIe>%wXO4Kh~l56IDp5=fPg-RKLx&NwjnDZLch~)g?N@#sh50F`oUs4YsQRm z@=Mss0;)ZRT~HA8;(xS!?E~HW*lc{MAr@Lpp1A8lz?SN6kxcuNr$Z7LZSDG?YinY2 F{tfLCE2IDb literal 0 HcmV?d00001 diff --git a/doc/api/BarcodeApi.md b/doc/api/BarcodeApi.md deleted file mode 100644 index d5cc75f..0000000 --- a/doc/api/BarcodeApi.md +++ /dev/null @@ -1,673 +0,0 @@ -# aspose_barcode_cloud.api.BarcodeApi - -## Load the API package -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -All URIs are relative to *https://api.aspose.cloud/v3.0* - -Method | HTTP request | Description ------- | ------------ | ----------- -[**getBarcodeGenerate**](BarcodeApi.md#getBarcodeGenerate) | **GET** /barcode/generate | Generate barcode. -[**getBarcodeRecognize**](BarcodeApi.md#getBarcodeRecognize) | **GET** /barcode/{name}/recognize | Recognize barcode from a file on server. -[**postBarcodeRecognizeFromUrlOrContent**](BarcodeApi.md#postBarcodeRecognizeFromUrlOrContent) | **POST** /barcode/recognize | Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type \"application/octet-stream\". An image can also be passed as a form field. -[**postGenerateMultiple**](BarcodeApi.md#postGenerateMultiple) | **POST** /barcode/generateMultiple | Generate multiple barcodes and return in response stream -[**putBarcodeGenerateFile**](BarcodeApi.md#putBarcodeGenerateFile) | **PUT** /barcode/{name}/generate | Generate barcode and save on server (from query params or from file with json or xml content) -[**putBarcodeRecognizeFromBody**](BarcodeApi.md#putBarcodeRecognizeFromBody) | **PUT** /barcode/{name}/recognize | Recognition of a barcode from file on server with parameters in body. -[**putGenerateMultiple**](BarcodeApi.md#putGenerateMultiple) | **PUT** /barcode/{name}/generateMultiple | Generate image with multiple barcodes and put new file on server -[**scanBarcode**](BarcodeApi.md#scanBarcode) | **POST** /barcode/scan | Quickly scan a barcode from an image. - - -# **getBarcodeGenerate** -> MultipartFile getBarcodeGenerate(type, text, twoDDisplayText, textLocation, textAlignment, textColor, noWrap, resolution, resolutionX, resolutionY, dimensionX, textSpace, units, sizeMode, barHeight, imageHeight, imageWidth, rotationAngle, backColor, barColor, borderColor, borderWidth, borderDashStyle, borderVisible, enableChecksum, enableEscape, filledBars, alwaysShowChecksum, wideNarrowRatio, validateText, supplementData, supplementSpace, barWidthReduction, useAntiAlias, format) - -Generate barcode. - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = BarcodeApi(); -final type = type_example; // String | Type of barcode to generate. -final text = text_example; // String | Text to encode. -final twoDDisplayText = twoDDisplayText_example; // String | Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode -final textLocation = textLocation_example; // String | Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. -final textAlignment = textAlignment_example; // String | Text alignment. -final textColor = textColor_example; // String | Specify the displaying CodeText's Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF -final noWrap = true; // bool | Specify word wraps (line breaks) within text. Default value: false. -final resolution = 1.2; // double | Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. -final resolutionX = 1.2; // double | DEPRECATED: Use 'Resolution' instead. -final resolutionY = 1.2; // double | DEPRECATED: Use 'Resolution' instead. -final dimensionX = 1.2; // double | The smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. -final textSpace = 1.2; // double | Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon. -final units = units_example; // String | Common Units for all measuring in query. Default units: pixel. -final sizeMode = sizeMode_example; // String | Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.None. -final barHeight = 1.2; // double | Height of the barcode in given units. Default units: pixel. -final imageHeight = 1.2; // double | Height of the barcode image in given units. Default units: pixel. -final imageWidth = 1.2; // double | Width of the barcode image in given units. Default units: pixel. -final rotationAngle = 1.2; // double | BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. -final backColor = backColor_example; // String | Background color of the barcode image. Default value: white. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF -final barColor = barColor_example; // String | Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF -final borderColor = borderColor_example; // String | Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF -final borderWidth = 1.2; // double | Border width. Default value: 0. Ignored if Visible is set to false. -final borderDashStyle = borderDashStyle_example; // String | Border dash style. Default value: BorderDashStyle.Solid. -final borderVisible = true; // bool | Border visibility. If false than parameter Width is always ignored (0). Default value: false. -final enableChecksum = enableChecksum_example; // String | Enable checksum during generation 1D barcodes. Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible. Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar Checksum always used: Rest symbology -final enableEscape = true; // bool | Indicates whether explains the character \"\\\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, \"\\\" will be explained as a special escape character. Otherwise, \"\\\" acts as normal characters. Aspose.BarCode supports input decimal ascii code and mnemonic for ASCII control-code characters. For example, \\013 and \\\\CR stands for CR. -final filledBars = true; // bool | Value indicating whether bars are filled. Only for 1D barcodes. Default value: true. -final alwaysShowChecksum = true; // bool | Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes. -final wideNarrowRatio = 1.2; // double | Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard -final validateText = true; // bool | Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. -final supplementData = supplementData_example; // String | Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. -final supplementSpace = 1.2; // double | Space between main the BarCode and supplement BarCode. -final barWidthReduction = 1.2; // double | Bars reduction value that is used to compensate ink spread while printing. -final useAntiAlias = true; // bool | Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. -final format = format_example; // String | Result image format. - -try { - final result = api_instance.getBarcodeGenerate(type, text, twoDDisplayText, textLocation, textAlignment, textColor, noWrap, resolution, resolutionX, resolutionY, dimensionX, textSpace, units, sizeMode, barHeight, imageHeight, imageWidth, rotationAngle, backColor, barColor, borderColor, borderWidth, borderDashStyle, borderVisible, enableChecksum, enableEscape, filledBars, alwaysShowChecksum, wideNarrowRatio, validateText, supplementData, supplementSpace, barWidthReduction, useAntiAlias, format); - print(result); -} catch (e) { - print("Exception when calling BarcodeApi->getBarcodeGenerate: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **type** | **String**| Type of barcode to generate. | - **text** | **String**| Text to encode. | - **twoDDisplayText** | **String**| Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode | [optional] - **textLocation** | **String**| Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. | [optional] - **textAlignment** | **String**| Text alignment. | [optional] - **textColor** | **String**| Specify the displaying CodeText's Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] - **noWrap** | **bool**| Specify word wraps (line breaks) within text. Default value: false. | [optional] - **resolution** | **double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. | [optional] - **resolutionX** | **double**| DEPRECATED: Use 'Resolution' instead. | [optional] - **resolutionY** | **double**| DEPRECATED: Use 'Resolution' instead. | [optional] - **dimensionX** | **double**| The smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. | [optional] - **textSpace** | **double**| Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon. | [optional] - **units** | **String**| Common Units for all measuring in query. Default units: pixel. | [optional] - **sizeMode** | **String**| Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.None. | [optional] - **barHeight** | **double**| Height of the barcode in given units. Default units: pixel. | [optional] - **imageHeight** | **double**| Height of the barcode image in given units. Default units: pixel. | [optional] - **imageWidth** | **double**| Width of the barcode image in given units. Default units: pixel. | [optional] - **rotationAngle** | **double**| BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional] - **backColor** | **String**| Background color of the barcode image. Default value: white. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] - **barColor** | **String**| Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] - **borderColor** | **String**| Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] - **borderWidth** | **double**| Border width. Default value: 0. Ignored if Visible is set to false. | [optional] - **borderDashStyle** | **String**| Border dash style. Default value: BorderDashStyle.Solid. | [optional] - **borderVisible** | **bool**| Border visibility. If false than parameter Width is always ignored (0). Default value: false. | [optional] - **enableChecksum** | **String**| Enable checksum during generation 1D barcodes. Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible. Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar Checksum always used: Rest symbology | [optional] - **enableEscape** | **bool**| Indicates whether explains the character \"\\\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, \"\\\" will be explained as a special escape character. Otherwise, \"\\\" acts as normal characters. Aspose.BarCode supports input decimal ascii code and mnemonic for ASCII control-code characters. For example, \\013 and \\\\CR stands for CR. | [optional] - **filledBars** | **bool**| Value indicating whether bars are filled. Only for 1D barcodes. Default value: true. | [optional] - **alwaysShowChecksum** | **bool**| Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes. | [optional] - **wideNarrowRatio** | **double**| Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard | [optional] - **validateText** | **bool**| Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. | [optional] - **supplementData** | **String**| Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. | [optional] - **supplementSpace** | **double**| Space between main the BarCode and supplement BarCode. | [optional] - **barWidthReduction** | **double**| Bars reduction value that is used to compensate ink spread while printing. | [optional] - **useAntiAlias** | **bool**| Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. | [optional] - **format** | **String**| Result image format. | [optional] - -### Return type - -[**MultipartFile**](File.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: image/png, image/bmp, image/gif, image/jpeg, image/svg+xml, image/tiff - - -# **getBarcodeRecognize** -> BarcodeResponseList getBarcodeRecognize(name, type, types, checksumValidation, detectEncoding, preset, rectX, rectY, rectWidth, rectHeight, stripFNC, timeout, medianSmoothingWindowSize, allowMedianSmoothing, allowComplexBackground, allowDatamatrixIndustrialBarcodes, allowDecreasedImage, allowDetectScanGap, allowIncorrectBarcodes, allowInvertImage, allowMicroWhiteSpotsRemoving, allowOneDFastBarcodesDetector, allowOneDWipedBarsRestoration, allowQRMicroQrRestoration, allowRegularImage, allowSaltAndPepperFiltering, allowWhiteSpotsRemoving, checkMore1DVariants, fastScanOnly, allowAdditionalRestorations, regionLikelihoodThresholdPercent, scanWindowSizes, similarity, skipDiagonalSearch, readTinyBarcodes, australianPostEncodingTable, ignoreEndingFillingPatternsForCTable, storage, folder) - -Recognize barcode from a file on server. - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = BarcodeApi(); -final name = name_example; // String | The image file name. -final type = type_example; // String | The type of barcode to read. -final types = []; // List | Multiple barcode types to read. -final checksumValidation = checksumValidation_example; // String | Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies -final detectEncoding = true; // bool | A flag which force engine to detect codetext encoding for Unicode. -final preset = preset_example; // String | Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. -final rectX = 56; // int | Set X of top left corner of area for recognition. -final rectY = 56; // int | Set Y of top left corner of area for recognition. -final rectWidth = 56; // int | Set Width of area for recognition. -final rectHeight = 56; // int | Set Height of area for recognition. -final stripFNC = true; // bool | Value indicating whether FNC symbol strip must be done. -final timeout = 56; // int | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. -final medianSmoothingWindowSize = 56; // int | Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. -final allowMedianSmoothing = true; // bool | Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. -final allowComplexBackground = true; // bool | Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. -final allowDatamatrixIndustrialBarcodes = true; // bool | Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes. Slow mode which helps only for dashed barcodes which consist from spots. -final allowDecreasedImage = true; // bool | Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms. Mode helps to recognize barcodes which are noised and blurred but captured with high resolution. -final allowDetectScanGap = true; // bool | Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes. -final allowIncorrectBarcodes = true; // bool | Allows engine to recognize barcodes which has incorrect checksum or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text. -final allowInvertImage = true; // bool | Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background. -final allowMicroWhiteSpotsRemoving = true; // bool | Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize slightly damaged Postal barcodes. -final allowOneDFastBarcodesDetector = true; // bool | Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image. Mode helps to quickly recognize generated barcodes from Internet. -final allowOneDWipedBarsRestoration = true; // bool | Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern. -final allowQRMicroQrRestoration = true; // bool | Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes. -final allowRegularImage = true; // bool | Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is. -final allowSaltAndPepperFiltering = true; // bool | Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots. -final allowWhiteSpotsRemoving = true; // bool | Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. -final checkMore1DVariants = true; // bool | Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. -final fastScanOnly = true; // bool | Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. -final allowAdditionalRestorations = true; // bool | Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. -final regionLikelihoodThresholdPercent = 1.2; // double | Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. -final scanWindowSizes = []; // List | Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. -final similarity = 1.2; // double | Similarity coefficient depends on how homogeneous barcodes are. Use high value for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] -final skipDiagonalSearch = true; // bool | Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time. -final readTinyBarcodes = true; // bool | Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. -final australianPostEncodingTable = australianPostEncodingTable_example; // String | Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. -final ignoreEndingFillingPatternsForCTable = true; // bool | The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequence \"333\" of filling patterns is decoded as letter \"z\". -final storage = storage_example; // String | The image storage. -final folder = folder_example; // String | The image folder. - -try { - final result = api_instance.getBarcodeRecognize(name, type, types, checksumValidation, detectEncoding, preset, rectX, rectY, rectWidth, rectHeight, stripFNC, timeout, medianSmoothingWindowSize, allowMedianSmoothing, allowComplexBackground, allowDatamatrixIndustrialBarcodes, allowDecreasedImage, allowDetectScanGap, allowIncorrectBarcodes, allowInvertImage, allowMicroWhiteSpotsRemoving, allowOneDFastBarcodesDetector, allowOneDWipedBarsRestoration, allowQRMicroQrRestoration, allowRegularImage, allowSaltAndPepperFiltering, allowWhiteSpotsRemoving, checkMore1DVariants, fastScanOnly, allowAdditionalRestorations, regionLikelihoodThresholdPercent, scanWindowSizes, similarity, skipDiagonalSearch, readTinyBarcodes, australianPostEncodingTable, ignoreEndingFillingPatternsForCTable, storage, folder); - print(result); -} catch (e) { - print("Exception when calling BarcodeApi->getBarcodeRecognize: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **name** | **String**| The image file name. | - **type** | **String**| The type of barcode to read. | [optional] - **types** | [**List<DecodeBarcodeType>**](DecodeBarcodeType.md)| Multiple barcode types to read. | [optional] - **checksumValidation** | **String**| Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies | [optional] - **detectEncoding** | **bool**| A flag which force engine to detect codetext encoding for Unicode. | [optional] - **preset** | **String**| Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. | [optional] - **rectX** | **int**| Set X of top left corner of area for recognition. | [optional] - **rectY** | **int**| Set Y of top left corner of area for recognition. | [optional] - **rectWidth** | **int**| Set Width of area for recognition. | [optional] - **rectHeight** | **int**| Set Height of area for recognition. | [optional] - **stripFNC** | **bool**| Value indicating whether FNC symbol strip must be done. | [optional] - **timeout** | **int**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional] - **medianSmoothingWindowSize** | **int**| Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional] - **allowMedianSmoothing** | **bool**| Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional] - **allowComplexBackground** | **bool**| Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional] - **allowDatamatrixIndustrialBarcodes** | **bool**| Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes. Slow mode which helps only for dashed barcodes which consist from spots. | [optional] - **allowDecreasedImage** | **bool**| Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms. Mode helps to recognize barcodes which are noised and blurred but captured with high resolution. | [optional] - **allowDetectScanGap** | **bool**| Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes. | [optional] - **allowIncorrectBarcodes** | **bool**| Allows engine to recognize barcodes which has incorrect checksum or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text. | [optional] - **allowInvertImage** | **bool**| Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background. | [optional] - **allowMicroWhiteSpotsRemoving** | **bool**| Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize slightly damaged Postal barcodes. | [optional] - **allowOneDFastBarcodesDetector** | **bool**| Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image. Mode helps to quickly recognize generated barcodes from Internet. | [optional] - **allowOneDWipedBarsRestoration** | **bool**| Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern. | [optional] - **allowQRMicroQrRestoration** | **bool**| Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes. | [optional] - **allowRegularImage** | **bool**| Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is. | [optional] - **allowSaltAndPepperFiltering** | **bool**| Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots. | [optional] - **allowWhiteSpotsRemoving** | **bool**| Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. | [optional] - **checkMore1DVariants** | **bool**| Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. | [optional] - **fastScanOnly** | **bool**| Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. | [optional] - **allowAdditionalRestorations** | **bool**| Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. | [optional] - **regionLikelihoodThresholdPercent** | **double**| Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. | [optional] - **scanWindowSizes** | [**List<int>**](int.md)| Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. | [optional] - **similarity** | **double**| Similarity coefficient depends on how homogeneous barcodes are. Use high value for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] | [optional] - **skipDiagonalSearch** | **bool**| Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time. | [optional] - **readTinyBarcodes** | **bool**| Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. | [optional] - **australianPostEncodingTable** | **String**| Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. | [optional] - **ignoreEndingFillingPatternsForCTable** | **bool**| The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequence \"333\" of filling patterns is decoded as letter \"z\". | [optional] - **storage** | **String**| The image storage. | [optional] - **folder** | **String**| The image folder. | [optional] - -### Return type - -[**BarcodeResponseList**](BarcodeResponseList.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **postBarcodeRecognizeFromUrlOrContent** -> BarcodeResponseList postBarcodeRecognizeFromUrlOrContent(type, types, checksumValidation, detectEncoding, preset, rectX, rectY, rectWidth, rectHeight, stripFNC, timeout, medianSmoothingWindowSize, allowMedianSmoothing, allowComplexBackground, allowDatamatrixIndustrialBarcodes, allowDecreasedImage, allowDetectScanGap, allowIncorrectBarcodes, allowInvertImage, allowMicroWhiteSpotsRemoving, allowOneDFastBarcodesDetector, allowOneDWipedBarsRestoration, allowQRMicroQrRestoration, allowRegularImage, allowSaltAndPepperFiltering, allowWhiteSpotsRemoving, checkMore1DVariants, fastScanOnly, allowAdditionalRestorations, regionLikelihoodThresholdPercent, scanWindowSizes, similarity, skipDiagonalSearch, readTinyBarcodes, australianPostEncodingTable, ignoreEndingFillingPatternsForCTable, url, image) - -Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type \"application/octet-stream\". An image can also be passed as a form field. - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = BarcodeApi(); -final type = type_example; // String | The type of barcode to read. -final types = []; // List | Multiple barcode types to read. -final checksumValidation = checksumValidation_example; // String | Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies -final detectEncoding = true; // bool | A flag which force engine to detect codetext encoding for Unicode. -final preset = preset_example; // String | Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. -final rectX = 56; // int | Set X of top left corner of area for recognition. -final rectY = 56; // int | Set Y of top left corner of area for recognition. -final rectWidth = 56; // int | Set Width of area for recognition. -final rectHeight = 56; // int | Set Height of area for recognition. -final stripFNC = true; // bool | Value indicating whether FNC symbol strip must be done. -final timeout = 56; // int | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. -final medianSmoothingWindowSize = 56; // int | Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. -final allowMedianSmoothing = true; // bool | Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. -final allowComplexBackground = true; // bool | Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. -final allowDatamatrixIndustrialBarcodes = true; // bool | Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes. Slow mode which helps only for dashed barcodes which consist from spots. -final allowDecreasedImage = true; // bool | Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms. Mode helps to recognize barcodes which are noised and blurred but captured with high resolution. -final allowDetectScanGap = true; // bool | Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes. -final allowIncorrectBarcodes = true; // bool | Allows engine to recognize barcodes which has incorrect checksum or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text. -final allowInvertImage = true; // bool | Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background. -final allowMicroWhiteSpotsRemoving = true; // bool | Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize slightly damaged Postal barcodes. -final allowOneDFastBarcodesDetector = true; // bool | Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image. Mode helps to quickly recognize generated barcodes from Internet. -final allowOneDWipedBarsRestoration = true; // bool | Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern. -final allowQRMicroQrRestoration = true; // bool | Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes. -final allowRegularImage = true; // bool | Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is. -final allowSaltAndPepperFiltering = true; // bool | Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots. -final allowWhiteSpotsRemoving = true; // bool | Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. -final checkMore1DVariants = true; // bool | Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. -final fastScanOnly = true; // bool | Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. -final allowAdditionalRestorations = true; // bool | Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. -final regionLikelihoodThresholdPercent = 1.2; // double | Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. -final scanWindowSizes = []; // List | Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. -final similarity = 1.2; // double | Similarity coefficient depends on how homogeneous barcodes are. Use high value for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] -final skipDiagonalSearch = true; // bool | Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time. -final readTinyBarcodes = true; // bool | Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. -final australianPostEncodingTable = australianPostEncodingTable_example; // String | Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. -final ignoreEndingFillingPatternsForCTable = true; // bool | The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequence \"333\" of filling patterns is decoded as letter \"z\". -final url = url_example; // String | The image file url. -final image = /path/to/file.txt; // MultipartFile | Image data - -try { - final result = api_instance.postBarcodeRecognizeFromUrlOrContent(type, types, checksumValidation, detectEncoding, preset, rectX, rectY, rectWidth, rectHeight, stripFNC, timeout, medianSmoothingWindowSize, allowMedianSmoothing, allowComplexBackground, allowDatamatrixIndustrialBarcodes, allowDecreasedImage, allowDetectScanGap, allowIncorrectBarcodes, allowInvertImage, allowMicroWhiteSpotsRemoving, allowOneDFastBarcodesDetector, allowOneDWipedBarsRestoration, allowQRMicroQrRestoration, allowRegularImage, allowSaltAndPepperFiltering, allowWhiteSpotsRemoving, checkMore1DVariants, fastScanOnly, allowAdditionalRestorations, regionLikelihoodThresholdPercent, scanWindowSizes, similarity, skipDiagonalSearch, readTinyBarcodes, australianPostEncodingTable, ignoreEndingFillingPatternsForCTable, url, image); - print(result); -} catch (e) { - print("Exception when calling BarcodeApi->postBarcodeRecognizeFromUrlOrContent: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **type** | **String**| The type of barcode to read. | [optional] - **types** | [**List<DecodeBarcodeType>**](DecodeBarcodeType.md)| Multiple barcode types to read. | [optional] - **checksumValidation** | **String**| Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies | [optional] - **detectEncoding** | **bool**| A flag which force engine to detect codetext encoding for Unicode. | [optional] - **preset** | **String**| Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. | [optional] - **rectX** | **int**| Set X of top left corner of area for recognition. | [optional] - **rectY** | **int**| Set Y of top left corner of area for recognition. | [optional] - **rectWidth** | **int**| Set Width of area for recognition. | [optional] - **rectHeight** | **int**| Set Height of area for recognition. | [optional] - **stripFNC** | **bool**| Value indicating whether FNC symbol strip must be done. | [optional] - **timeout** | **int**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional] - **medianSmoothingWindowSize** | **int**| Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional] - **allowMedianSmoothing** | **bool**| Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional] - **allowComplexBackground** | **bool**| Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional] - **allowDatamatrixIndustrialBarcodes** | **bool**| Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes. Slow mode which helps only for dashed barcodes which consist from spots. | [optional] - **allowDecreasedImage** | **bool**| Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms. Mode helps to recognize barcodes which are noised and blurred but captured with high resolution. | [optional] - **allowDetectScanGap** | **bool**| Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes. | [optional] - **allowIncorrectBarcodes** | **bool**| Allows engine to recognize barcodes which has incorrect checksum or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text. | [optional] - **allowInvertImage** | **bool**| Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background. | [optional] - **allowMicroWhiteSpotsRemoving** | **bool**| Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize slightly damaged Postal barcodes. | [optional] - **allowOneDFastBarcodesDetector** | **bool**| Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image. Mode helps to quickly recognize generated barcodes from Internet. | [optional] - **allowOneDWipedBarsRestoration** | **bool**| Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern. | [optional] - **allowQRMicroQrRestoration** | **bool**| Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes. | [optional] - **allowRegularImage** | **bool**| Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is. | [optional] - **allowSaltAndPepperFiltering** | **bool**| Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots. | [optional] - **allowWhiteSpotsRemoving** | **bool**| Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. | [optional] - **checkMore1DVariants** | **bool**| Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. | [optional] - **fastScanOnly** | **bool**| Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. | [optional] - **allowAdditionalRestorations** | **bool**| Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. | [optional] - **regionLikelihoodThresholdPercent** | **double**| Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. | [optional] - **scanWindowSizes** | [**List<int>**](int.md)| Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. | [optional] - **similarity** | **double**| Similarity coefficient depends on how homogeneous barcodes are. Use high value for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] | [optional] - **skipDiagonalSearch** | **bool**| Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time. | [optional] - **readTinyBarcodes** | **bool**| Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. | [optional] - **australianPostEncodingTable** | **String**| Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. | [optional] - **ignoreEndingFillingPatternsForCTable** | **bool**| The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequence \"333\" of filling patterns is decoded as letter \"z\". | [optional] - **url** | **String**| The image file url. | [optional] - **image** | **MultipartFile**| Image data | [optional] - -### Return type - -[**BarcodeResponseList**](BarcodeResponseList.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded, application/octet-stream - - **Accept**: application/json - - -# **postGenerateMultiple** -> MultipartFile postGenerateMultiple(generatorParamsList, format) - -Generate multiple barcodes and return in response stream - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = BarcodeApi(); -final generatorParamsList = GeneratorParamsList(); // GeneratorParamsList | List of barcodes -final format = format_example; // String | Format to return stream in - -try { - final result = api_instance.postGenerateMultiple(generatorParamsList, format); - print(result); -} catch (e) { - print("Exception when calling BarcodeApi->postGenerateMultiple: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **generatorParamsList** | [**GeneratorParamsList**](GeneratorParamsList.md)| List of barcodes | - **format** | **String**| Format to return stream in | [optional] [default to png] - -### Return type - -[**MultipartFile**](File.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: image/png, image/bmp, image/gif, image/jpeg, image/svg+xml, image/tiff - - -# **putBarcodeGenerateFile** -> ResultImageInfo putBarcodeGenerateFile(name, type, text, twoDDisplayText, textLocation, textAlignment, textColor, noWrap, resolution, resolutionX, resolutionY, dimensionX, textSpace, units, sizeMode, barHeight, imageHeight, imageWidth, rotationAngle, backColor, barColor, borderColor, borderWidth, borderDashStyle, borderVisible, enableChecksum, enableEscape, filledBars, alwaysShowChecksum, wideNarrowRatio, validateText, supplementData, supplementSpace, barWidthReduction, useAntiAlias, storage, folder, format) - -Generate barcode and save on server (from query params or from file with json or xml content) - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = BarcodeApi(); -final name = name_example; // String | The image file name. -final type = type_example; // String | Type of barcode to generate. -final text = text_example; // String | Text to encode. -final twoDDisplayText = twoDDisplayText_example; // String | Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode -final textLocation = textLocation_example; // String | Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. -final textAlignment = textAlignment_example; // String | Text alignment. -final textColor = textColor_example; // String | Specify the displaying CodeText's Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF -final noWrap = true; // bool | Specify word wraps (line breaks) within text. Default value: false. -final resolution = 1.2; // double | Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. -final resolutionX = 1.2; // double | DEPRECATED: Use 'Resolution' instead. -final resolutionY = 1.2; // double | DEPRECATED: Use 'Resolution' instead. -final dimensionX = 1.2; // double | The smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. -final textSpace = 1.2; // double | Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon. -final units = units_example; // String | Common Units for all measuring in query. Default units: pixel. -final sizeMode = sizeMode_example; // String | Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.None. -final barHeight = 1.2; // double | Height of the barcode in given units. Default units: pixel. -final imageHeight = 1.2; // double | Height of the barcode image in given units. Default units: pixel. -final imageWidth = 1.2; // double | Width of the barcode image in given units. Default units: pixel. -final rotationAngle = 1.2; // double | BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. -final backColor = backColor_example; // String | Background color of the barcode image. Default value: white. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF -final barColor = barColor_example; // String | Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF -final borderColor = borderColor_example; // String | Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF -final borderWidth = 1.2; // double | Border width. Default value: 0. Ignored if Visible is set to false. -final borderDashStyle = borderDashStyle_example; // String | Border dash style. Default value: BorderDashStyle.Solid. -final borderVisible = true; // bool | Border visibility. If false than parameter Width is always ignored (0). Default value: false. -final enableChecksum = enableChecksum_example; // String | Enable checksum during generation 1D barcodes. Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible. Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar Checksum always used: Rest symbology -final enableEscape = true; // bool | Indicates whether explains the character \"\\\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, \"\\\" will be explained as a special escape character. Otherwise, \"\\\" acts as normal characters. Aspose.BarCode supports input decimal ascii code and mnemonic for ASCII control-code characters. For example, \\013 and \\\\CR stands for CR. -final filledBars = true; // bool | Value indicating whether bars are filled. Only for 1D barcodes. Default value: true. -final alwaysShowChecksum = true; // bool | Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes. -final wideNarrowRatio = 1.2; // double | Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard -final validateText = true; // bool | Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. -final supplementData = supplementData_example; // String | Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. -final supplementSpace = 1.2; // double | Space between main the BarCode and supplement BarCode. -final barWidthReduction = 1.2; // double | Bars reduction value that is used to compensate ink spread while printing. -final useAntiAlias = true; // bool | Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. -final storage = storage_example; // String | Image's storage. -final folder = folder_example; // String | Image's folder. -final format = format_example; // String | The image format. - -try { - final result = api_instance.putBarcodeGenerateFile(name, type, text, twoDDisplayText, textLocation, textAlignment, textColor, noWrap, resolution, resolutionX, resolutionY, dimensionX, textSpace, units, sizeMode, barHeight, imageHeight, imageWidth, rotationAngle, backColor, barColor, borderColor, borderWidth, borderDashStyle, borderVisible, enableChecksum, enableEscape, filledBars, alwaysShowChecksum, wideNarrowRatio, validateText, supplementData, supplementSpace, barWidthReduction, useAntiAlias, storage, folder, format); - print(result); -} catch (e) { - print("Exception when calling BarcodeApi->putBarcodeGenerateFile: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **name** | **String**| The image file name. | - **type** | **String**| Type of barcode to generate. | - **text** | **String**| Text to encode. | - **twoDDisplayText** | **String**| Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode | [optional] - **textLocation** | **String**| Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. | [optional] - **textAlignment** | **String**| Text alignment. | [optional] - **textColor** | **String**| Specify the displaying CodeText's Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] - **noWrap** | **bool**| Specify word wraps (line breaks) within text. Default value: false. | [optional] - **resolution** | **double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. | [optional] - **resolutionX** | **double**| DEPRECATED: Use 'Resolution' instead. | [optional] - **resolutionY** | **double**| DEPRECATED: Use 'Resolution' instead. | [optional] - **dimensionX** | **double**| The smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. | [optional] - **textSpace** | **double**| Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon. | [optional] - **units** | **String**| Common Units for all measuring in query. Default units: pixel. | [optional] - **sizeMode** | **String**| Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.None. | [optional] - **barHeight** | **double**| Height of the barcode in given units. Default units: pixel. | [optional] - **imageHeight** | **double**| Height of the barcode image in given units. Default units: pixel. | [optional] - **imageWidth** | **double**| Width of the barcode image in given units. Default units: pixel. | [optional] - **rotationAngle** | **double**| BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional] - **backColor** | **String**| Background color of the barcode image. Default value: white. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] - **barColor** | **String**| Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] - **borderColor** | **String**| Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] - **borderWidth** | **double**| Border width. Default value: 0. Ignored if Visible is set to false. | [optional] - **borderDashStyle** | **String**| Border dash style. Default value: BorderDashStyle.Solid. | [optional] - **borderVisible** | **bool**| Border visibility. If false than parameter Width is always ignored (0). Default value: false. | [optional] - **enableChecksum** | **String**| Enable checksum during generation 1D barcodes. Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible. Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar Checksum always used: Rest symbology | [optional] - **enableEscape** | **bool**| Indicates whether explains the character \"\\\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, \"\\\" will be explained as a special escape character. Otherwise, \"\\\" acts as normal characters. Aspose.BarCode supports input decimal ascii code and mnemonic for ASCII control-code characters. For example, \\013 and \\\\CR stands for CR. | [optional] - **filledBars** | **bool**| Value indicating whether bars are filled. Only for 1D barcodes. Default value: true. | [optional] - **alwaysShowChecksum** | **bool**| Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes. | [optional] - **wideNarrowRatio** | **double**| Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard | [optional] - **validateText** | **bool**| Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. | [optional] - **supplementData** | **String**| Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. | [optional] - **supplementSpace** | **double**| Space between main the BarCode and supplement BarCode. | [optional] - **barWidthReduction** | **double**| Bars reduction value that is used to compensate ink spread while printing. | [optional] - **useAntiAlias** | **bool**| Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. | [optional] - **storage** | **String**| Image's storage. | [optional] - **folder** | **String**| Image's folder. | [optional] - **format** | **String**| The image format. | [optional] - -### Return type - -[**ResultImageInfo**](ResultImageInfo.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded, application/json, application/xml - - **Accept**: application/json - - -# **putBarcodeRecognizeFromBody** -> BarcodeResponseList putBarcodeRecognizeFromBody(name, readerParams, type, storage, folder) - -Recognition of a barcode from file on server with parameters in body. - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = BarcodeApi(); -final name = name_example; // String | The image file name. -final readerParams = ReaderParams(); // ReaderParams | BarcodeReader object with parameters. -final type = type_example; // String | -final storage = storage_example; // String | The storage name -final folder = folder_example; // String | The image folder. - -try { - final result = api_instance.putBarcodeRecognizeFromBody(name, readerParams, type, storage, folder); - print(result); -} catch (e) { - print("Exception when calling BarcodeApi->putBarcodeRecognizeFromBody: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **name** | **String**| The image file name. | - **readerParams** | [**ReaderParams**](ReaderParams.md)| BarcodeReader object with parameters. | - **type** | **String**| | [optional] - **storage** | **String**| The storage name | [optional] - **folder** | **String**| The image folder. | [optional] - -### Return type - -[**BarcodeResponseList**](BarcodeResponseList.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **putGenerateMultiple** -> ResultImageInfo putGenerateMultiple(name, generatorParamsList, format, folder, storage) - -Generate image with multiple barcodes and put new file on server - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = BarcodeApi(); -final name = name_example; // String | New filename -final generatorParamsList = GeneratorParamsList(); // GeneratorParamsList | List of barcodes -final format = format_example; // String | Format of file -final folder = folder_example; // String | Folder to place file to -final storage = storage_example; // String | The storage name - -try { - final result = api_instance.putGenerateMultiple(name, generatorParamsList, format, folder, storage); - print(result); -} catch (e) { - print("Exception when calling BarcodeApi->putGenerateMultiple: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **name** | **String**| New filename | - **generatorParamsList** | [**GeneratorParamsList**](GeneratorParamsList.md)| List of barcodes | - **format** | **String**| Format of file | [optional] [default to png] - **folder** | **String**| Folder to place file to | [optional] - **storage** | **String**| The storage name | [optional] - -### Return type - -[**ResultImageInfo**](ResultImageInfo.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json, application/xml - - **Accept**: application/json - - -# **scanBarcode** -> BarcodeResponseList scanBarcode(imageFile, decodeTypes, timeout, checksumValidation) - -Quickly scan a barcode from an image. - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = BarcodeApi(); -final imageFile = /path/to/file.txt; // MultipartFile | Image as file -final decodeTypes = []; // List | Types of barcode to recognize -final timeout = 56; // int | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. -final checksumValidation = checksumValidation_example; // String | Checksum validation setting. Default is ON. - -try { - final result = api_instance.scanBarcode(imageFile, decodeTypes, timeout, checksumValidation); - print(result); -} catch (e) { - print("Exception when calling BarcodeApi->scanBarcode: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **imageFile** | **MultipartFile**| Image as file | - **decodeTypes** | [**List<DecodeBarcodeType>**](DecodeBarcodeType.md)| Types of barcode to recognize | [optional] - **timeout** | **int**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional] - **checksumValidation** | **String**| Checksum validation setting. Default is ON. | [optional] - -### Return type - -[**BarcodeResponseList**](BarcodeResponseList.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - - diff --git a/doc/api/FileApi.md b/doc/api/FileApi.md deleted file mode 100644 index 1d570fd..0000000 --- a/doc/api/FileApi.md +++ /dev/null @@ -1,253 +0,0 @@ -# aspose_barcode_cloud.api.FileApi - -## Load the API package -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -All URIs are relative to *https://api.aspose.cloud/v3.0* - -Method | HTTP request | Description ------- | ------------ | ----------- -[**copyFile**](FileApi.md#copyFile) | **PUT** /barcode/storage/file/copy/{srcPath} | Copy file -[**deleteFile**](FileApi.md#deleteFile) | **DELETE** /barcode/storage/file/{path} | Delete file -[**downloadFile**](FileApi.md#downloadFile) | **GET** /barcode/storage/file/{path} | Download file -[**moveFile**](FileApi.md#moveFile) | **PUT** /barcode/storage/file/move/{srcPath} | Move file -[**uploadFile**](FileApi.md#uploadFile) | **PUT** /barcode/storage/file/{path} | Upload file - - -# **copyFile** -> copyFile(srcPath, destPath, srcStorageName, destStorageName, versionId) - -Copy file - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FileApi(); -final srcPath = srcPath_example; // String | Source file path e.g. '/folder/file.ext' -final destPath = destPath_example; // String | Destination file path -final srcStorageName = srcStorageName_example; // String | Source storage name -final destStorageName = destStorageName_example; // String | Destination storage name -final versionId = versionId_example; // String | File version ID to copy - -try { - api_instance.copyFile(srcPath, destPath, srcStorageName, destStorageName, versionId); -} catch (e) { - print("Exception when calling FileApi->copyFile: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **srcPath** | **String**| Source file path e.g. '/folder/file.ext' | - **destPath** | **String**| Destination file path | - **srcStorageName** | **String**| Source storage name | [optional] - **destStorageName** | **String**| Destination storage name | [optional] - **versionId** | **String**| File version ID to copy | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **deleteFile** -> deleteFile(path, storageName, versionId) - -Delete file - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FileApi(); -final path = path_example; // String | File path e.g. '/folder/file.ext' -final storageName = storageName_example; // String | Storage name -final versionId = versionId_example; // String | File version ID to delete - -try { - api_instance.deleteFile(path, storageName, versionId); -} catch (e) { - print("Exception when calling FileApi->deleteFile: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **path** | **String**| File path e.g. '/folder/file.ext' | - **storageName** | **String**| Storage name | [optional] - **versionId** | **String**| File version ID to delete | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **downloadFile** -> MultipartFile downloadFile(path, storageName, versionId) - -Download file - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FileApi(); -final path = path_example; // String | File path e.g. '/folder/file.ext' -final storageName = storageName_example; // String | Storage name -final versionId = versionId_example; // String | File version ID to download - -try { - final result = api_instance.downloadFile(path, storageName, versionId); - print(result); -} catch (e) { - print("Exception when calling FileApi->downloadFile: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **path** | **String**| File path e.g. '/folder/file.ext' | - **storageName** | **String**| Storage name | [optional] - **versionId** | **String**| File version ID to download | [optional] - -### Return type - -[**MultipartFile**](File.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: multipart/form-data - - -# **moveFile** -> moveFile(srcPath, destPath, srcStorageName, destStorageName, versionId) - -Move file - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FileApi(); -final srcPath = srcPath_example; // String | Source file path e.g. '/src.ext' -final destPath = destPath_example; // String | Destination file path e.g. '/dest.ext' -final srcStorageName = srcStorageName_example; // String | Source storage name -final destStorageName = destStorageName_example; // String | Destination storage name -final versionId = versionId_example; // String | File version ID to move - -try { - api_instance.moveFile(srcPath, destPath, srcStorageName, destStorageName, versionId); -} catch (e) { - print("Exception when calling FileApi->moveFile: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **srcPath** | **String**| Source file path e.g. '/src.ext' | - **destPath** | **String**| Destination file path e.g. '/dest.ext' | - **srcStorageName** | **String**| Source storage name | [optional] - **destStorageName** | **String**| Destination storage name | [optional] - **versionId** | **String**| File version ID to move | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **uploadFile** -> FilesUploadResult uploadFile(path, file, storageName) - -Upload file - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FileApi(); -final path = path_example; // String | Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. -final file = /path/to/file.txt; // MultipartFile | File to upload -final storageName = storageName_example; // String | Storage name - -try { - final result = api_instance.uploadFile(path, file, storageName); - print(result); -} catch (e) { - print("Exception when calling FileApi->uploadFile: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **path** | **String**| Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header. | - **file** | **MultipartFile**| File to upload | - **storageName** | **String**| Storage name | [optional] - -### Return type - -[**FilesUploadResult**](FilesUploadResult.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - - diff --git a/doc/api/FolderApi.md b/doc/api/FolderApi.md deleted file mode 100644 index c06f491..0000000 --- a/doc/api/FolderApi.md +++ /dev/null @@ -1,244 +0,0 @@ -# aspose_barcode_cloud.api.FolderApi - -## Load the API package -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -All URIs are relative to *https://api.aspose.cloud/v3.0* - -Method | HTTP request | Description ------- | ------------ | ----------- -[**copyFolder**](FolderApi.md#copyFolder) | **PUT** /barcode/storage/folder/copy/{srcPath} | Copy folder -[**createFolder**](FolderApi.md#createFolder) | **PUT** /barcode/storage/folder/{path} | Create the folder -[**deleteFolder**](FolderApi.md#deleteFolder) | **DELETE** /barcode/storage/folder/{path} | Delete folder -[**getFilesList**](FolderApi.md#getFilesList) | **GET** /barcode/storage/folder/{path} | Get all files and folders within a folder -[**moveFolder**](FolderApi.md#moveFolder) | **PUT** /barcode/storage/folder/move/{srcPath} | Move folder - - -# **copyFolder** -> copyFolder(srcPath, destPath, srcStorageName, destStorageName) - -Copy folder - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FolderApi(); -final srcPath = srcPath_example; // String | Source folder path e.g. '/src' -final destPath = destPath_example; // String | Destination folder path e.g. '/dst' -final srcStorageName = srcStorageName_example; // String | Source storage name -final destStorageName = destStorageName_example; // String | Destination storage name - -try { - api_instance.copyFolder(srcPath, destPath, srcStorageName, destStorageName); -} catch (e) { - print("Exception when calling FolderApi->copyFolder: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **srcPath** | **String**| Source folder path e.g. '/src' | - **destPath** | **String**| Destination folder path e.g. '/dst' | - **srcStorageName** | **String**| Source storage name | [optional] - **destStorageName** | **String**| Destination storage name | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **createFolder** -> createFolder(path, storageName) - -Create the folder - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FolderApi(); -final path = path_example; // String | Folder path to create e.g. 'folder_1/folder_2/' -final storageName = storageName_example; // String | Storage name - -try { - api_instance.createFolder(path, storageName); -} catch (e) { - print("Exception when calling FolderApi->createFolder: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **path** | **String**| Folder path to create e.g. 'folder_1/folder_2/' | - **storageName** | **String**| Storage name | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **deleteFolder** -> deleteFolder(path, storageName, recursive) - -Delete folder - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FolderApi(); -final path = path_example; // String | Folder path e.g. '/folder' -final storageName = storageName_example; // String | Storage name -final recursive = true; // bool | Enable to delete folders, subfolders and files - -try { - api_instance.deleteFolder(path, storageName, recursive); -} catch (e) { - print("Exception when calling FolderApi->deleteFolder: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **path** | **String**| Folder path e.g. '/folder' | - **storageName** | **String**| Storage name | [optional] - **recursive** | **bool**| Enable to delete folders, subfolders and files | [optional] [default to false] - -### Return type - -void (empty response body) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **getFilesList** -> FilesList getFilesList(path, storageName) - -Get all files and folders within a folder - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FolderApi(); -final path = path_example; // String | Folder path e.g. '/folder' -final storageName = storageName_example; // String | Storage name - -try { - final result = api_instance.getFilesList(path, storageName); - print(result); -} catch (e) { - print("Exception when calling FolderApi->getFilesList: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **path** | **String**| Folder path e.g. '/folder' | - **storageName** | **String**| Storage name | [optional] - -### Return type - -[**FilesList**](FilesList.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **moveFolder** -> moveFolder(srcPath, destPath, srcStorageName, destStorageName) - -Move folder - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = FolderApi(); -final srcPath = srcPath_example; // String | Folder path to move e.g. '/folder' -final destPath = destPath_example; // String | Destination folder path to move to e.g '/dst' -final srcStorageName = srcStorageName_example; // String | Source storage name -final destStorageName = destStorageName_example; // String | Destination storage name - -try { - api_instance.moveFolder(srcPath, destPath, srcStorageName, destStorageName); -} catch (e) { - print("Exception when calling FolderApi->moveFolder: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **srcPath** | **String**| Folder path to move e.g. '/folder' | - **destPath** | **String**| Destination folder path to move to e.g '/dst' | - **srcStorageName** | **String**| Source storage name | [optional] - **destStorageName** | **String**| Destination storage name | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - diff --git a/doc/api/GenerateApi.md b/doc/api/GenerateApi.md new file mode 100644 index 0000000..c6de3f6 --- /dev/null +++ b/doc/api/GenerateApi.md @@ -0,0 +1,113 @@ +# aspose_barcode_cloud.api.GenerateApi + +## Load the API package +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------ | ------------ | ----------- +[**generate**](GenerateApi.md#generate) | **GET** /barcode/generate/{barcodeType} | Generate barcode using GET request with parameters in route and query string. +[**generateBody**](GenerateApi.md#generateBody) | **POST** /barcode/generate-body | Generate barcode using POST request with parameters in body in json or xml format. +[**generateMultipart**](GenerateApi.md#generateMultipart) | **POST** /barcode/generate-multipart | Generate barcode using POST request with parameters in multipart form. + + +# **generate** +> MultipartFile generate(barcodeType, data, dataType, imageFormat, textLocation, foregroundColor, backgroundColor, units, resolution, imageHeight, imageWidth, rotationAngle) + +Generate barcode using GET request with parameters in route and query string. + +### Parameters + +Name | Type | Description | Notes +---- | ---- | ------------ | ----- + **barcodeType** | [**EncodeBarcodeType**](.md)| Type of barcode to generate. | + **data** | **String**| String represents data to encode | + **dataType** | [**EncodeDataType**](.md)| Type of data to encode. Default value: StringData. | [optional] + **imageFormat** | [**BarcodeImageFormat**](.md)| Barcode output image format. Default value: png | [optional] + **textLocation** | [**CodeLocation**](.md)| Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. | [optional] + **foregroundColor** | **String**| Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to 'Black'] + **backgroundColor** | **String**| Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to 'White'] + **units** | [**GraphicsUnit**](.md)| Common Units for all measuring in query. Default units: pixel. | [optional] + **resolution** | **double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional] + **imageHeight** | **double**| Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional] + **imageWidth** | **double**| Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional] + **rotationAngle** | **int**| BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional] + +### Return type + +[**MultipartFile**](MultipartFile.md) + +### Authorization + +[JWT](../README.md#JWT) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: image/png, image/bmp, image/gif, image/jpeg, image/svg+xml, image/tiff, application/json, application/xml + + +# **generateBody** +> MultipartFile generateBody(generateParams) + +Generate barcode using POST request with parameters in body in json or xml format. + +### Parameters + +Name | Type | Description | Notes +---- | ---- | ------------ | ----- + **generateParams** | [**GenerateParams**](GenerateParams.md)| Parameters of generation | + +### Return type + +[**MultipartFile**](MultipartFile.md) + +### Authorization + +[JWT](../README.md#JWT) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: image/png, image/bmp, image/gif, image/jpeg, image/svg+xml, image/tiff, application/json, application/xml + + +# **generateMultipart** +> MultipartFile generateMultipart(barcodeType, data, dataType, imageFormat, textLocation, foregroundColor, backgroundColor, units, resolution, imageHeight, imageWidth, rotationAngle) + +Generate barcode using POST request with parameters in multipart form. + +### Parameters + +Name | Type | Description | Notes +---- | ---- | ------------ | ----- + **barcodeType** | [**EncodeBarcodeType**](EncodeBarcodeType.md)| | + **data** | **String**| String represents data to encode | + **dataType** | [**EncodeDataType**](EncodeDataType.md)| | [optional] + **imageFormat** | [**BarcodeImageFormat**](BarcodeImageFormat.md)| | [optional] + **textLocation** | [**CodeLocation**](CodeLocation.md)| | [optional] + **foregroundColor** | **String**| Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to 'Black'] + **backgroundColor** | **String**| Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to 'White'] + **units** | [**GraphicsUnit**](GraphicsUnit.md)| | [optional] + **resolution** | **double**| Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional] + **imageHeight** | **double**| Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional] + **imageWidth** | **double**| Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional] + **rotationAngle** | **int**| BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional] + +### Return type + +[**MultipartFile**](MultipartFile.md) + +### Authorization + +[JWT](../README.md#JWT) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: image/png, image/bmp, image/gif, image/jpeg, image/svg+xml, image/tiff, application/json, application/xml + + diff --git a/doc/api/RecognizeApi.md b/doc/api/RecognizeApi.md new file mode 100644 index 0000000..9f5b90f --- /dev/null +++ b/doc/api/RecognizeApi.md @@ -0,0 +1,97 @@ +# aspose_barcode_cloud.api.RecognizeApi + +## Load the API package +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------ | ------------ | ----------- +[**recognize**](RecognizeApi.md#recognize) | **GET** /barcode/recognize | Recognize barcode from file on server using GET requests with parameters in route and query string. +[**recognizeBase64**](RecognizeApi.md#recognizeBase64) | **POST** /barcode/recognize-body | Recognize barcode from file in request body using POST requests with parameters in body in json or xml format. +[**recognizeMultipart**](RecognizeApi.md#recognizeMultipart) | **POST** /barcode/recognize-multipart | Recognize barcode from file in request body using POST requests with parameters in multipart form. + + +# **recognize** +> BarcodeResponseList recognize(barcodeType, fileUrl, recognitionMode, recognitionImageKind) + +Recognize barcode from file on server using GET requests with parameters in route and query string. + +### Parameters + +Name | Type | Description | Notes +---- | ---- | ------------ | ----- + **barcodeType** | [**DecodeBarcodeType**](.md)| Type of barcode to recognize | + **fileUrl** | **String**| Url to barcode image | + **recognitionMode** | [**RecognitionMode**](.md)| Recognition mode | [optional] + **recognitionImageKind** | [**RecognitionImageKind**](.md)| Image kind for recognition | [optional] + +### Return type + +[**BarcodeResponseList**](BarcodeResponseList.md) + +### Authorization + +[JWT](../README.md#JWT) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml + + +# **recognizeBase64** +> BarcodeResponseList recognizeBase64(recognizeBase64Request) + +Recognize barcode from file in request body using POST requests with parameters in body in json or xml format. + +### Parameters + +Name | Type | Description | Notes +---- | ---- | ------------ | ----- + **recognizeBase64Request** | [**RecognizeBase64Request**](RecognizeBase64Request.md)| Barcode recognition request | + +### Return type + +[**BarcodeResponseList**](BarcodeResponseList.md) + +### Authorization + +[JWT](../README.md#JWT) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **recognizeMultipart** +> BarcodeResponseList recognizeMultipart(barcodeType, file, recognitionMode, recognitionImageKind) + +Recognize barcode from file in request body using POST requests with parameters in multipart form. + +### Parameters + +Name | Type | Description | Notes +---- | ---- | ------------ | ----- + **barcodeType** | [**DecodeBarcodeType**](DecodeBarcodeType.md)| | + **file** | **MultipartFile****MultipartFile**| Barcode image file | + **recognitionMode** | [**RecognitionMode**](RecognitionMode.md)| | [optional] + **recognitionImageKind** | [**RecognitionImageKind**](RecognitionImageKind.md)| | [optional] + +### Return type + +[**BarcodeResponseList**](BarcodeResponseList.md) + +### Authorization + +[JWT](../README.md#JWT) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, application/xml + + diff --git a/doc/api/ScanApi.md b/doc/api/ScanApi.md new file mode 100644 index 0000000..120dac1 --- /dev/null +++ b/doc/api/ScanApi.md @@ -0,0 +1,91 @@ +# aspose_barcode_cloud.api.ScanApi + +## Load the API package +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` + +All URIs are relative to *https://api.aspose.cloud/v4.0* + +Method | HTTP request | Description +------ | ------------ | ----------- +[**scan**](ScanApi.md#scan) | **GET** /barcode/scan | Scan barcode from file on server using GET requests with parameter in query string. +[**scanBase64**](ScanApi.md#scanBase64) | **POST** /barcode/scan-body | Scan barcode from file in request body using POST requests with parameter in body in json or xml format. +[**scanMultipart**](ScanApi.md#scanMultipart) | **POST** /barcode/scan-multipart | Scan barcode from file in request body using POST requests with parameter in multipart form. + + +# **scan** +> BarcodeResponseList scan(fileUrl) + +Scan barcode from file on server using GET requests with parameter in query string. + +### Parameters + +Name | Type | Description | Notes +---- | ---- | ------------ | ----- + **fileUrl** | **String**| Url to barcode image | + +### Return type + +[**BarcodeResponseList**](BarcodeResponseList.md) + +### Authorization + +[JWT](../README.md#JWT) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml + + +# **scanBase64** +> BarcodeResponseList scanBase64(scanBase64Request) + +Scan barcode from file in request body using POST requests with parameter in body in json or xml format. + +### Parameters + +Name | Type | Description | Notes +---- | ---- | ------------ | ----- + **scanBase64Request** | [**ScanBase64Request**](ScanBase64Request.md)| Barcode scan request | + +### Return type + +[**BarcodeResponseList**](BarcodeResponseList.md) + +### Authorization + +[JWT](../README.md#JWT) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **scanMultipart** +> BarcodeResponseList scanMultipart(file) + +Scan barcode from file in request body using POST requests with parameter in multipart form. + +### Parameters + +Name | Type | Description | Notes +---- | ---- | ------------ | ----- + **file** | **MultipartFile****MultipartFile**| Barcode image file | + +### Return type + +[**BarcodeResponseList**](BarcodeResponseList.md) + +### Authorization + +[JWT](../README.md#JWT) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json, application/xml + + diff --git a/doc/api/StorageApi.md b/doc/api/StorageApi.md deleted file mode 100644 index 40f6e1e..0000000 --- a/doc/api/StorageApi.md +++ /dev/null @@ -1,191 +0,0 @@ -# aspose_barcode_cloud.api.StorageApi - -## Load the API package -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -All URIs are relative to *https://api.aspose.cloud/v3.0* - -Method | HTTP request | Description ------- | ------------ | ----------- -[**getDiscUsage**](StorageApi.md#getDiscUsage) | **GET** /barcode/storage/disc | Get disc usage -[**getFileVersions**](StorageApi.md#getFileVersions) | **GET** /barcode/storage/version/{path} | Get file versions -[**objectExists**](StorageApi.md#objectExists) | **GET** /barcode/storage/exist/{path} | Check if file or folder exists -[**storageExists**](StorageApi.md#storageExists) | **GET** /barcode/storage/{storageName}/exist | Check if storage exists - - -# **getDiscUsage** -> DiscUsage getDiscUsage(storageName) - -Get disc usage - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = StorageApi(); -final storageName = storageName_example; // String | Storage name - -try { - final result = api_instance.getDiscUsage(storageName); - print(result); -} catch (e) { - print("Exception when calling StorageApi->getDiscUsage: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **storageName** | **String**| Storage name | [optional] - -### Return type - -[**DiscUsage**](DiscUsage.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **getFileVersions** -> FileVersions getFileVersions(path, storageName) - -Get file versions - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = StorageApi(); -final path = path_example; // String | File path e.g. '/file.ext' -final storageName = storageName_example; // String | Storage name - -try { - final result = api_instance.getFileVersions(path, storageName); - print(result); -} catch (e) { - print("Exception when calling StorageApi->getFileVersions: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **path** | **String**| File path e.g. '/file.ext' | - **storageName** | **String**| Storage name | [optional] - -### Return type - -[**FileVersions**](FileVersions.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **objectExists** -> ObjectExist objectExists(path, storageName, versionId) - -Check if file or folder exists - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = StorageApi(); -final path = path_example; // String | File or folder path e.g. '/file.ext' or '/folder' -final storageName = storageName_example; // String | Storage name -final versionId = versionId_example; // String | File version ID - -try { - final result = api_instance.objectExists(path, storageName, versionId); - print(result); -} catch (e) { - print("Exception when calling StorageApi->objectExists: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **path** | **String**| File or folder path e.g. '/file.ext' or '/folder' | - **storageName** | **String**| Storage name | [optional] - **versionId** | **String**| File version ID | [optional] - -### Return type - -[**ObjectExist**](ObjectExist.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -# **storageExists** -> StorageExist storageExists(storageName) - -Check if storage exists - -### Example -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -// TODO Configure OAuth2 access token for authorization: JWT -//aspose_barcode_cloud.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN'; - -final api_instance = StorageApi(); -final storageName = storageName_example; // String | Storage name - -try { - final result = api_instance.storageExists(storageName); - print(result); -} catch (e) { - print("Exception when calling StorageApi->storageExists: $e\n"); -} -``` - -### Parameters - -Name | Type | Description | Notes ----- | ---- | ------------ | ----- - **storageName** | **String**| Storage name | - -### Return type - -[**StorageExist**](StorageExist.md) - -### Authorization - -[JWT](../README.md#JWT) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - diff --git a/doc/models/ApiError.md b/doc/models/ApiError.md index e7ba609..cd94773 100644 --- a/doc/models/ApiError.md +++ b/doc/models/ApiError.md @@ -5,14 +5,15 @@ ```dart import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; ``` +Api Error. ## Properties Name | Type | Description | Notes ---- | ---- | ----------- | ----- -**code** | **String** | | [optional] [default to null] -**message** | **String** | | [optional] [default to null] -**description** | **String** | | [optional] [default to null] -**dateTime** | [**DateTime**](DateTime.md) | | [optional] [default to null] -**innerError** | [**ApiError**](ApiError.md) | | [optional] [default to null] +**code** | **String** | Gets or sets api error code. | +**message** | **String** | Gets or sets error message. | +**description** | **String** | Gets or sets error description. | [optional] +**dateTime** | [**DateTime**](DateTime.md) | Gets or sets server datetime. | [optional] +**innerError** | [**ApiError**](ApiError.md) | | [optional] diff --git a/doc/models/ApiErrorResponse.md b/doc/models/ApiErrorResponse.md index 0896166..da35581 100644 --- a/doc/models/ApiErrorResponse.md +++ b/doc/models/ApiErrorResponse.md @@ -5,11 +5,12 @@ ```dart import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; ``` +ApiError Response ## Properties Name | Type | Description | Notes ---- | ---- | ----------- | ----- -**requestId** | **String** | | [optional] [default to null] -**error** | [**ApiError**](ApiError.md) | | [optional] [default to null] +**requestId** | **String** | Gets or sets request Id. | +**error** | [**ApiError**](ApiError.md) | | diff --git a/doc/models/AustralianPostParams.md b/doc/models/AustralianPostParams.md deleted file mode 100644 index 9e58a4f..0000000 --- a/doc/models/AustralianPostParams.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.AustralianPostParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -AustralianPost barcode parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**encodingTable** | [**CustomerInformationInterpretingType**](CustomerInformationInterpretingType.md) | Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.Other | [optional] [default to null] -**shortBarHeight** | **double** | Short bar's height of AustralianPost barcode. | [optional] [default to null] - diff --git a/doc/models/AutoSizeMode.md b/doc/models/AutoSizeMode.md deleted file mode 100644 index 6129364..0000000 --- a/doc/models/AutoSizeMode.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.AutoSizeMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **AutoSizeMode.none_** -* AutoSizeMode.nearest_ -* AutoSizeMode.interpolation_ - diff --git a/doc/models/AvailableGraphicsUnit.md b/doc/models/AvailableGraphicsUnit.md deleted file mode 100644 index d3f82b5..0000000 --- a/doc/models/AvailableGraphicsUnit.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.AvailableGraphicsUnit - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Subset of GraphicsUnit. -## Allowable values - -* **AvailableGraphicsUnit.pixel_** -* AvailableGraphicsUnit.point_ -* AvailableGraphicsUnit.inch_ -* AvailableGraphicsUnit.millimeter_ - diff --git a/doc/models/AztecEncodeMode.md b/doc/models/AztecEncodeMode.md deleted file mode 100644 index f833c91..0000000 --- a/doc/models/AztecEncodeMode.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.AztecEncodeMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **AztecEncodeMode.auto_** -* AztecEncodeMode.bytes_ -* AztecEncodeMode.extendedCodetext_ - diff --git a/doc/models/AztecParams.md b/doc/models/AztecParams.md deleted file mode 100644 index 87c8a56..0000000 --- a/doc/models/AztecParams.md +++ /dev/null @@ -1,22 +0,0 @@ -# aspose_barcode_cloud.model.AztecParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Aztec parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**aspectRatio** | **double** | Height/Width ratio of 2D BarCode module. | [optional] [default to null] -**errorLevel** | **int** | Level of error correction of Aztec types of barcode. Value should between 10 to 95. | [optional] [default to null] -**symbolMode** | [**AztecSymbolMode**](AztecSymbolMode.md) | Aztec Symbol mode. Default value: AztecSymbolMode.Auto. | [optional] [default to null] -**textEncoding** | **String** | DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. | [optional] [default to null] -**encodeMode** | [**AztecEncodeMode**](AztecEncodeMode.md) | Encoding mode for Aztec barcodes. Default value: Auto | [optional] [default to null] -**eCIEncoding** | [**ECIEncodings**](ECIEncodings.md) | Identifies ECI encoding. Used when AztecEncodeMode is Auto. Default value: ISO-8859-1. | [optional] [default to null] -**isReaderInitialization** | **bool** | Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization. | [optional] [default to null] -**layersCount** | **int** | Gets or sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and in range from 1 to 32 for Full Range mode. Default value: 0 (auto). | [optional] [default to null] - diff --git a/doc/models/AztecSymbolMode.md b/doc/models/AztecSymbolMode.md deleted file mode 100644 index ce9a57c..0000000 --- a/doc/models/AztecSymbolMode.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.AztecSymbolMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **AztecSymbolMode.auto_** -* AztecSymbolMode.compact_ -* AztecSymbolMode.fullRange_ -* AztecSymbolMode.rune_ - diff --git a/doc/models/BarcodeImageFormat.md b/doc/models/BarcodeImageFormat.md new file mode 100644 index 0000000..47fa5d8 --- /dev/null +++ b/doc/models/BarcodeImageFormat.md @@ -0,0 +1,16 @@ +# aspose_barcode_cloud.model.BarcodeImageFormat + +## Load the model package + +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` +Specifies the file format of the image. +## Allowable values + +* **BarcodeImageFormat.png** +* BarcodeImageFormat.jpeg +* BarcodeImageFormat.svg +* BarcodeImageFormat.tiff +* BarcodeImageFormat.gif + diff --git a/doc/models/BarcodeImageParams.md b/doc/models/BarcodeImageParams.md new file mode 100644 index 0000000..be1cfad --- /dev/null +++ b/doc/models/BarcodeImageParams.md @@ -0,0 +1,23 @@ +# aspose_barcode_cloud.model.BarcodeImageParams + +## Load the model package + +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` +Barcode image optional parameters + +## Properties + +Name | Type | Description | Notes +---- | ---- | ----------- | ----- +**imageFormat** | [**BarcodeImageFormat**](BarcodeImageFormat.md) | | [optional] +**textLocation** | [**CodeLocation**](CodeLocation.md) | | [optional] +**foregroundColor** | **String** | Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. | [optional] [default to 'Black'] +**backgroundColor** | **String** | Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. | [optional] [default to 'White'] +**units** | [**GraphicsUnit**](GraphicsUnit.md) | | [optional] +**resolution** | **double** | Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. | [optional] +**imageHeight** | **double** | Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional] +**imageWidth** | **double** | Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. | [optional] +**rotationAngle** | **int** | BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional] + diff --git a/doc/models/BarcodeResponse.md b/doc/models/BarcodeResponse.md index b23b290..a63c3fa 100644 --- a/doc/models/BarcodeResponse.md +++ b/doc/models/BarcodeResponse.md @@ -11,8 +11,8 @@ Represents information about barcode. Name | Type | Description | Notes ---- | ---- | ----------- | ----- -**barcodeValue** | **String** | Barcode data. | [optional] [default to null] -**type** | **String** | Type of the barcode. | [optional] [default to null] -**region** | [**List<RegionPoint>**](RegionPoint.md) | Region with barcode. | [optional] [default to []] -**checksum** | **String** | Checksum of barcode. | [optional] [default to null] +**barcodeValue** | **String** | Barcode data. | [optional] +**type** | **String** | Type of the barcode. | [optional] +**region** | [**List<RegionPoint>**](RegionPoint.md) | Region with barcode. | [optional] [default to const []] +**checksum** | **String** | Checksum of barcode. | [optional] diff --git a/doc/models/BarcodeResponseList.md b/doc/models/BarcodeResponseList.md index ad5c6f4..3632d42 100644 --- a/doc/models/BarcodeResponseList.md +++ b/doc/models/BarcodeResponseList.md @@ -11,5 +11,5 @@ Represents information about barcode list. Name | Type | Description | Notes ---- | ---- | ----------- | ----- -**barcodes** | [**List<BarcodeResponse>**](BarcodeResponse.md) | List of barcodes which are present in image. | [optional] [default to []] +**barcodes** | [**List<BarcodeResponse>**](BarcodeResponse.md) | List of barcodes which are present in image. | [default to const []] diff --git a/doc/models/BorderDashStyle.md b/doc/models/BorderDashStyle.md deleted file mode 100644 index 5b5cb3c..0000000 --- a/doc/models/BorderDashStyle.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.BorderDashStyle - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **BorderDashStyle.solid_** -* BorderDashStyle.dash_ -* BorderDashStyle.dot_ -* BorderDashStyle.dashDot_ -* BorderDashStyle.dashDotDot_ - diff --git a/doc/models/CaptionParams.md b/doc/models/CaptionParams.md deleted file mode 100644 index 3f73ca6..0000000 --- a/doc/models/CaptionParams.md +++ /dev/null @@ -1,21 +0,0 @@ -# aspose_barcode_cloud.model.CaptionParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Caption - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**text** | **String** | Caption text. | [optional] [default to null] -**alignment** | [**TextAlignment**](TextAlignment.md) | Text alignment. | [optional] [default to null] -**color** | **String** | Text color. Default value: black Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null] -**visible** | **bool** | Is caption visible. | [optional] [default to null] -**font** | [**FontParams**](FontParams.md) | Font. | [optional] [default to null] -**padding** | [**Padding**](Padding.md) | Padding. | [optional] [default to null] -**noWrap** | **bool** | Specify word wraps (line breaks) within text. Default value: false. | [optional] [default to null] - diff --git a/doc/models/ChecksumValidation.md b/doc/models/ChecksumValidation.md deleted file mode 100644 index 20bd1f0..0000000 --- a/doc/models/ChecksumValidation.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.ChecksumValidation - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **ChecksumValidation.default_** -* ChecksumValidation.on_ -* ChecksumValidation.off_ - diff --git a/doc/models/CodabarChecksumMode.md b/doc/models/CodabarChecksumMode.md deleted file mode 100644 index 3c67884..0000000 --- a/doc/models/CodabarChecksumMode.md +++ /dev/null @@ -1,13 +0,0 @@ -# aspose_barcode_cloud.model.CodabarChecksumMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **CodabarChecksumMode.mod10_** -* CodabarChecksumMode.mod16_ - diff --git a/doc/models/CodabarParams.md b/doc/models/CodabarParams.md deleted file mode 100644 index a758a8d..0000000 --- a/doc/models/CodabarParams.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.CodabarParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Codabar parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**checksumMode** | [**CodabarChecksumMode**](CodabarChecksumMode.md) | Checksum algorithm for Codabar barcodes. Default value: CodabarChecksumMode.Mod16. To enable checksum calculation set value EnableChecksum.Yes to property EnableChecksum. | [optional] [default to null] -**startSymbol** | [**CodabarSymbol**](CodabarSymbol.md) | Start symbol (character) of Codabar symbology. Default value: CodabarSymbol.A | [optional] [default to null] -**stopSymbol** | [**CodabarSymbol**](CodabarSymbol.md) | Stop symbol (character) of Codabar symbology. Default value: CodabarSymbol.A | [optional] [default to null] - diff --git a/doc/models/CodabarSymbol.md b/doc/models/CodabarSymbol.md deleted file mode 100644 index c828da4..0000000 --- a/doc/models/CodabarSymbol.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.CodabarSymbol - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **CodabarSymbol.a_** -* CodabarSymbol.b_ -* CodabarSymbol.c_ -* CodabarSymbol.d_ - diff --git a/doc/models/CodablockParams.md b/doc/models/CodablockParams.md deleted file mode 100644 index 6c64890..0000000 --- a/doc/models/CodablockParams.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.CodablockParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Codablock parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**aspectRatio** | **double** | Height/Width ratio of 2D BarCode module. | [optional] [default to null] -**columns** | **int** | Columns count. | [optional] [default to null] -**rows** | **int** | Rows count. | [optional] [default to null] - diff --git a/doc/models/Code128Emulation.md b/doc/models/Code128Emulation.md deleted file mode 100644 index 5e2524b..0000000 --- a/doc/models/Code128Emulation.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.Code128Emulation - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -DEPRECATED. This enum will be removed in future releases Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. -## Allowable values - -* **Code128Emulation.none_** -* Code128Emulation.code903_ -* Code128Emulation.code904_ -* Code128Emulation.code905_ - diff --git a/doc/models/Code128EncodeMode.md b/doc/models/Code128EncodeMode.md deleted file mode 100644 index fb82753..0000000 --- a/doc/models/Code128EncodeMode.md +++ /dev/null @@ -1,18 +0,0 @@ -# aspose_barcode_cloud.model.Code128EncodeMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **Code128EncodeMode.auto_** -* Code128EncodeMode.codeA_ -* Code128EncodeMode.codeB_ -* Code128EncodeMode.codeAB_ -* Code128EncodeMode.codeC_ -* Code128EncodeMode.codeAC_ -* Code128EncodeMode.codeBC_ - diff --git a/doc/models/Code128Params.md b/doc/models/Code128Params.md deleted file mode 100644 index f7a27ab..0000000 --- a/doc/models/Code128Params.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.Code128Params - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Code128 params. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**encodeMode** | [**Code128EncodeMode**](Code128EncodeMode.md) | Encoding mode for Code128 barcodes. Code 128 specification Default value: Code128EncodeMode.Auto. | [optional] [default to null] - diff --git a/doc/models/Code16KParams.md b/doc/models/Code16KParams.md deleted file mode 100644 index 8e69ef5..0000000 --- a/doc/models/Code16KParams.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.Code16KParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Code16K parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**aspectRatio** | **double** | Height/Width ratio of 2D BarCode module. | [optional] [default to null] -**quietZoneLeftCoef** | **int** | Size of the left quiet zone in xDimension. Default value: 10, meaning if xDimension = 2px than left quiet zone will be 20px. | [optional] [default to null] -**quietZoneRightCoef** | **int** | Size of the right quiet zone in xDimension. Default value: 1, meaning if xDimension = 2px than right quiet zone will be 2px. | [optional] [default to null] - diff --git a/doc/models/CodeLocation.md b/doc/models/CodeLocation.md index c451017..79a3f30 100644 --- a/doc/models/CodeLocation.md +++ b/doc/models/CodeLocation.md @@ -5,10 +5,9 @@ ```dart import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; ``` - ## Allowable values -* **CodeLocation.below_** -* CodeLocation.above_ -* CodeLocation.none_ +* **CodeLocation.below** +* CodeLocation.above +* CodeLocation.none diff --git a/doc/models/CouponParams.md b/doc/models/CouponParams.md deleted file mode 100644 index e12599b..0000000 --- a/doc/models/CouponParams.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.CouponParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**supplementSpace** | **double** | Space between main the BarCode and supplement BarCode in Unit value. | [optional] [default to null] - diff --git a/doc/models/CustomerInformationInterpretingType.md b/doc/models/CustomerInformationInterpretingType.md deleted file mode 100644 index 356bc20..0000000 --- a/doc/models/CustomerInformationInterpretingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.CustomerInformationInterpretingType - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **CustomerInformationInterpretingType.cTable_** -* CustomerInformationInterpretingType.nTable_ -* CustomerInformationInterpretingType.other_ - diff --git a/doc/models/DataBarParams.md b/doc/models/DataBarParams.md deleted file mode 100644 index 6fd3a02..0000000 --- a/doc/models/DataBarParams.md +++ /dev/null @@ -1,19 +0,0 @@ -# aspose_barcode_cloud.model.DataBarParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Databar parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**aspectRatio** | **double** | Height/Width ratio of 2D BarCode module. Used for DataBar stacked. | [optional] [default to null] -**columns** | **int** | Columns count. | [optional] [default to null] -**rows** | **int** | Rows count. | [optional] [default to null] -**is2DCompositeComponent** | **bool** | Enables flag of 2D composite component with DataBar barcode | [optional] [default to null] -**isAllowOnlyGS1Encoding** | **bool** | If this flag is set, it allows only GS1 encoding standard for Databar barcode types | [optional] [default to null] - diff --git a/doc/models/DataMatrixEccType.md b/doc/models/DataMatrixEccType.md deleted file mode 100644 index 3609e01..0000000 --- a/doc/models/DataMatrixEccType.md +++ /dev/null @@ -1,18 +0,0 @@ -# aspose_barcode_cloud.model.DataMatrixEccType - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **DataMatrixEccType.eccAuto_** -* DataMatrixEccType.ecc000_ -* DataMatrixEccType.ecc050_ -* DataMatrixEccType.ecc080_ -* DataMatrixEccType.ecc100_ -* DataMatrixEccType.ecc140_ -* DataMatrixEccType.ecc200_ - diff --git a/doc/models/DataMatrixEncodeMode.md b/doc/models/DataMatrixEncodeMode.md deleted file mode 100644 index fec3da2..0000000 --- a/doc/models/DataMatrixEncodeMode.md +++ /dev/null @@ -1,20 +0,0 @@ -# aspose_barcode_cloud.model.DataMatrixEncodeMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -DataMatrix encoder's encoding mode, default to Auto -## Allowable values - -* **DataMatrixEncodeMode.auto_** -* DataMatrixEncodeMode.aSCII_ -* DataMatrixEncodeMode.full_ -* DataMatrixEncodeMode.custom_ -* DataMatrixEncodeMode.c40_ -* DataMatrixEncodeMode.text_ -* DataMatrixEncodeMode.eDIFACT_ -* DataMatrixEncodeMode.aNSIX12_ -* DataMatrixEncodeMode.extendedCodetext_ - diff --git a/doc/models/DataMatrixParams.md b/doc/models/DataMatrixParams.md deleted file mode 100644 index 81b860e..0000000 --- a/doc/models/DataMatrixParams.md +++ /dev/null @@ -1,22 +0,0 @@ -# aspose_barcode_cloud.model.DataMatrixParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -DataMatrix parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**aspectRatio** | **double** | Height/Width ratio of 2D BarCode module | [optional] [default to null] -**textEncoding** | **String** | DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. | [optional] [default to null] -**columns** | **int** | DEPRECATED: Will be replaced with 'DataMatrix.Version' in the next release Columns count. | [optional] [default to null] -**dataMatrixEcc** | [**DataMatrixEccType**](DataMatrixEccType.md) | Datamatrix ECC type. Default value: DataMatrixEccType.Ecc200. | [optional] [default to null] -**dataMatrixEncodeMode** | [**DataMatrixEncodeMode**](DataMatrixEncodeMode.md) | Encode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.Auto. | [optional] [default to null] -**rows** | **int** | DEPRECATED: Will be replaced with 'DataMatrix.Version' in the next release Rows count. | [optional] [default to null] -**macroCharacters** | [**MacroCharacter**](MacroCharacter.md) | Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with DataMatrixEccType.Ecc200 or DataMatrixEccType.EccAuto. Cannot be used with EncodeTypes.GS1DataMatrix Default value: MacroCharacters.None. | [optional] [default to null] -**version** | [**DataMatrixVersion**](DataMatrixVersion.md) | Sets a Datamatrix symbol size. Default value: DataMatrixVersion.Auto. | [optional] [default to null] - diff --git a/doc/models/DataMatrixVersion.md b/doc/models/DataMatrixVersion.md deleted file mode 100644 index 4fc5b4a..0000000 --- a/doc/models/DataMatrixVersion.md +++ /dev/null @@ -1,82 +0,0 @@ -# aspose_barcode_cloud.model.DataMatrixVersion - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **DataMatrixVersion.auto_** -* DataMatrixVersion.rowsColumns_ -* DataMatrixVersion.eCC0009x9_ -* DataMatrixVersion.eCC00005011x11_ -* DataMatrixVersion.eCC00010013x13_ -* DataMatrixVersion.eCC00010015x15_ -* DataMatrixVersion.eCC00014017x17_ -* DataMatrixVersion.eCC00014019x19_ -* DataMatrixVersion.eCC00014021x21_ -* DataMatrixVersion.eCC00014023x23_ -* DataMatrixVersion.eCC00014025x25_ -* DataMatrixVersion.eCC00014027x27_ -* DataMatrixVersion.eCC00014029x29_ -* DataMatrixVersion.eCC00014031x31_ -* DataMatrixVersion.eCC00014033x33_ -* DataMatrixVersion.eCC00014035x35_ -* DataMatrixVersion.eCC00014037x37_ -* DataMatrixVersion.eCC00014039x39_ -* DataMatrixVersion.eCC00014041x41_ -* DataMatrixVersion.eCC00014043x43_ -* DataMatrixVersion.eCC00014045x45_ -* DataMatrixVersion.eCC00014047x47_ -* DataMatrixVersion.eCC00014049x49_ -* DataMatrixVersion.eCC20010x10_ -* DataMatrixVersion.eCC20012x12_ -* DataMatrixVersion.eCC20014x14_ -* DataMatrixVersion.eCC20016x16_ -* DataMatrixVersion.eCC20018x18_ -* DataMatrixVersion.eCC20020x20_ -* DataMatrixVersion.eCC20022x22_ -* DataMatrixVersion.eCC20024x24_ -* DataMatrixVersion.eCC20026x26_ -* DataMatrixVersion.eCC20032x32_ -* DataMatrixVersion.eCC20036x36_ -* DataMatrixVersion.eCC20040x40_ -* DataMatrixVersion.eCC20044x44_ -* DataMatrixVersion.eCC20048x48_ -* DataMatrixVersion.eCC20052x52_ -* DataMatrixVersion.eCC20064x64_ -* DataMatrixVersion.eCC20072x72_ -* DataMatrixVersion.eCC20080x80_ -* DataMatrixVersion.eCC20088x88_ -* DataMatrixVersion.eCC20096x96_ -* DataMatrixVersion.eCC200104x104_ -* DataMatrixVersion.eCC200120x120_ -* DataMatrixVersion.eCC200132x132_ -* DataMatrixVersion.eCC200144x144_ -* DataMatrixVersion.eCC2008x18_ -* DataMatrixVersion.eCC2008x32_ -* DataMatrixVersion.eCC20012x26_ -* DataMatrixVersion.eCC20012x36_ -* DataMatrixVersion.eCC20016x36_ -* DataMatrixVersion.eCC20016x48_ -* DataMatrixVersion.dMRE8x48_ -* DataMatrixVersion.dMRE8x64_ -* DataMatrixVersion.dMRE8x80_ -* DataMatrixVersion.dMRE8x96_ -* DataMatrixVersion.dMRE8x120_ -* DataMatrixVersion.dMRE8x144_ -* DataMatrixVersion.dMRE12x64_ -* DataMatrixVersion.dMRE12x88_ -* DataMatrixVersion.dMRE16x64_ -* DataMatrixVersion.dMRE20x36_ -* DataMatrixVersion.dMRE20x44_ -* DataMatrixVersion.dMRE20x64_ -* DataMatrixVersion.dMRE22x48_ -* DataMatrixVersion.dMRE24x48_ -* DataMatrixVersion.dMRE24x64_ -* DataMatrixVersion.dMRE26x40_ -* DataMatrixVersion.dMRE26x48_ -* DataMatrixVersion.dMRE26x64_ - diff --git a/doc/models/DecodeBarcodeType.md b/doc/models/DecodeBarcodeType.md index 222997d..ca6db24 100644 --- a/doc/models/DecodeBarcodeType.md +++ b/doc/models/DecodeBarcodeType.md @@ -5,92 +5,91 @@ ```dart import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; ``` -See DecodeType +See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType ## Allowable values -* **DecodeBarcodeType.all_** -* DecodeBarcodeType.australiaPost_ -* DecodeBarcodeType.aztec_ -* DecodeBarcodeType.iSBN_ -* DecodeBarcodeType.codabar_ -* DecodeBarcodeType.code11_ -* DecodeBarcodeType.code128_ -* DecodeBarcodeType.gS1Code128_ -* DecodeBarcodeType.code39Extended_ -* DecodeBarcodeType.code39Standard_ -* DecodeBarcodeType.code93Extended_ -* DecodeBarcodeType.code93Standard_ -* DecodeBarcodeType.dataMatrix_ -* DecodeBarcodeType.deutschePostIdentcode_ -* DecodeBarcodeType.deutschePostLeitcode_ -* DecodeBarcodeType.eAN13_ -* DecodeBarcodeType.eAN14_ -* DecodeBarcodeType.eAN8_ -* DecodeBarcodeType.iATA2of5_ -* DecodeBarcodeType.interleaved2of5_ -* DecodeBarcodeType.iSSN_ -* DecodeBarcodeType.iSMN_ -* DecodeBarcodeType.italianPost25_ -* DecodeBarcodeType.iTF14_ -* DecodeBarcodeType.iTF6_ -* DecodeBarcodeType.macroPdf417_ -* DecodeBarcodeType.matrix2of5_ -* DecodeBarcodeType.mSI_ -* DecodeBarcodeType.oneCode_ -* DecodeBarcodeType.oPC_ -* DecodeBarcodeType.patchCode_ -* DecodeBarcodeType.pdf417_ -* DecodeBarcodeType.microPdf417_ -* DecodeBarcodeType.planet_ -* DecodeBarcodeType.postnet_ -* DecodeBarcodeType.pZN_ -* DecodeBarcodeType.qR_ -* DecodeBarcodeType.microQR_ -* DecodeBarcodeType.rM4SCC_ -* DecodeBarcodeType.sCC14_ -* DecodeBarcodeType.sSCC18_ -* DecodeBarcodeType.standard2of5_ -* DecodeBarcodeType.supplement_ -* DecodeBarcodeType.uPCA_ -* DecodeBarcodeType.uPCE_ -* DecodeBarcodeType.vIN_ -* DecodeBarcodeType.pharmacode_ -* DecodeBarcodeType.gS1DataMatrix_ -* DecodeBarcodeType.databarOmniDirectional_ -* DecodeBarcodeType.databarTruncated_ -* DecodeBarcodeType.databarLimited_ -* DecodeBarcodeType.databarExpanded_ -* DecodeBarcodeType.swissPostParcel_ -* DecodeBarcodeType.australianPosteParcel_ -* DecodeBarcodeType.code16K_ -* DecodeBarcodeType.databarStackedOmniDirectional_ -* DecodeBarcodeType.databarStacked_ -* DecodeBarcodeType.databarExpandedStacked_ -* DecodeBarcodeType.compactPdf417_ -* DecodeBarcodeType.gS1QR_ -* DecodeBarcodeType.maxiCode_ -* DecodeBarcodeType.micrE13B_ -* DecodeBarcodeType.code32_ -* DecodeBarcodeType.dataLogic2of5_ -* DecodeBarcodeType.dotCode_ -* DecodeBarcodeType.dutchKIX_ -* DecodeBarcodeType.codablockF_ -* DecodeBarcodeType.mailmark_ -* DecodeBarcodeType.gS1DotCode_ -* DecodeBarcodeType.hIBCCode39LIC_ -* DecodeBarcodeType.hIBCCode128LIC_ -* DecodeBarcodeType.hIBCAztecLIC_ -* DecodeBarcodeType.hIBCDataMatrixLIC_ -* DecodeBarcodeType.hIBCQRLIC_ -* DecodeBarcodeType.hIBCCode39PAS_ -* DecodeBarcodeType.hIBCCode128PAS_ -* DecodeBarcodeType.hIBCAztecPAS_ -* DecodeBarcodeType.hIBCDataMatrixPAS_ -* DecodeBarcodeType.hIBCQRPAS_ -* DecodeBarcodeType.hanXin_ -* DecodeBarcodeType.gS1HanXin_ -* DecodeBarcodeType.gS1Aztec_ -* DecodeBarcodeType.gS1CompositeBar_ -* DecodeBarcodeType.gS1MicroPdf417_ -* DecodeBarcodeType.mostCommonlyUsed_ +* **DecodeBarcodeType.mostCommonlyUsed** +* DecodeBarcodeType.QR +* DecodeBarcodeType.australiaPost +* DecodeBarcodeType.australianPosteParcel +* DecodeBarcodeType.aztec +* DecodeBarcodeType.codabar +* DecodeBarcodeType.codablockF +* DecodeBarcodeType.code11 +* DecodeBarcodeType.code128 +* DecodeBarcodeType.code16K +* DecodeBarcodeType.code32 +* DecodeBarcodeType.code39 +* DecodeBarcodeType.code39FullASCII +* DecodeBarcodeType.code93 +* DecodeBarcodeType.compactPdf417 +* DecodeBarcodeType.dataLogic2of5 +* DecodeBarcodeType.dataMatrix +* DecodeBarcodeType.databarExpanded +* DecodeBarcodeType.databarExpandedStacked +* DecodeBarcodeType.databarLimited +* DecodeBarcodeType.databarOmniDirectional +* DecodeBarcodeType.databarStacked +* DecodeBarcodeType.databarStackedOmniDirectional +* DecodeBarcodeType.databarTruncated +* DecodeBarcodeType.deutschePostIdentcode +* DecodeBarcodeType.deutschePostLeitcode +* DecodeBarcodeType.dotCode +* DecodeBarcodeType.dutchKIX +* DecodeBarcodeType.eAN13 +* DecodeBarcodeType.eAN14 +* DecodeBarcodeType.eAN8 +* DecodeBarcodeType.gS1Aztec +* DecodeBarcodeType.gS1Code128 +* DecodeBarcodeType.gS1CompositeBar +* DecodeBarcodeType.gS1DataMatrix +* DecodeBarcodeType.gS1DotCode +* DecodeBarcodeType.gS1HanXin +* DecodeBarcodeType.gS1MicroPdf417 +* DecodeBarcodeType.gS1QR +* DecodeBarcodeType.hanXin +* DecodeBarcodeType.hIBCAztecLIC +* DecodeBarcodeType.hIBCAztecPAS +* DecodeBarcodeType.hIBCCode128LIC +* DecodeBarcodeType.hIBCCode128PAS +* DecodeBarcodeType.hIBCCode39LIC +* DecodeBarcodeType.hIBCCode39PAS +* DecodeBarcodeType.hIBCDataMatrixLIC +* DecodeBarcodeType.hIBCDataMatrixPAS +* DecodeBarcodeType.HIBCQRLIC +* DecodeBarcodeType.HIBCQRPAS +* DecodeBarcodeType.iATA2of5 +* DecodeBarcodeType.ISBN +* DecodeBarcodeType.ISMN +* DecodeBarcodeType.ISSN +* DecodeBarcodeType.iTF14 +* DecodeBarcodeType.iTF6 +* DecodeBarcodeType.interleaved2of5 +* DecodeBarcodeType.italianPost25 +* DecodeBarcodeType.macroPdf417 +* DecodeBarcodeType.mailmark +* DecodeBarcodeType.matrix2of5 +* DecodeBarcodeType.maxiCode +* DecodeBarcodeType.micrE13B +* DecodeBarcodeType.microPdf417 +* DecodeBarcodeType.microQR +* DecodeBarcodeType.MSI +* DecodeBarcodeType.oneCode +* DecodeBarcodeType.OPC +* DecodeBarcodeType.patchCode +* DecodeBarcodeType.pdf417 +* DecodeBarcodeType.pharmacode +* DecodeBarcodeType.planet +* DecodeBarcodeType.postnet +* DecodeBarcodeType.PZN +* DecodeBarcodeType.rectMicroQR +* DecodeBarcodeType.rM4SCC +* DecodeBarcodeType.sCC14 +* DecodeBarcodeType.sSCC18 +* DecodeBarcodeType.standard2of5 +* DecodeBarcodeType.supplement +* DecodeBarcodeType.swissPostParcel +* DecodeBarcodeType.UPCA +* DecodeBarcodeType.UPCE +* DecodeBarcodeType.VIN diff --git a/doc/models/DiscUsage.md b/doc/models/DiscUsage.md deleted file mode 100644 index 84f240b..0000000 --- a/doc/models/DiscUsage.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.DiscUsage - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Class for disc space information. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**usedSize** | **int** | Application used disc space. | [default to null] -**totalSize** | **int** | Total disc space. | [default to null] - diff --git a/doc/models/DotCodeEncodeMode.md b/doc/models/DotCodeEncodeMode.md deleted file mode 100644 index 44c2cd5..0000000 --- a/doc/models/DotCodeEncodeMode.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.DotCodeEncodeMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **DotCodeEncodeMode.auto_** -* DotCodeEncodeMode.bytes_ -* DotCodeEncodeMode.extendedCodetext_ - diff --git a/doc/models/DotCodeParams.md b/doc/models/DotCodeParams.md deleted file mode 100644 index 7023f56..0000000 --- a/doc/models/DotCodeParams.md +++ /dev/null @@ -1,20 +0,0 @@ -# aspose_barcode_cloud.model.DotCodeParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -DotCode parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**aspectRatio** | **double** | Height/Width ratio of 2D BarCode module. | [optional] [default to null] -**columns** | **int** | Identifies columns count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of columns must be at least 5. | [optional] [default to null] -**encodeMode** | [**DotCodeEncodeMode**](DotCodeEncodeMode.md) | Identifies DotCode encode mode. Default value: Auto. | [optional] [default to null] -**eCIEncoding** | [**ECIEncodings**](ECIEncodings.md) | Identifies ECI encoding. Used when DotCodeEncodeMode is Auto. Default value: ISO-8859-1. | [optional] [default to null] -**isReaderInitialization** | **bool** | Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader. Default value is false. | [optional] [default to null] -**rows** | **int** | Identifies rows count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of rows must be at least 5. | [optional] [default to null] - diff --git a/doc/models/ECIEncodings.md b/doc/models/ECIEncodings.md deleted file mode 100644 index 60acf94..0000000 --- a/doc/models/ECIEncodings.md +++ /dev/null @@ -1,38 +0,0 @@ -# aspose_barcode_cloud.model.ECIEncodings - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **ECIEncodings.nONE_** -* ECIEncodings.iSO88591_ -* ECIEncodings.iSO88592_ -* ECIEncodings.iSO88593_ -* ECIEncodings.iSO88594_ -* ECIEncodings.iSO88595_ -* ECIEncodings.iSO88596_ -* ECIEncodings.iSO88597_ -* ECIEncodings.iSO88598_ -* ECIEncodings.iSO88599_ -* ECIEncodings.iSO885910_ -* ECIEncodings.iSO885911_ -* ECIEncodings.iSO885913_ -* ECIEncodings.iSO885914_ -* ECIEncodings.iSO885915_ -* ECIEncodings.iSO885916_ -* ECIEncodings.shiftJIS_ -* ECIEncodings.win1250_ -* ECIEncodings.win1251_ -* ECIEncodings.win1252_ -* ECIEncodings.win1256_ -* ECIEncodings.uTF16BE_ -* ECIEncodings.uTF8_ -* ECIEncodings.uSASCII_ -* ECIEncodings.big5_ -* ECIEncodings.gB18030_ -* ECIEncodings.eUCKR_ - diff --git a/doc/models/EnableChecksum.md b/doc/models/EnableChecksum.md deleted file mode 100644 index 1f68d47..0000000 --- a/doc/models/EnableChecksum.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.EnableChecksum - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **EnableChecksum.default_** -* EnableChecksum.yes_ -* EnableChecksum.no_ - diff --git a/doc/models/EncodeBarcodeType.md b/doc/models/EncodeBarcodeType.md index 5a90224..7ab5659 100644 --- a/doc/models/EncodeBarcodeType.md +++ b/doc/models/EncodeBarcodeType.md @@ -5,79 +5,80 @@ ```dart import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; ``` -See EncodeTypes +See Aspose.BarCode.Generation.EncodeTypes ## Allowable values -* **EncodeBarcodeType.codabar_** -* EncodeBarcodeType.code11_ -* EncodeBarcodeType.code39Standard_ -* EncodeBarcodeType.code39Extended_ -* EncodeBarcodeType.code93Standard_ -* EncodeBarcodeType.code93Extended_ -* EncodeBarcodeType.code128_ -* EncodeBarcodeType.gS1Code128_ -* EncodeBarcodeType.eAN8_ -* EncodeBarcodeType.eAN13_ -* EncodeBarcodeType.eAN14_ -* EncodeBarcodeType.sCC14_ -* EncodeBarcodeType.sSCC18_ -* EncodeBarcodeType.uPCA_ -* EncodeBarcodeType.uPCE_ -* EncodeBarcodeType.iSBN_ -* EncodeBarcodeType.iSSN_ -* EncodeBarcodeType.iSMN_ -* EncodeBarcodeType.standard2of5_ -* EncodeBarcodeType.interleaved2of5_ -* EncodeBarcodeType.matrix2of5_ -* EncodeBarcodeType.italianPost25_ -* EncodeBarcodeType.iATA2of5_ -* EncodeBarcodeType.iTF14_ -* EncodeBarcodeType.iTF6_ -* EncodeBarcodeType.mSI_ -* EncodeBarcodeType.vIN_ -* EncodeBarcodeType.deutschePostIdentcode_ -* EncodeBarcodeType.deutschePostLeitcode_ -* EncodeBarcodeType.oPC_ -* EncodeBarcodeType.pZN_ -* EncodeBarcodeType.code16K_ -* EncodeBarcodeType.pharmacode_ -* EncodeBarcodeType.dataMatrix_ -* EncodeBarcodeType.qR_ -* EncodeBarcodeType.aztec_ -* EncodeBarcodeType.pdf417_ -* EncodeBarcodeType.macroPdf417_ -* EncodeBarcodeType.australiaPost_ -* EncodeBarcodeType.postnet_ -* EncodeBarcodeType.planet_ -* EncodeBarcodeType.oneCode_ -* EncodeBarcodeType.rM4SCC_ -* EncodeBarcodeType.databarOmniDirectional_ -* EncodeBarcodeType.databarTruncated_ -* EncodeBarcodeType.databarLimited_ -* EncodeBarcodeType.databarExpanded_ -* EncodeBarcodeType.singaporePost_ -* EncodeBarcodeType.gS1DataMatrix_ -* EncodeBarcodeType.australianPosteParcel_ -* EncodeBarcodeType.swissPostParcel_ -* EncodeBarcodeType.patchCode_ -* EncodeBarcodeType.databarExpandedStacked_ -* EncodeBarcodeType.databarStacked_ -* EncodeBarcodeType.databarStackedOmniDirectional_ -* EncodeBarcodeType.microPdf417_ -* EncodeBarcodeType.gS1QR_ -* EncodeBarcodeType.maxiCode_ -* EncodeBarcodeType.code32_ -* EncodeBarcodeType.dataLogic2of5_ -* EncodeBarcodeType.dotCode_ -* EncodeBarcodeType.dutchKIX_ -* EncodeBarcodeType.upcaGs1Code128Coupon_ -* EncodeBarcodeType.upcaGs1DatabarCoupon_ -* EncodeBarcodeType.codablockF_ -* EncodeBarcodeType.gS1CodablockF_ -* EncodeBarcodeType.mailmark_ -* EncodeBarcodeType.gS1DotCode_ -* EncodeBarcodeType.hanXin_ -* EncodeBarcodeType.gS1HanXin_ -* EncodeBarcodeType.gS1Aztec_ -* EncodeBarcodeType.gS1MicroPdf417_ +* **EncodeBarcodeType.QR** +* EncodeBarcodeType.australiaPost +* EncodeBarcodeType.australianPosteParcel +* EncodeBarcodeType.aztec +* EncodeBarcodeType.codabar +* EncodeBarcodeType.codablockF +* EncodeBarcodeType.code11 +* EncodeBarcodeType.code128 +* EncodeBarcodeType.code16K +* EncodeBarcodeType.code32 +* EncodeBarcodeType.code39 +* EncodeBarcodeType.code39FullASCII +* EncodeBarcodeType.code93 +* EncodeBarcodeType.dataLogic2of5 +* EncodeBarcodeType.dataMatrix +* EncodeBarcodeType.databarExpanded +* EncodeBarcodeType.databarExpandedStacked +* EncodeBarcodeType.databarLimited +* EncodeBarcodeType.databarOmniDirectional +* EncodeBarcodeType.databarStacked +* EncodeBarcodeType.databarStackedOmniDirectional +* EncodeBarcodeType.databarTruncated +* EncodeBarcodeType.deutschePostIdentcode +* EncodeBarcodeType.deutschePostLeitcode +* EncodeBarcodeType.dotCode +* EncodeBarcodeType.dutchKIX +* EncodeBarcodeType.eAN13 +* EncodeBarcodeType.eAN14 +* EncodeBarcodeType.eAN8 +* EncodeBarcodeType.gS1Aztec +* EncodeBarcodeType.gS1CodablockF +* EncodeBarcodeType.gS1Code128 +* EncodeBarcodeType.gS1DataMatrix +* EncodeBarcodeType.gS1DotCode +* EncodeBarcodeType.gS1HanXin +* EncodeBarcodeType.gS1MicroPdf417 +* EncodeBarcodeType.gS1QR +* EncodeBarcodeType.hanXin +* EncodeBarcodeType.iATA2of5 +* EncodeBarcodeType.ISBN +* EncodeBarcodeType.ISMN +* EncodeBarcodeType.ISSN +* EncodeBarcodeType.iTF14 +* EncodeBarcodeType.iTF6 +* EncodeBarcodeType.interleaved2of5 +* EncodeBarcodeType.italianPost25 +* EncodeBarcodeType.MSI +* EncodeBarcodeType.macroPdf417 +* EncodeBarcodeType.mailmark +* EncodeBarcodeType.matrix2of5 +* EncodeBarcodeType.maxiCode +* EncodeBarcodeType.microPdf417 +* EncodeBarcodeType.microQR +* EncodeBarcodeType.OPC +* EncodeBarcodeType.oneCode +* EncodeBarcodeType.PZN +* EncodeBarcodeType.patchCode +* EncodeBarcodeType.pdf417 +* EncodeBarcodeType.pharmacode +* EncodeBarcodeType.planet +* EncodeBarcodeType.postnet +* EncodeBarcodeType.rM4SCC +* EncodeBarcodeType.rectMicroQR +* EncodeBarcodeType.sCC14 +* EncodeBarcodeType.sSCC18 +* EncodeBarcodeType.singaporePost +* EncodeBarcodeType.standard2of5 +* EncodeBarcodeType.swissPostParcel +* EncodeBarcodeType.UPCA +* EncodeBarcodeType.UPCE +* EncodeBarcodeType.upcaGs1Code128Coupon +* EncodeBarcodeType.upcaGs1DatabarCoupon +* EncodeBarcodeType.VIN diff --git a/doc/models/EncodeData.md b/doc/models/EncodeData.md new file mode 100644 index 0000000..4959044 --- /dev/null +++ b/doc/models/EncodeData.md @@ -0,0 +1,16 @@ +# aspose_barcode_cloud.model.EncodeData + +## Load the model package + +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` +Data to encode in barcode + +## Properties + +Name | Type | Description | Notes +---- | ---- | ----------- | ----- +**dataType** | [**EncodeDataType**](EncodeDataType.md) | | [optional] +**data** | **String** | String represents data to encode | + diff --git a/doc/models/EncodeDataType.md b/doc/models/EncodeDataType.md new file mode 100644 index 0000000..4828fe0 --- /dev/null +++ b/doc/models/EncodeDataType.md @@ -0,0 +1,14 @@ +# aspose_barcode_cloud.model.EncodeDataType + +## Load the model package + +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` +Types of data can be encoded to barcode +## Allowable values + +* **EncodeDataType.stringData** +* EncodeDataType.base64Bytes +* EncodeDataType.hexBytes + diff --git a/doc/models/Error.md b/doc/models/Error.md deleted file mode 100644 index 985d15f..0000000 --- a/doc/models/Error.md +++ /dev/null @@ -1,18 +0,0 @@ -# aspose_barcode_cloud.model.Error - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Error - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**code** | **String** | Code | [optional] [default to null] -**message** | **String** | Message | [optional] [default to null] -**description** | **String** | Description | [optional] [default to null] -**innerError** | [**ErrorDetails**](ErrorDetails.md) | Inner Error | [optional] [default to null] - diff --git a/doc/models/ErrorDetails.md b/doc/models/ErrorDetails.md deleted file mode 100644 index 3d5ea8e..0000000 --- a/doc/models/ErrorDetails.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.ErrorDetails - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -The error details - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**requestId** | **String** | The request id | [optional] [default to null] -**date** | [**DateTime**](DateTime.md) | Date | [default to null] - diff --git a/doc/models/FileVersion.md b/doc/models/FileVersion.md deleted file mode 100644 index 40f9ac6..0000000 --- a/doc/models/FileVersion.md +++ /dev/null @@ -1,20 +0,0 @@ -# aspose_barcode_cloud.model.FileVersion - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**name** | **String** | File or folder name. | [optional] [default to null] -**isFolder** | **bool** | True if it is a folder. | [default to null] -**modifiedDate** | [**DateTime**](DateTime.md) | File or folder last modified DateTime. | [optional] [default to null] -**size** | **int** | File or folder size. | [default to null] -**path** | **String** | File or folder path. | [optional] [default to null] -**versionId** | **String** | File Version ID. | [optional] [default to null] -**isLatest** | **bool** | Specifies whether the file is (true) or is not (false) the latest version of an file. | [default to null] - diff --git a/doc/models/FileVersions.md b/doc/models/FileVersions.md deleted file mode 100644 index d186cc7..0000000 --- a/doc/models/FileVersions.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.FileVersions - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -File versions FileVersion. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**value** | [**List<FileVersion>**](FileVersion.md) | File versions FileVersion. | [optional] [default to []] - diff --git a/doc/models/FilesList.md b/doc/models/FilesList.md deleted file mode 100644 index a1806a3..0000000 --- a/doc/models/FilesList.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.FilesList - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Files list - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**value** | [**List<StorageFile>**](StorageFile.md) | Files and folders contained by folder StorageFile. | [optional] [default to []] - diff --git a/doc/models/FilesUploadResult.md b/doc/models/FilesUploadResult.md deleted file mode 100644 index d0663ff..0000000 --- a/doc/models/FilesUploadResult.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.FilesUploadResult - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -File upload result - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**uploaded** | **List<String>** | List of uploaded file names | [optional] [default to []] -**errors** | [**List<Error>**](Error.md) | List of errors. | [optional] [default to []] - diff --git a/doc/models/FontMode.md b/doc/models/FontMode.md deleted file mode 100644 index 021df7a..0000000 --- a/doc/models/FontMode.md +++ /dev/null @@ -1,13 +0,0 @@ -# aspose_barcode_cloud.model.FontMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **FontMode.auto_** -* FontMode.manual_ - diff --git a/doc/models/FontParams.md b/doc/models/FontParams.md deleted file mode 100644 index c774ad0..0000000 --- a/doc/models/FontParams.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.FontParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Font. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**family** | **String** | Font family. | [optional] [default to null] -**size** | **double** | Font size in units. | [optional] [default to null] -**style** | [**FontStyle**](FontStyle.md) | Font style. | [optional] [default to null] - diff --git a/doc/models/FontStyle.md b/doc/models/FontStyle.md deleted file mode 100644 index 558a125..0000000 --- a/doc/models/FontStyle.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.FontStyle - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **FontStyle.regular_** -* FontStyle.bold_ -* FontStyle.italic_ -* FontStyle.underline_ -* FontStyle.strikeout_ - diff --git a/doc/models/GenerateParams.md b/doc/models/GenerateParams.md new file mode 100644 index 0000000..381bb74 --- /dev/null +++ b/doc/models/GenerateParams.md @@ -0,0 +1,17 @@ +# aspose_barcode_cloud.model.GenerateParams + +## Load the model package + +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` +Barcode generation parameters + +## Properties + +Name | Type | Description | Notes +---- | ---- | ----------- | ----- +**barcodeType** | [**EncodeBarcodeType**](EncodeBarcodeType.md) | | +**encodeData** | [**EncodeData**](EncodeData.md) | | +**barcodeImageParams** | [**BarcodeImageParams**](BarcodeImageParams.md) | | [optional] + diff --git a/doc/models/GeneratorParams.md b/doc/models/GeneratorParams.md deleted file mode 100644 index 8ff6f03..0000000 --- a/doc/models/GeneratorParams.md +++ /dev/null @@ -1,70 +0,0 @@ -# aspose_barcode_cloud.model.GeneratorParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Represents extended BarcodeGenerator params. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**typeOfBarcode** | [**EncodeBarcodeType**](EncodeBarcodeType.md) | Type of barcode to generate. | [default to null] -**text** | **String** | Text to encode. | [default to null] -**twoDDisplayText** | **String** | Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode | [optional] [default to null] -**textLocation** | [**CodeLocation**](CodeLocation.md) | Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. | [optional] [default to null] -**textAlignment** | [**TextAlignment**](TextAlignment.md) | Text alignment. | [optional] [default to null] -**textColor** | **String** | Specify the displaying CodeText's Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null] -**font** | [**FontParams**](FontParams.md) | Specify the displaying Text's font. Default value: Arial 5pt regular. Ignored if FontSizeMode is set to FontSizeMode.Auto. | [optional] [default to null] -**fontSizeMode** | [**FontMode**](FontMode.md) | Specify FontSizeMode. If FontSizeMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontSizeMode.Auto especially in AutoSizeMode.Nearest or AutoSizeMode.Interpolation. Default value: FontSizeMode.Auto. | [optional] [default to null] -**noWrap** | **bool** | Specify word wraps (line breaks) within text. Default value: false. | [optional] [default to null] -**resolution** | **double** | Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. | [optional] [default to null] -**resolutionX** | **double** | DEPRECATED: Use 'Resolution' instead. | [optional] [default to null] -**resolutionY** | **double** | DEPRECATED: Use 'Resolution' instead. | [optional] [default to null] -**dimensionX** | **double** | The smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. | [optional] [default to null] -**textSpace** | **double** | Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon. | [optional] [default to null] -**units** | [**AvailableGraphicsUnit**](AvailableGraphicsUnit.md) | Common Units for all measuring in query. Default units: pixel. | [optional] [default to null] -**sizeMode** | [**AutoSizeMode**](AutoSizeMode.md) | Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.None. | [optional] [default to null] -**barHeight** | **double** | Height of the barcode in given units. Default units: pixel. | [optional] [default to null] -**imageHeight** | **double** | Height of the barcode image in given units. Default units: pixel. | [optional] [default to null] -**imageWidth** | **double** | Width of the barcode image in given units. Default units: pixel. | [optional] [default to null] -**rotationAngle** | **double** | BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. | [optional] [default to null] -**padding** | [**Padding**](Padding.md) | Barcode paddings. Default value: 5pt 5pt 5pt 5pt. | [optional] [default to null] -**captionAbove** | [**CaptionParams**](CaptionParams.md) | Additional caption above barcode. | [optional] [default to null] -**captionBelow** | [**CaptionParams**](CaptionParams.md) | Additional caption below barcode. | [optional] [default to null] -**backColor** | **String** | Background color of the barcode image. Default value: white. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null] -**barColor** | **String** | Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null] -**borderColor** | **String** | Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF | [optional] [default to null] -**borderWidth** | **double** | Border width. Default value: 0. Ignored if Visible is set to false. | [optional] [default to null] -**borderDashStyle** | [**BorderDashStyle**](BorderDashStyle.md) | Border dash style. Default value: BorderDashStyle.Solid. | [optional] [default to null] -**borderVisible** | **bool** | Border visibility. If false than parameter Width is always ignored (0). Default value: false. | [optional] [default to null] -**enableChecksum** | [**EnableChecksum**](EnableChecksum.md) | Enable checksum during generation 1D barcodes. Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible. Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar Checksum always used: Rest symbology | [optional] [default to null] -**enableEscape** | **bool** | Indicates whether explains the character \"\\\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, \"\\\" will be explained as a special escape character. Otherwise, \"\\\" acts as normal characters. Aspose.BarCode supports input decimal ascii code and mnemonic for ASCII control-code characters. For example, \\013 and \\\\CR stands for CR. | [optional] [default to null] -**filledBars** | **bool** | Value indicating whether bars are filled. Only for 1D barcodes. Default value: true. | [optional] [default to null] -**alwaysShowChecksum** | **bool** | Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes. | [optional] [default to null] -**wideNarrowRatio** | **double** | Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard | [optional] [default to null] -**validateText** | **bool** | Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. | [optional] [default to null] -**supplementData** | **String** | Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. | [optional] [default to null] -**supplementSpace** | **double** | Space between main the BarCode and supplement BarCode. | [optional] [default to null] -**barWidthReduction** | **double** | Bars reduction value that is used to compensate ink spread while printing. | [optional] [default to null] -**useAntiAlias** | **bool** | Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. | [optional] [default to null] -**australianPost** | [**AustralianPostParams**](AustralianPostParams.md) | AustralianPost params. | [optional] [default to null] -**aztec** | [**AztecParams**](AztecParams.md) | Aztec params. | [optional] [default to null] -**codabar** | [**CodabarParams**](CodabarParams.md) | Codabar params. | [optional] [default to null] -**codablock** | [**CodablockParams**](CodablockParams.md) | Codablock params. | [optional] [default to null] -**code16K** | [**Code16KParams**](Code16KParams.md) | Code16K params. | [optional] [default to null] -**coupon** | [**CouponParams**](CouponParams.md) | Coupon params. | [optional] [default to null] -**dataBar** | [**DataBarParams**](DataBarParams.md) | DataBar params. | [optional] [default to null] -**dataMatrix** | [**DataMatrixParams**](DataMatrixParams.md) | DataMatrix params. | [optional] [default to null] -**dotCode** | [**DotCodeParams**](DotCodeParams.md) | DotCode params. | [optional] [default to null] -**ITF** | [**ITFParams**](ITFParams.md) | ITF params. | [optional] [default to null] -**maxiCode** | [**MaxiCodeParams**](MaxiCodeParams.md) | MaxiCode params. | [optional] [default to null] -**pdf417** | [**Pdf417Params**](Pdf417Params.md) | Pdf417 params. | [optional] [default to null] -**postal** | [**PostalParams**](PostalParams.md) | Postal params. | [optional] [default to null] -**QR** | [**QrParams**](QrParams.md) | QR params. | [optional] [default to null] -**patchCode** | [**PatchCodeParams**](PatchCodeParams.md) | PatchCode params. | [optional] [default to null] -**code128** | [**Code128Params**](Code128Params.md) | Code128 parameters | [optional] [default to null] -**hanXin** | [**HanXinParams**](HanXinParams.md) | HanXin params. | [optional] [default to null] - diff --git a/doc/models/GeneratorParamsList.md b/doc/models/GeneratorParamsList.md deleted file mode 100644 index 4df9e83..0000000 --- a/doc/models/GeneratorParamsList.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.GeneratorParamsList - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Represents list of barcode generators - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**barcodeBuilders** | [**List<GeneratorParams>**](GeneratorParams.md) | List of barcode generators | [optional] [default to []] -**xStep** | **int** | Shift step according to X axis | [default to null] -**yStep** | **int** | Shift step according to Y axis | [default to null] - diff --git a/doc/models/GraphicsUnit.md b/doc/models/GraphicsUnit.md new file mode 100644 index 0000000..233529c --- /dev/null +++ b/doc/models/GraphicsUnit.md @@ -0,0 +1,15 @@ +# aspose_barcode_cloud.model.GraphicsUnit + +## Load the model package + +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` +Subset of Aspose.Drawing.GraphicsUnit. +## Allowable values + +* **GraphicsUnit.pixel** +* GraphicsUnit.point +* GraphicsUnit.inch +* GraphicsUnit.millimeter + diff --git a/doc/models/HanXinEncodeMode.md b/doc/models/HanXinEncodeMode.md deleted file mode 100644 index d6da99b..0000000 --- a/doc/models/HanXinEncodeMode.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.HanXinEncodeMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **HanXinEncodeMode.auto_** -* HanXinEncodeMode.binary_ -* HanXinEncodeMode.eCI_ -* HanXinEncodeMode.unicode_ -* HanXinEncodeMode.uRI_ -* HanXinEncodeMode.extended_ - diff --git a/doc/models/HanXinErrorLevel.md b/doc/models/HanXinErrorLevel.md deleted file mode 100644 index a8c7458..0000000 --- a/doc/models/HanXinErrorLevel.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.HanXinErrorLevel - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **HanXinErrorLevel.l1_** -* HanXinErrorLevel.l2_ -* HanXinErrorLevel.l3_ -* HanXinErrorLevel.l4_ - diff --git a/doc/models/HanXinParams.md b/doc/models/HanXinParams.md deleted file mode 100644 index cc16f81..0000000 --- a/doc/models/HanXinParams.md +++ /dev/null @@ -1,18 +0,0 @@ -# aspose_barcode_cloud.model.HanXinParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -HanXin params. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**encodeMode** | [**HanXinEncodeMode**](HanXinEncodeMode.md) | Encoding mode for XanXin barcodes. Default value: HanXinEncodeMode.Auto. | [optional] [default to null] -**errorLevel** | [**HanXinErrorLevel**](HanXinErrorLevel.md) | Allowed Han Xin error correction levels from L1 to L4. Default value: HanXinErrorLevel.L1. | [optional] [default to null] -**version** | [**HanXinVersion**](HanXinVersion.md) | Allowed Han Xin versions, Auto and Version01 - Version84. Default value: HanXinVersion.Auto. | [optional] [default to null] -**eCIEncoding** | [**ECIEncodings**](ECIEncodings.md) | Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. Default value: ECIEncodings.ISO_8859_1 | [optional] [default to null] - diff --git a/doc/models/HanXinVersion.md b/doc/models/HanXinVersion.md deleted file mode 100644 index 668fb73..0000000 --- a/doc/models/HanXinVersion.md +++ /dev/null @@ -1,96 +0,0 @@ -# aspose_barcode_cloud.model.HanXinVersion - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **HanXinVersion.auto_** -* HanXinVersion.version01_ -* HanXinVersion.version02_ -* HanXinVersion.version03_ -* HanXinVersion.version04_ -* HanXinVersion.version05_ -* HanXinVersion.version06_ -* HanXinVersion.version07_ -* HanXinVersion.version08_ -* HanXinVersion.version09_ -* HanXinVersion.version10_ -* HanXinVersion.version11_ -* HanXinVersion.version12_ -* HanXinVersion.version13_ -* HanXinVersion.version14_ -* HanXinVersion.version15_ -* HanXinVersion.version16_ -* HanXinVersion.version17_ -* HanXinVersion.version18_ -* HanXinVersion.version19_ -* HanXinVersion.version20_ -* HanXinVersion.version21_ -* HanXinVersion.version22_ -* HanXinVersion.version23_ -* HanXinVersion.version24_ -* HanXinVersion.version25_ -* HanXinVersion.version26_ -* HanXinVersion.version27_ -* HanXinVersion.version28_ -* HanXinVersion.version29_ -* HanXinVersion.version30_ -* HanXinVersion.version31_ -* HanXinVersion.version32_ -* HanXinVersion.version33_ -* HanXinVersion.version34_ -* HanXinVersion.version35_ -* HanXinVersion.version36_ -* HanXinVersion.version37_ -* HanXinVersion.version38_ -* HanXinVersion.version39_ -* HanXinVersion.version40_ -* HanXinVersion.version41_ -* HanXinVersion.version42_ -* HanXinVersion.version43_ -* HanXinVersion.version44_ -* HanXinVersion.version45_ -* HanXinVersion.version46_ -* HanXinVersion.version47_ -* HanXinVersion.version48_ -* HanXinVersion.version49_ -* HanXinVersion.version50_ -* HanXinVersion.version51_ -* HanXinVersion.version52_ -* HanXinVersion.version53_ -* HanXinVersion.version54_ -* HanXinVersion.version55_ -* HanXinVersion.version56_ -* HanXinVersion.version57_ -* HanXinVersion.version58_ -* HanXinVersion.version59_ -* HanXinVersion.version60_ -* HanXinVersion.version61_ -* HanXinVersion.version62_ -* HanXinVersion.version63_ -* HanXinVersion.version64_ -* HanXinVersion.version65_ -* HanXinVersion.version66_ -* HanXinVersion.version67_ -* HanXinVersion.version68_ -* HanXinVersion.version69_ -* HanXinVersion.version70_ -* HanXinVersion.version71_ -* HanXinVersion.version72_ -* HanXinVersion.version73_ -* HanXinVersion.version74_ -* HanXinVersion.version75_ -* HanXinVersion.version76_ -* HanXinVersion.version77_ -* HanXinVersion.version78_ -* HanXinVersion.version79_ -* HanXinVersion.version80_ -* HanXinVersion.version81_ -* HanXinVersion.version82_ -* HanXinVersion.version83_ -* HanXinVersion.version84_ - diff --git a/doc/models/ITF14BorderType.md b/doc/models/ITF14BorderType.md deleted file mode 100644 index 7362a21..0000000 --- a/doc/models/ITF14BorderType.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.ITF14BorderType - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **ITF14BorderType.none_** -* ITF14BorderType.frame_ -* ITF14BorderType.bar_ -* ITF14BorderType.frameOut_ -* ITF14BorderType.barOut_ - diff --git a/doc/models/ITFParams.md b/doc/models/ITFParams.md deleted file mode 100644 index 941cd9f..0000000 --- a/doc/models/ITFParams.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.ITFParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -ITF parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**borderThickness** | **double** | ITF border (bearer bar) thickness in Unit value. Default value: 12pt. | [optional] [default to null] -**borderType** | [**ITF14BorderType**](ITF14BorderType.md) | Border type of ITF barcode. Default value: ITF14BorderType.Bar. | [optional] [default to null] -**quietZoneCoef** | **int** | Size of the quiet zones in xDimension. Default value: 10, meaning if xDimension = 2px than quiet zones will be 20px. | [optional] [default to null] - diff --git a/doc/models/MacroCharacter.md b/doc/models/MacroCharacter.md deleted file mode 100644 index 69d9663..0000000 --- a/doc/models/MacroCharacter.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.MacroCharacter - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **MacroCharacter.none_** -* MacroCharacter.macro05_ -* MacroCharacter.macro06_ - diff --git a/doc/models/MaxiCodeEncodeMode.md b/doc/models/MaxiCodeEncodeMode.md deleted file mode 100644 index ae2047f..0000000 --- a/doc/models/MaxiCodeEncodeMode.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.MaxiCodeEncodeMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **MaxiCodeEncodeMode.auto_** -* MaxiCodeEncodeMode.bytes_ -* MaxiCodeEncodeMode.extendedCodetext_ - diff --git a/doc/models/MaxiCodeMode.md b/doc/models/MaxiCodeMode.md deleted file mode 100644 index b30409e..0000000 --- a/doc/models/MaxiCodeMode.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.MaxiCodeMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **MaxiCodeMode.mode2_** -* MaxiCodeMode.mode3_ -* MaxiCodeMode.mode4_ -* MaxiCodeMode.mode5_ -* MaxiCodeMode.mode6_ - diff --git a/doc/models/MaxiCodeParams.md b/doc/models/MaxiCodeParams.md deleted file mode 100644 index e4b5ed9..0000000 --- a/doc/models/MaxiCodeParams.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.MaxiCodeParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -MaxiCode parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**aspectRatio** | **double** | Height/Width ratio of 2D BarCode module. | [optional] [default to null] -**mode** | [**MaxiCodeMode**](MaxiCodeMode.md) | Mode for MaxiCode barcodes. | [optional] [default to null] -**encodeMode** | [**MaxiCodeEncodeMode**](MaxiCodeEncodeMode.md) | Encoding mode for MaxiCode barcodes. | [optional] [default to null] - diff --git a/doc/models/ObjectExist.md b/doc/models/ObjectExist.md deleted file mode 100644 index 7048cb7..0000000 --- a/doc/models/ObjectExist.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.ObjectExist - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Object exists - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**exists** | **bool** | Indicates that the file or folder exists. | [default to null] -**isFolder** | **bool** | True if it is a folder, false if it is a file. | [default to null] - diff --git a/doc/models/Padding.md b/doc/models/Padding.md deleted file mode 100644 index 75688c3..0000000 --- a/doc/models/Padding.md +++ /dev/null @@ -1,18 +0,0 @@ -# aspose_barcode_cloud.model.Padding - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Padding around barcode. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**left** | **double** | Left padding. | [optional] [default to null] -**right** | **double** | Right padding. | [optional] [default to null] -**top** | **double** | Top padding. | [optional] [default to null] -**bottom** | **double** | Bottom padding. | [optional] [default to null] - diff --git a/doc/models/PatchCodeParams.md b/doc/models/PatchCodeParams.md deleted file mode 100644 index 1d20dfb..0000000 --- a/doc/models/PatchCodeParams.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.PatchCodeParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -PatchCode parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**extraBarcodeText** | **String** | Specifies codetext for an extra QR barcode, when PatchCode is generated in page mode. | [optional] [default to null] -**patchFormat** | [**PatchFormat**](PatchFormat.md) | PatchCode format. Choose PatchOnly to generate single PatchCode. Use page format to generate Patch page with PatchCodes as borders. Default value: PatchFormat.PatchOnly | [optional] [default to null] - diff --git a/doc/models/PatchFormat.md b/doc/models/PatchFormat.md deleted file mode 100644 index 61cc721..0000000 --- a/doc/models/PatchFormat.md +++ /dev/null @@ -1,16 +0,0 @@ -# aspose_barcode_cloud.model.PatchFormat - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **PatchFormat.patchOnly_** -* PatchFormat.a4_ -* PatchFormat.a4LANDSCAPE_ -* PatchFormat.uSLetter_ -* PatchFormat.uSLetterLANDSCAPE_ - diff --git a/doc/models/Pdf417CompactionMode.md b/doc/models/Pdf417CompactionMode.md deleted file mode 100644 index 7ba44b0..0000000 --- a/doc/models/Pdf417CompactionMode.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.Pdf417CompactionMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **Pdf417CompactionMode.auto_** -* Pdf417CompactionMode.text_ -* Pdf417CompactionMode.numeric_ -* Pdf417CompactionMode.binary_ - diff --git a/doc/models/Pdf417ErrorLevel.md b/doc/models/Pdf417ErrorLevel.md deleted file mode 100644 index d8ef340..0000000 --- a/doc/models/Pdf417ErrorLevel.md +++ /dev/null @@ -1,20 +0,0 @@ -# aspose_barcode_cloud.model.Pdf417ErrorLevel - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **Pdf417ErrorLevel.level0_** -* Pdf417ErrorLevel.level1_ -* Pdf417ErrorLevel.level2_ -* Pdf417ErrorLevel.level3_ -* Pdf417ErrorLevel.level4_ -* Pdf417ErrorLevel.level5_ -* Pdf417ErrorLevel.level6_ -* Pdf417ErrorLevel.level7_ -* Pdf417ErrorLevel.level8_ - diff --git a/doc/models/Pdf417MacroTerminator.md b/doc/models/Pdf417MacroTerminator.md deleted file mode 100644 index 89df2e5..0000000 --- a/doc/models/Pdf417MacroTerminator.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.Pdf417MacroTerminator - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **Pdf417MacroTerminator.auto_** -* Pdf417MacroTerminator.none_ -* Pdf417MacroTerminator.set_ - diff --git a/doc/models/Pdf417Params.md b/doc/models/Pdf417Params.md deleted file mode 100644 index 0e41db2..0000000 --- a/doc/models/Pdf417Params.md +++ /dev/null @@ -1,38 +0,0 @@ -# aspose_barcode_cloud.model.Pdf417Params - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -PDF417 parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**aspectRatio** | **double** | Height/Width ratio of 2D BarCode module. | [optional] [default to null] -**textEncoding** | **String** | DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. | [optional] [default to null] -**columns** | **int** | Columns count. | [optional] [default to null] -**compactionMode** | [**Pdf417CompactionMode**](Pdf417CompactionMode.md) | Pdf417 symbology type of BarCode's compaction mode. Default value: Pdf417CompactionMode.Auto. | [optional] [default to null] -**errorLevel** | [**Pdf417ErrorLevel**](Pdf417ErrorLevel.md) | Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture. | [optional] [default to null] -**macroFileID** | **int** | Macro Pdf417 barcode's file ID. Used for MacroPdf417. | [optional] [default to null] -**macroSegmentID** | **int** | Macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1. | [optional] [default to null] -**macroSegmentsCount** | **int** | Macro Pdf417 barcode segments count. | [optional] [default to null] -**rows** | **int** | Rows count. | [optional] [default to null] -**truncate** | **bool** | Whether Pdf417 symbology type of BarCode is truncated (to reduce space). | [optional] [default to null] -**pdf417ECIEncoding** | [**ECIEncodings**](ECIEncodings.md) | Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. | [optional] [default to null] -**isReaderInitialization** | **bool** | Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization | [optional] [default to null] -**macroTimeStamp** | [**DateTime**](DateTime.md) | Macro Pdf417 barcode time stamp | [optional] [default to null] -**macroSender** | **String** | Macro Pdf417 barcode sender name | [optional] [default to null] -**macroFileSize** | **int** | Macro Pdf417 file size. The file size field contains the size in bytes of the entire source file | [optional] [default to null] -**macroChecksum** | **int** | Macro Pdf417 barcode checksum. The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial | [optional] [default to null] -**macroFileName** | **String** | Macro Pdf417 barcode file name | [optional] [default to null] -**macroAddressee** | **String** | Macro Pdf417 barcode addressee name | [optional] [default to null] -**macroECIEncoding** | [**ECIEncodings**](ECIEncodings.md) | Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields. | [optional] [default to null] -**code128Emulation** | [**Code128Emulation**](Code128Emulation.md) | DEPRECATED: This property is obsolete and will be removed in future releases. See samples of using new parameters on https://releases.aspose.com/barcode/net/release-notes/2023/aspose-barcode-for-net-23-10-release-notes/ Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. | [optional] [default to null] -**isCode128Emulation** | **bool** | Can be used only with MicroPdf417 and encodes Code 128 emulation modes. Can encode FNC1 in second position modes 908 and 909, also can encode 910 and 911 which just indicate that recognized MicroPdf417 can be interpret as Code 128. | [optional] [default to null] -**pdf417MacroTerminator** | [**Pdf417MacroTerminator**](Pdf417MacroTerminator.md) | Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417. | [optional] [default to null] -**isLinked** | **bool** | Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes. With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes. With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC. | [optional] [default to null] -**macroCharacters** | [**MacroCharacter**](MacroCharacter.md) | Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with MicroPdf417 and encodes 916 and 917 MicroPdf417 modes. Default value: MacroCharacters.None. | [optional] [default to null] - diff --git a/doc/models/PostalParams.md b/doc/models/PostalParams.md deleted file mode 100644 index 219f310..0000000 --- a/doc/models/PostalParams.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.PostalParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Postal parameters. Used for Postnet, Planet. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**shortBarHeight** | **double** | Short bar's height of Postal barcodes. | [optional] [default to null] - diff --git a/doc/models/PresetType.md b/doc/models/PresetType.md deleted file mode 100644 index 498aec5..0000000 --- a/doc/models/PresetType.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.PresetType - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -See QualitySettings allows to configure recognition quality and speed manually. -## Allowable values - -* **PresetType.highPerformance_** -* PresetType.normalQuality_ -* PresetType.highQualityDetection_ -* PresetType.maxQualityDetection_ -* PresetType.highQuality_ -* PresetType.maxBarCodes_ - diff --git a/doc/models/QREncodeMode.md b/doc/models/QREncodeMode.md deleted file mode 100644 index e16cec9..0000000 --- a/doc/models/QREncodeMode.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.QREncodeMode - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **QREncodeMode.auto_** -* QREncodeMode.bytes_ -* QREncodeMode.utf8BOM_ -* QREncodeMode.utf16BEBOM_ -* QREncodeMode.eCIEncoding_ -* QREncodeMode.extendedCodetext_ - diff --git a/doc/models/QREncodeType.md b/doc/models/QREncodeType.md deleted file mode 100644 index 58d5b3e..0000000 --- a/doc/models/QREncodeType.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.QREncodeType - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **QREncodeType.auto_** -* QREncodeType.forceQR_ -* QREncodeType.forceMicroQR_ - diff --git a/doc/models/QRErrorLevel.md b/doc/models/QRErrorLevel.md deleted file mode 100644 index af3191d..0000000 --- a/doc/models/QRErrorLevel.md +++ /dev/null @@ -1,15 +0,0 @@ -# aspose_barcode_cloud.model.QRErrorLevel - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **QRErrorLevel.levelL_** -* QRErrorLevel.levelM_ -* QRErrorLevel.levelQ_ -* QRErrorLevel.levelH_ - diff --git a/doc/models/QRVersion.md b/doc/models/QRVersion.md deleted file mode 100644 index 5438008..0000000 --- a/doc/models/QRVersion.md +++ /dev/null @@ -1,56 +0,0 @@ -# aspose_barcode_cloud.model.QRVersion - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **QRVersion.auto_** -* QRVersion.version01_ -* QRVersion.version02_ -* QRVersion.version03_ -* QRVersion.version04_ -* QRVersion.version05_ -* QRVersion.version06_ -* QRVersion.version07_ -* QRVersion.version08_ -* QRVersion.version09_ -* QRVersion.version10_ -* QRVersion.version11_ -* QRVersion.version12_ -* QRVersion.version13_ -* QRVersion.version14_ -* QRVersion.version15_ -* QRVersion.version16_ -* QRVersion.version17_ -* QRVersion.version18_ -* QRVersion.version19_ -* QRVersion.version20_ -* QRVersion.version21_ -* QRVersion.version22_ -* QRVersion.version23_ -* QRVersion.version24_ -* QRVersion.version25_ -* QRVersion.version26_ -* QRVersion.version27_ -* QRVersion.version28_ -* QRVersion.version29_ -* QRVersion.version30_ -* QRVersion.version31_ -* QRVersion.version32_ -* QRVersion.version33_ -* QRVersion.version34_ -* QRVersion.version35_ -* QRVersion.version36_ -* QRVersion.version37_ -* QRVersion.version38_ -* QRVersion.version39_ -* QRVersion.version40_ -* QRVersion.versionM1_ -* QRVersion.versionM2_ -* QRVersion.versionM3_ -* QRVersion.versionM4_ - diff --git a/doc/models/QrParams.md b/doc/models/QrParams.md deleted file mode 100644 index 6fdf40b..0000000 --- a/doc/models/QrParams.md +++ /dev/null @@ -1,22 +0,0 @@ -# aspose_barcode_cloud.model.QrParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -QR parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**aspectRatio** | **double** | Height/Width ratio of 2D BarCode module. | [optional] [default to null] -**textEncoding** | **String** | DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. | [optional] [default to null] -**encodeType** | [**QREncodeType**](QREncodeType.md) | QR / MicroQR selector mode. Select ForceQR for standard QR symbols, Auto for MicroQR. | [optional] [default to null] -**eCIEncoding** | [**ECIEncodings**](ECIEncodings.md) | Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. | [optional] [default to null] -**encodeMode** | [**QREncodeMode**](QREncodeMode.md) | QR symbology type of BarCode's encoding mode. Default value: QREncodeMode.Auto. | [optional] [default to null] -**errorLevel** | [**QRErrorLevel**](QRErrorLevel.md) | Level of Reed-Solomon error correction for QR barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. see QRErrorLevel. | [optional] [default to null] -**version** | [**QRVersion**](QRVersion.md) | Version of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr. Default value is QRVersion.Auto. | [optional] [default to null] -**structuredAppend** | [**StructuredAppend**](StructuredAppend.md) | QR structured append parameters. | [optional] [default to null] - diff --git a/doc/models/ReaderParams.md b/doc/models/ReaderParams.md deleted file mode 100644 index bc7b199..0000000 --- a/doc/models/ReaderParams.md +++ /dev/null @@ -1,50 +0,0 @@ -# aspose_barcode_cloud.model.ReaderParams - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Represents BarcodeReader object. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**type** | [**DecodeBarcodeType**](DecodeBarcodeType.md) | The type of barcode to read. | [optional] [default to null] -**types** | [**List<DecodeBarcodeType>**](DecodeBarcodeType.md) | Multiple barcode types to read. | [optional] [default to []] -**checksumValidation** | [**ChecksumValidation**](ChecksumValidation.md) | Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies | [optional] [default to null] -**detectEncoding** | **bool** | A flag which force engine to detect codetext encoding for Unicode. | [optional] [default to null] -**preset** | [**PresetType**](PresetType.md) | Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. | [optional] [default to null] -**rectX** | **int** | Set X of top left corner of area for recognition. | [optional] [default to null] -**rectY** | **int** | Set Y of top left corner of area for recognition. | [optional] [default to null] -**rectWidth** | **int** | Set Width of area for recognition. | [optional] [default to null] -**rectHeight** | **int** | Set Height of area for recognition. | [optional] [default to null] -**stripFNC** | **bool** | Value indicating whether FNC symbol strip must be done. | [optional] [default to null] -**timeout** | **int** | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional] [default to null] -**medianSmoothingWindowSize** | **int** | Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional] [default to null] -**allowMedianSmoothing** | **bool** | Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional] [default to null] -**allowComplexBackground** | **bool** | Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional] [default to null] -**allowDatamatrixIndustrialBarcodes** | **bool** | Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes. Slow mode which helps only for dashed barcodes which consist from spots. | [optional] [default to null] -**allowDecreasedImage** | **bool** | Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms. Mode helps to recognize barcodes which are noised and blurred but captured with high resolution. | [optional] [default to null] -**allowDetectScanGap** | **bool** | Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes. | [optional] [default to null] -**allowIncorrectBarcodes** | **bool** | Allows engine to recognize barcodes which has incorrect checksum or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text. | [optional] [default to null] -**allowInvertImage** | **bool** | Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background. | [optional] [default to null] -**allowMicroWhiteSpotsRemoving** | **bool** | Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize slightly damaged Postal barcodes. | [optional] [default to null] -**allowOneDFastBarcodesDetector** | **bool** | Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image. Mode helps to quickly recognize generated barcodes from Internet. | [optional] [default to null] -**allowOneDWipedBarsRestoration** | **bool** | Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern. | [optional] [default to null] -**allowQRMicroQrRestoration** | **bool** | Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes. | [optional] [default to null] -**allowRegularImage** | **bool** | Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is. | [optional] [default to null] -**allowSaltAndPepperFiltering** | **bool** | Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots. | [optional] [default to null] -**allowWhiteSpotsRemoving** | **bool** | Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. | [optional] [default to null] -**checkMore1DVariants** | **bool** | Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. | [optional] [default to null] -**fastScanOnly** | **bool** | Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. | [optional] [default to null] -**allowAdditionalRestorations** | **bool** | Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. | [optional] [default to null] -**regionLikelihoodThresholdPercent** | **double** | Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. | [optional] [default to null] -**scanWindowSizes** | **List<int>** | Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. | [optional] [default to []] -**similarity** | **double** | Similarity coefficient depends on how homogeneous barcodes are. Use high value for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] | [optional] [default to null] -**skipDiagonalSearch** | **bool** | Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time. | [optional] [default to null] -**readTinyBarcodes** | **bool** | Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. | [optional] [default to null] -**australianPostEncodingTable** | [**CustomerInformationInterpretingType**](CustomerInformationInterpretingType.md) | Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. | [optional] [default to null] -**ignoreEndingFillingPatternsForCTable** | **bool** | The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequence \"333\" of filling patterns is decoded as letter \"z\". | [optional] [default to null] - diff --git a/doc/models/RecognitionImageKind.md b/doc/models/RecognitionImageKind.md new file mode 100644 index 0000000..dbc3716 --- /dev/null +++ b/doc/models/RecognitionImageKind.md @@ -0,0 +1,14 @@ +# aspose_barcode_cloud.model.RecognitionImageKind + +## Load the model package + +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` +Kind of image to recognize +## Allowable values + +* **RecognitionImageKind.photo** +* RecognitionImageKind.scannedDocument +* RecognitionImageKind.clearImage + diff --git a/doc/models/RecognitionMode.md b/doc/models/RecognitionMode.md new file mode 100644 index 0000000..0ffe29e --- /dev/null +++ b/doc/models/RecognitionMode.md @@ -0,0 +1,14 @@ +# aspose_barcode_cloud.model.RecognitionMode + +## Load the model package + +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` +Recognition mode. +## Allowable values + +* **RecognitionMode.fast** +* RecognitionMode.normal +* RecognitionMode.excellent + diff --git a/doc/models/RecognizeBase64Request.md b/doc/models/RecognizeBase64Request.md new file mode 100644 index 0000000..fda4b6e --- /dev/null +++ b/doc/models/RecognizeBase64Request.md @@ -0,0 +1,18 @@ +# aspose_barcode_cloud.model.RecognizeBase64Request + +## Load the model package + +```dart +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +``` +Barcode recognize request + +## Properties + +Name | Type | Description | Notes +---- | ---- | ----------- | ----- +**barcodeTypes** | [**List<DecodeBarcodeType>**](DecodeBarcodeType.md) | Array of decode types to find on barcode | [default to const []] +**fileBase64** | **String** | Barcode image bytes encoded as base-64. | +**recognitionMode** | [**RecognitionMode**](RecognitionMode.md) | | [optional] +**recognitionImageKind** | [**RecognitionImageKind**](RecognitionImageKind.md) | | [optional] + diff --git a/doc/models/RegionPoint.md b/doc/models/RegionPoint.md index 16bdbd8..ca92feb 100644 --- a/doc/models/RegionPoint.md +++ b/doc/models/RegionPoint.md @@ -11,6 +11,6 @@ Wrapper around Drawing.Point for proper specification. Name | Type | Description | Notes ---- | ---- | ----------- | ----- -**X** | **int** | X-coordinate | [default to null] -**Y** | **int** | Y-coordinate | [default to null] +**x** | **int** | X-coordinate | [optional] +**y** | **int** | Y-coordinate | [optional] diff --git a/doc/models/ResultImageInfo.md b/doc/models/ResultImageInfo.md deleted file mode 100644 index ace5756..0000000 --- a/doc/models/ResultImageInfo.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.ResultImageInfo - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -Created image info. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**fileSize** | **int** | Result file size. | [default to null] -**imageWidth** | **int** | Result image width. | [optional] [default to null] -**imageHeight** | **int** | Result image height. | [optional] [default to null] - diff --git a/doc/models/StorageExist.md b/doc/models/ScanBase64Request.md similarity index 57% rename from doc/models/StorageExist.md rename to doc/models/ScanBase64Request.md index fdd98d7..ed6e2ed 100644 --- a/doc/models/StorageExist.md +++ b/doc/models/ScanBase64Request.md @@ -1,15 +1,15 @@ -# aspose_barcode_cloud.model.StorageExist +# aspose_barcode_cloud.model.ScanBase64Request ## Load the model package ```dart import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; ``` -Storage exists +Scan barcode request. ## Properties Name | Type | Description | Notes ---- | ---- | ----------- | ----- -**exists** | **bool** | Shows that the storage exists. | [default to null] +**fileBase64** | **String** | Barcode image bytes encoded as base-64. | diff --git a/doc/models/StorageFile.md b/doc/models/StorageFile.md deleted file mode 100644 index 505382f..0000000 --- a/doc/models/StorageFile.md +++ /dev/null @@ -1,19 +0,0 @@ -# aspose_barcode_cloud.model.StorageFile - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -File or folder information - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**name** | **String** | File or folder name. | [optional] [default to null] -**isFolder** | **bool** | True if it is a folder. | [default to null] -**modifiedDate** | [**DateTime**](DateTime.md) | File or folder last modified DateTime. | [optional] [default to null] -**size** | **int** | File or folder size. | [default to null] -**path** | **String** | File or folder path. | [optional] [default to null] - diff --git a/doc/models/StructuredAppend.md b/doc/models/StructuredAppend.md deleted file mode 100644 index 15f6f9a..0000000 --- a/doc/models/StructuredAppend.md +++ /dev/null @@ -1,17 +0,0 @@ -# aspose_barcode_cloud.model.StructuredAppend - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` -QR structured append parameters. - -## Properties - -Name | Type | Description | Notes ----- | ---- | ----------- | ----- -**sequenceIndicator** | **int** | The index of the QR structured append mode barcode. Index starts from 0. | [optional] [default to null] -**totalCount** | **int** | QR structured append mode barcodes quantity. Max value is 16. | [optional] [default to null] -**parityByte** | **int** | QR structured append mode parity data. | [optional] [default to null] - diff --git a/doc/models/TextAlignment.md b/doc/models/TextAlignment.md deleted file mode 100644 index f631d7f..0000000 --- a/doc/models/TextAlignment.md +++ /dev/null @@ -1,14 +0,0 @@ -# aspose_barcode_cloud.model.TextAlignment - -## Load the model package - -```dart -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -``` - -## Allowable values - -* **TextAlignment.left_** -* TextAlignment.center_ -* TextAlignment.right_ - diff --git a/example/main.dart b/example/main.dart index 72dec14..c9235b7 100644 --- a/example/main.dart +++ b/example/main.dart @@ -2,41 +2,35 @@ import 'dart:io'; import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -import 'package:http/http.dart' show MultipartFile; Future main() async { const fileName = "qr.png"; - final api = BarcodeApi(ApiClient(Configuration( + final client = ApiClient(Configuration( clientId: "Client Id from https://dashboard.aspose.cloud/applications", clientSecret: "Client Secret from https://dashboard.aspose.cloud/applications", // For testing only accessToken: Platform.environment["TEST_CONFIGURATION_ACCESS_TOKEN"], - ))); + )); + final genApi = GenerateApi(client); + final scanApi = ScanApi(client); // Generate image with barcode - final Uint8List generated = await api.getBarcodeGenerate( - EncodeBarcodeType.QR.toString(), - "text", - textLocation: CodeLocation.None.toString(), - ); + final Uint8List generated = + await genApi.generate(EncodeBarcodeType.QR, "text"); // Save generated image to file File(fileName).writeAsBytesSync(generated); print("Generated image saved to '$fileName'"); // Recognize generated image - final formFile = MultipartFile.fromBytes("image", generated.toList(), - filename: "barcode.png"); - final BarcodeResponseList recognized = await api.scanBarcode( - formFile, - decodeTypes: [DecodeBarcodeType.QR], - ); - - if (recognized.barcodes != null && recognized.barcodes!.isNotEmpty) { - print("Recognized Type: ${recognized.barcodes![0].type!}"); - print("Recognized Value: ${recognized.barcodes![0].barcodeValue!}"); + + final BarcodeResponseList recognized = await scanApi.scanMultipart(generated); + + if (recognized.barcodes.isNotEmpty) { + print("Recognized Type: ${recognized.barcodes[0].type!}"); + print("Recognized Value: ${recognized.barcodes[0].barcodeValue!}"); } else { print("No barcode found"); } diff --git a/lib/aspose_barcode_cloud.dart b/lib/aspose_barcode_cloud.dart index ca837ad..7a8337b 100644 --- a/lib/aspose_barcode_cloud.dart +++ b/lib/aspose_barcode_cloud.dart @@ -5,88 +5,25 @@ export 'src/api_client.dart' show ApiClient, SDK_VERSION; export 'src/api_exception.dart' show ApiException; export 'src/auth/oauth.dart' show OAuth; -export 'src/api/barcode_api.dart' show BarcodeApi; -export 'src/api/file_api.dart' show FileApi; -export 'src/api/folder_api.dart' show FolderApi; -export 'src/api/storage_api.dart' show StorageApi; +export 'src/api/generate_api.dart' show GenerateApi; +export 'src/api/recognize_api.dart' show RecognizeApi; +export 'src/api/scan_api.dart' show ScanApi; export 'src/model/api_error.dart' show ApiError; export 'src/model/api_error_response.dart' show ApiErrorResponse; -export 'src/model/australian_post_params.dart' show AustralianPostParams; -export 'src/model/auto_size_mode.dart' show AutoSizeMode; -export 'src/model/available_graphics_unit.dart' show AvailableGraphicsUnit; -export 'src/model/aztec_encode_mode.dart' show AztecEncodeMode; -export 'src/model/aztec_params.dart' show AztecParams; -export 'src/model/aztec_symbol_mode.dart' show AztecSymbolMode; +export 'src/model/barcode_image_format.dart' show BarcodeImageFormat; +export 'src/model/barcode_image_params.dart' show BarcodeImageParams; export 'src/model/barcode_response.dart' show BarcodeResponse; export 'src/model/barcode_response_list.dart' show BarcodeResponseList; -export 'src/model/border_dash_style.dart' show BorderDashStyle; -export 'src/model/caption_params.dart' show CaptionParams; -export 'src/model/checksum_validation.dart' show ChecksumValidation; -export 'src/model/codabar_checksum_mode.dart' show CodabarChecksumMode; -export 'src/model/codabar_params.dart' show CodabarParams; -export 'src/model/codabar_symbol.dart' show CodabarSymbol; -export 'src/model/codablock_params.dart' show CodablockParams; -export 'src/model/code128_emulation.dart' show Code128Emulation; -export 'src/model/code128_encode_mode.dart' show Code128EncodeMode; -export 'src/model/code128_params.dart' show Code128Params; -export 'src/model/code16_k_params.dart' show Code16KParams; export 'src/model/code_location.dart' show CodeLocation; -export 'src/model/coupon_params.dart' show CouponParams; -export 'src/model/customer_information_interpreting_type.dart' - show CustomerInformationInterpretingType; -export 'src/model/data_bar_params.dart' show DataBarParams; -export 'src/model/data_matrix_ecc_type.dart' show DataMatrixEccType; -export 'src/model/data_matrix_encode_mode.dart' show DataMatrixEncodeMode; -export 'src/model/data_matrix_params.dart' show DataMatrixParams; -export 'src/model/data_matrix_version.dart' show DataMatrixVersion; export 'src/model/decode_barcode_type.dart' show DecodeBarcodeType; -export 'src/model/disc_usage.dart' show DiscUsage; -export 'src/model/dot_code_encode_mode.dart' show DotCodeEncodeMode; -export 'src/model/dot_code_params.dart' show DotCodeParams; -export 'src/model/eci_encodings.dart' show ECIEncodings; -export 'src/model/enable_checksum.dart' show EnableChecksum; export 'src/model/encode_barcode_type.dart' show EncodeBarcodeType; -export 'src/model/error.dart' show Error; -export 'src/model/error_details.dart' show ErrorDetails; -export 'src/model/file_versions.dart' show FileVersions; -export 'src/model/files_list.dart' show FilesList; -export 'src/model/files_upload_result.dart' show FilesUploadResult; -export 'src/model/font_mode.dart' show FontMode; -export 'src/model/font_params.dart' show FontParams; -export 'src/model/font_style.dart' show FontStyle; -export 'src/model/generator_params.dart' show GeneratorParams; -export 'src/model/generator_params_list.dart' show GeneratorParamsList; -export 'src/model/han_xin_encode_mode.dart' show HanXinEncodeMode; -export 'src/model/han_xin_error_level.dart' show HanXinErrorLevel; -export 'src/model/han_xin_params.dart' show HanXinParams; -export 'src/model/han_xin_version.dart' show HanXinVersion; -export 'src/model/itf14_border_type.dart' show ITF14BorderType; -export 'src/model/itf_params.dart' show ITFParams; -export 'src/model/macro_character.dart' show MacroCharacter; -export 'src/model/maxi_code_encode_mode.dart' show MaxiCodeEncodeMode; -export 'src/model/maxi_code_mode.dart' show MaxiCodeMode; -export 'src/model/maxi_code_params.dart' show MaxiCodeParams; -export 'src/model/object_exist.dart' show ObjectExist; -export 'src/model/padding.dart' show Padding; -export 'src/model/patch_code_params.dart' show PatchCodeParams; -export 'src/model/patch_format.dart' show PatchFormat; -export 'src/model/pdf417_compaction_mode.dart' show Pdf417CompactionMode; -export 'src/model/pdf417_error_level.dart' show Pdf417ErrorLevel; -export 'src/model/pdf417_macro_terminator.dart' show Pdf417MacroTerminator; -export 'src/model/pdf417_params.dart' show Pdf417Params; -export 'src/model/postal_params.dart' show PostalParams; -export 'src/model/preset_type.dart' show PresetType; -export 'src/model/qr_encode_mode.dart' show QREncodeMode; -export 'src/model/qr_encode_type.dart' show QREncodeType; -export 'src/model/qr_error_level.dart' show QRErrorLevel; -export 'src/model/qr_version.dart' show QRVersion; -export 'src/model/qr_params.dart' show QrParams; -export 'src/model/reader_params.dart' show ReaderParams; +export 'src/model/encode_data.dart' show EncodeData; +export 'src/model/encode_data_type.dart' show EncodeDataType; +export 'src/model/generate_params.dart' show GenerateParams; +export 'src/model/graphics_unit.dart' show GraphicsUnit; +export 'src/model/recognition_image_kind.dart' show RecognitionImageKind; +export 'src/model/recognition_mode.dart' show RecognitionMode; +export 'src/model/recognize_base64_request.dart' show RecognizeBase64Request; export 'src/model/region_point.dart' show RegionPoint; -export 'src/model/result_image_info.dart' show ResultImageInfo; -export 'src/model/storage_exist.dart' show StorageExist; -export 'src/model/storage_file.dart' show StorageFile; -export 'src/model/structured_append.dart' show StructuredAppend; -export 'src/model/text_alignment.dart' show TextAlignment; -export 'src/model/file_version.dart' show FileVersion; +export 'src/model/scan_base64_request.dart' show ScanBase64Request; diff --git a/lib/src/api/barcode_api.dart b/lib/src/api/barcode_api.dart deleted file mode 100644 index 82d87e0..0000000 --- a/lib/src/api/barcode_api.dart +++ /dev/null @@ -1,1137 +0,0 @@ -import 'dart:typed_data' show Uint8List; - -import 'package:http/http.dart' show MultipartFile; - -import '../http/multipart_request_plus.dart'; -import '../../aspose_barcode_cloud.dart'; -import '../api_helper.dart'; - -/// BarcodeApi -class BarcodeApi { - /// Constructor - BarcodeApi(this._apiClient); - - final ApiClient _apiClient; - - /// - /// Generate barcode. - /// - Future getBarcodeGenerate(String type, String text, - {String? twoDDisplayText, - String? textLocation, - String? textAlignment, - String? textColor, - bool? noWrap, - double? resolution, - double? resolutionX, - double? resolutionY, - double? dimensionX, - double? textSpace, - String? units, - String? sizeMode, - double? barHeight, - double? imageHeight, - double? imageWidth, - double? rotationAngle, - String? backColor, - String? barColor, - String? borderColor, - double? borderWidth, - String? borderDashStyle, - bool? borderVisible, - String? enableChecksum, - bool? enableEscape, - bool? filledBars, - bool? alwaysShowChecksum, - double? wideNarrowRatio, - bool? validateText, - String? supplementData, - double? supplementSpace, - double? barWidthReduction, - bool? useAntiAlias, - String? format}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = - "/barcode/generate".replaceAll("{format}", "json"); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - queryParams.addAll(convertParametersForCollectionFormat("", "Type", type)); - queryParams.addAll(convertParametersForCollectionFormat("", "Text", text)); - if (twoDDisplayText != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "TwoDDisplayText", twoDDisplayText)); - } - if (textLocation != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "TextLocation", textLocation)); - } - if (textAlignment != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "TextAlignment", textAlignment)); - } - if (textColor != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "TextColor", textColor)); - } - if (noWrap != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "NoWrap", noWrap)); - } - if (resolution != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "Resolution", resolution)); - } - if (resolutionX != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "ResolutionX", resolutionX)); - } - if (resolutionY != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "ResolutionY", resolutionY)); - } - if (dimensionX != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "DimensionX", dimensionX)); - } - if (textSpace != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "TextSpace", textSpace)); - } - if (units != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "Units", units)); - } - if (sizeMode != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "SizeMode", sizeMode)); - } - if (barHeight != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BarHeight", barHeight)); - } - if (imageHeight != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "ImageHeight", imageHeight)); - } - if (imageWidth != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "ImageWidth", imageWidth)); - } - if (rotationAngle != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "RotationAngle", rotationAngle)); - } - if (backColor != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BackColor", backColor)); - } - if (barColor != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BarColor", barColor)); - } - if (borderColor != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BorderColor", borderColor)); - } - if (borderWidth != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BorderWidth", borderWidth)); - } - if (borderDashStyle != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "BorderDashStyle", borderDashStyle)); - } - if (borderVisible != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "BorderVisible", borderVisible)); - } - if (enableChecksum != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "EnableChecksum", enableChecksum)); - } - if (enableEscape != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "EnableEscape", enableEscape)); - } - if (filledBars != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "FilledBars", filledBars)); - } - if (alwaysShowChecksum != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AlwaysShowChecksum", alwaysShowChecksum)); - } - if (wideNarrowRatio != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "WideNarrowRatio", wideNarrowRatio)); - } - if (validateText != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "ValidateText", validateText)); - } - if (supplementData != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "SupplementData", supplementData)); - } - if (supplementSpace != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "SupplementSpace", supplementSpace)); - } - if (barWidthReduction != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "BarWidthReduction", barWidthReduction)); - } - if (useAntiAlias != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "UseAntiAlias", useAntiAlias)); - } - if (format != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "format", format)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return response.bodyBytes; - } - } - - /// - /// Recognize barcode from a file on server. - /// - Future getBarcodeRecognize(String name, - {String? type, - List? types, - String? checksumValidation, - bool? detectEncoding, - String? preset, - int? rectX, - int? rectY, - int? rectWidth, - int? rectHeight, - bool? stripFNC, - int? timeout, - int? medianSmoothingWindowSize, - bool? allowMedianSmoothing, - bool? allowComplexBackground, - bool? allowDatamatrixIndustrialBarcodes, - bool? allowDecreasedImage, - bool? allowDetectScanGap, - bool? allowIncorrectBarcodes, - bool? allowInvertImage, - bool? allowMicroWhiteSpotsRemoving, - bool? allowOneDFastBarcodesDetector, - bool? allowOneDWipedBarsRestoration, - bool? allowQRMicroQrRestoration, - bool? allowRegularImage, - bool? allowSaltAndPepperFiltering, - bool? allowWhiteSpotsRemoving, - bool? checkMore1DVariants, - bool? fastScanOnly, - bool? allowAdditionalRestorations, - double? regionLikelihoodThresholdPercent, - List? scanWindowSizes, - double? similarity, - bool? skipDiagonalSearch, - bool? readTinyBarcodes, - String? australianPostEncodingTable, - bool? ignoreEndingFillingPatternsForCTable, - String? storage, - String? folder}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/{name}/recognize" - .replaceAll("{format}", "json") - .replaceAll("{" "name" "}", name); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (type != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "Type", type)); - } - if (types != null) { - queryParams.addAll( - convertParametersForCollectionFormat("multi", "Types", types)); - } - if (checksumValidation != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "ChecksumValidation", checksumValidation)); - } - if (detectEncoding != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "DetectEncoding", detectEncoding)); - } - if (preset != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "Preset", preset)); - } - if (rectX != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "RectX", rectX)); - } - if (rectY != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "RectY", rectY)); - } - if (rectWidth != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "RectWidth", rectWidth)); - } - if (rectHeight != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "RectHeight", rectHeight)); - } - if (stripFNC != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "StripFNC", stripFNC)); - } - if (timeout != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "Timeout", timeout)); - } - if (medianSmoothingWindowSize != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "MedianSmoothingWindowSize", medianSmoothingWindowSize)); - } - if (allowMedianSmoothing != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowMedianSmoothing", allowMedianSmoothing)); - } - if (allowComplexBackground != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowComplexBackground", allowComplexBackground)); - } - if (allowDatamatrixIndustrialBarcodes != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", - "AllowDatamatrixIndustrialBarcodes", - allowDatamatrixIndustrialBarcodes)); - } - if (allowDecreasedImage != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowDecreasedImage", allowDecreasedImage)); - } - if (allowDetectScanGap != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowDetectScanGap", allowDetectScanGap)); - } - if (allowIncorrectBarcodes != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowIncorrectBarcodes", allowIncorrectBarcodes)); - } - if (allowInvertImage != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowInvertImage", allowInvertImage)); - } - if (allowMicroWhiteSpotsRemoving != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowMicroWhiteSpotsRemoving", allowMicroWhiteSpotsRemoving)); - } - if (allowOneDFastBarcodesDetector != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowOneDFastBarcodesDetector", allowOneDFastBarcodesDetector)); - } - if (allowOneDWipedBarsRestoration != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowOneDWipedBarsRestoration", allowOneDWipedBarsRestoration)); - } - if (allowQRMicroQrRestoration != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowQRMicroQrRestoration", allowQRMicroQrRestoration)); - } - if (allowRegularImage != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowRegularImage", allowRegularImage)); - } - if (allowSaltAndPepperFiltering != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowSaltAndPepperFiltering", allowSaltAndPepperFiltering)); - } - if (allowWhiteSpotsRemoving != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowWhiteSpotsRemoving", allowWhiteSpotsRemoving)); - } - if (checkMore1DVariants != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "CheckMore1DVariants", checkMore1DVariants)); - } - if (fastScanOnly != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "FastScanOnly", fastScanOnly)); - } - if (allowAdditionalRestorations != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowAdditionalRestorations", allowAdditionalRestorations)); - } - if (regionLikelihoodThresholdPercent != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", - "RegionLikelihoodThresholdPercent", - regionLikelihoodThresholdPercent)); - } - if (scanWindowSizes != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "multi", "ScanWindowSizes", scanWindowSizes)); - } - if (similarity != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "Similarity", similarity)); - } - if (skipDiagonalSearch != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "SkipDiagonalSearch", skipDiagonalSearch)); - } - if (readTinyBarcodes != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "ReadTinyBarcodes", readTinyBarcodes)); - } - if (australianPostEncodingTable != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AustralianPostEncodingTable", australianPostEncodingTable)); - } - if (ignoreEndingFillingPatternsForCTable != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", - "IgnoreEndingFillingPatternsForCTable", - ignoreEndingFillingPatternsForCTable)); - } - if (storage != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "storage", storage)); - } - if (folder != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "folder", folder)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'BarcodeResponseList') - as BarcodeResponseList; - } - } - - /// - /// Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type \"application/octet-stream\". An image can also be passed as a form field. - /// - Future postBarcodeRecognizeFromUrlOrContent( - {String? type, - List? types, - String? checksumValidation, - bool? detectEncoding, - String? preset, - int? rectX, - int? rectY, - int? rectWidth, - int? rectHeight, - bool? stripFNC, - int? timeout, - int? medianSmoothingWindowSize, - bool? allowMedianSmoothing, - bool? allowComplexBackground, - bool? allowDatamatrixIndustrialBarcodes, - bool? allowDecreasedImage, - bool? allowDetectScanGap, - bool? allowIncorrectBarcodes, - bool? allowInvertImage, - bool? allowMicroWhiteSpotsRemoving, - bool? allowOneDFastBarcodesDetector, - bool? allowOneDWipedBarsRestoration, - bool? allowQRMicroQrRestoration, - bool? allowRegularImage, - bool? allowSaltAndPepperFiltering, - bool? allowWhiteSpotsRemoving, - bool? checkMore1DVariants, - bool? fastScanOnly, - bool? allowAdditionalRestorations, - double? regionLikelihoodThresholdPercent, - List? scanWindowSizes, - double? similarity, - bool? skipDiagonalSearch, - bool? readTinyBarcodes, - String? australianPostEncodingTable, - bool? ignoreEndingFillingPatternsForCTable, - String? url, - MultipartFile? image}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = - "/barcode/recognize".replaceAll("{format}", "json"); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (type != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "Type", type)); - } - if (types != null) { - queryParams.addAll( - convertParametersForCollectionFormat("multi", "Types", types)); - } - if (checksumValidation != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "ChecksumValidation", checksumValidation)); - } - if (detectEncoding != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "DetectEncoding", detectEncoding)); - } - if (preset != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "Preset", preset)); - } - if (rectX != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "RectX", rectX)); - } - if (rectY != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "RectY", rectY)); - } - if (rectWidth != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "RectWidth", rectWidth)); - } - if (rectHeight != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "RectHeight", rectHeight)); - } - if (stripFNC != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "StripFNC", stripFNC)); - } - if (timeout != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "Timeout", timeout)); - } - if (medianSmoothingWindowSize != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "MedianSmoothingWindowSize", medianSmoothingWindowSize)); - } - if (allowMedianSmoothing != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowMedianSmoothing", allowMedianSmoothing)); - } - if (allowComplexBackground != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowComplexBackground", allowComplexBackground)); - } - if (allowDatamatrixIndustrialBarcodes != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", - "AllowDatamatrixIndustrialBarcodes", - allowDatamatrixIndustrialBarcodes)); - } - if (allowDecreasedImage != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowDecreasedImage", allowDecreasedImage)); - } - if (allowDetectScanGap != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowDetectScanGap", allowDetectScanGap)); - } - if (allowIncorrectBarcodes != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowIncorrectBarcodes", allowIncorrectBarcodes)); - } - if (allowInvertImage != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowInvertImage", allowInvertImage)); - } - if (allowMicroWhiteSpotsRemoving != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowMicroWhiteSpotsRemoving", allowMicroWhiteSpotsRemoving)); - } - if (allowOneDFastBarcodesDetector != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowOneDFastBarcodesDetector", allowOneDFastBarcodesDetector)); - } - if (allowOneDWipedBarsRestoration != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowOneDWipedBarsRestoration", allowOneDWipedBarsRestoration)); - } - if (allowQRMicroQrRestoration != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowQRMicroQrRestoration", allowQRMicroQrRestoration)); - } - if (allowRegularImage != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowRegularImage", allowRegularImage)); - } - if (allowSaltAndPepperFiltering != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowSaltAndPepperFiltering", allowSaltAndPepperFiltering)); - } - if (allowWhiteSpotsRemoving != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowWhiteSpotsRemoving", allowWhiteSpotsRemoving)); - } - if (checkMore1DVariants != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "CheckMore1DVariants", checkMore1DVariants)); - } - if (fastScanOnly != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "FastScanOnly", fastScanOnly)); - } - if (allowAdditionalRestorations != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AllowAdditionalRestorations", allowAdditionalRestorations)); - } - if (regionLikelihoodThresholdPercent != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", - "RegionLikelihoodThresholdPercent", - regionLikelihoodThresholdPercent)); - } - if (scanWindowSizes != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "multi", "ScanWindowSizes", scanWindowSizes)); - } - if (similarity != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "Similarity", similarity)); - } - if (skipDiagonalSearch != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "SkipDiagonalSearch", skipDiagonalSearch)); - } - if (readTinyBarcodes != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "ReadTinyBarcodes", readTinyBarcodes)); - } - if (australianPostEncodingTable != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AustralianPostEncodingTable", australianPostEncodingTable)); - } - if (ignoreEndingFillingPatternsForCTable != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", - "IgnoreEndingFillingPatternsForCTable", - ignoreEndingFillingPatternsForCTable)); - } - if (url != null) { - queryParams.addAll(convertParametersForCollectionFormat("", "url", url)); - } - - final List contentTypes = [ - "multipart/form-data", - "application/x-www-form-urlencoded", - "application/octet-stream" - ]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - if (contentType.startsWith("multipart/form-data")) { - bool hasFields = false; - MultipartRequestPlus? mp; - - mp = MultipartRequestPlus('POST', Uri.parse(requestPath)); - if (image != null) { - hasFields = true; - mp.files.add(image); - } - - if (hasFields) { - postBody = mp; - } - } else {} - - final response = await _apiClient.invokeAPI( - requestPath, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentType, - authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'BarcodeResponseList') - as BarcodeResponseList; - } - } - - /// - /// Generate multiple barcodes and return in response stream - /// - Future postGenerateMultiple( - GeneratorParamsList generatorParamsList, - {String? format}) async { - // ignore: prefer_final_locals - Object? postBody = generatorParamsList; - - // create path and map variables - final String requestPath = - "/barcode/generateMultiple".replaceAll("{format}", "json"); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (format != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "format", format)); - } - - final List contentTypes = ["application/json", "application/xml"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI( - requestPath, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentType, - authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return response.bodyBytes; - } - } - - /// - /// Generate barcode and save on server (from query params or from file with json or xml content) - /// - Future putBarcodeGenerateFile( - String name, String type, String text, - {String? twoDDisplayText, - String? textLocation, - String? textAlignment, - String? textColor, - bool? noWrap, - double? resolution, - double? resolutionX, - double? resolutionY, - double? dimensionX, - double? textSpace, - String? units, - String? sizeMode, - double? barHeight, - double? imageHeight, - double? imageWidth, - double? rotationAngle, - String? backColor, - String? barColor, - String? borderColor, - double? borderWidth, - String? borderDashStyle, - bool? borderVisible, - String? enableChecksum, - bool? enableEscape, - bool? filledBars, - bool? alwaysShowChecksum, - double? wideNarrowRatio, - bool? validateText, - String? supplementData, - double? supplementSpace, - double? barWidthReduction, - bool? useAntiAlias, - String? storage, - String? folder, - String? format}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/{name}/generate" - .replaceAll("{format}", "json") - .replaceAll("{" "name" "}", name); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - queryParams.addAll(convertParametersForCollectionFormat("", "Type", type)); - queryParams.addAll(convertParametersForCollectionFormat("", "Text", text)); - if (twoDDisplayText != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "TwoDDisplayText", twoDDisplayText)); - } - if (textLocation != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "TextLocation", textLocation)); - } - if (textAlignment != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "TextAlignment", textAlignment)); - } - if (textColor != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "TextColor", textColor)); - } - if (noWrap != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "NoWrap", noWrap)); - } - if (resolution != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "Resolution", resolution)); - } - if (resolutionX != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "ResolutionX", resolutionX)); - } - if (resolutionY != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "ResolutionY", resolutionY)); - } - if (dimensionX != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "DimensionX", dimensionX)); - } - if (textSpace != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "TextSpace", textSpace)); - } - if (units != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "Units", units)); - } - if (sizeMode != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "SizeMode", sizeMode)); - } - if (barHeight != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BarHeight", barHeight)); - } - if (imageHeight != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "ImageHeight", imageHeight)); - } - if (imageWidth != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "ImageWidth", imageWidth)); - } - if (rotationAngle != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "RotationAngle", rotationAngle)); - } - if (backColor != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BackColor", backColor)); - } - if (barColor != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BarColor", barColor)); - } - if (borderColor != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BorderColor", borderColor)); - } - if (borderWidth != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "BorderWidth", borderWidth)); - } - if (borderDashStyle != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "BorderDashStyle", borderDashStyle)); - } - if (borderVisible != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "BorderVisible", borderVisible)); - } - if (enableChecksum != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "EnableChecksum", enableChecksum)); - } - if (enableEscape != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "EnableEscape", enableEscape)); - } - if (filledBars != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "FilledBars", filledBars)); - } - if (alwaysShowChecksum != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "AlwaysShowChecksum", alwaysShowChecksum)); - } - if (wideNarrowRatio != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "WideNarrowRatio", wideNarrowRatio)); - } - if (validateText != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "ValidateText", validateText)); - } - if (supplementData != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "SupplementData", supplementData)); - } - if (supplementSpace != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "SupplementSpace", supplementSpace)); - } - if (barWidthReduction != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "BarWidthReduction", barWidthReduction)); - } - if (useAntiAlias != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "UseAntiAlias", useAntiAlias)); - } - if (storage != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "storage", storage)); - } - if (folder != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "folder", folder)); - } - if (format != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "format", format)); - } - - final List contentTypes = [ - "multipart/form-data", - "application/x-www-form-urlencoded", - "application/json", - "application/xml" - ]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'PUT', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'ResultImageInfo') - as ResultImageInfo; - } - } - - /// - /// Recognition of a barcode from file on server with parameters in body. - /// - Future putBarcodeRecognizeFromBody( - String name, ReaderParams readerParams, - {String? type, String? storage, String? folder}) async { - // ignore: prefer_final_locals - Object? postBody = readerParams; - - // create path and map variables - final String requestPath = "/barcode/{name}/recognize" - .replaceAll("{format}", "json") - .replaceAll("{" "name" "}", name); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (type != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "type", type)); - } - if (storage != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "storage", storage)); - } - if (folder != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "folder", folder)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'PUT', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'BarcodeResponseList') - as BarcodeResponseList; - } - } - - /// - /// Generate image with multiple barcodes and put new file on server - /// - Future putGenerateMultiple( - String name, GeneratorParamsList generatorParamsList, - {String? format, String? folder, String? storage}) async { - // ignore: prefer_final_locals - Object? postBody = generatorParamsList; - - // create path and map variables - final String requestPath = "/barcode/{name}/generateMultiple" - .replaceAll("{format}", "json") - .replaceAll("{" "name" "}", name); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (format != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "format", format)); - } - if (folder != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "folder", folder)); - } - if (storage != null) { - queryParams - .addAll(convertParametersForCollectionFormat("", "storage", storage)); - } - - final List contentTypes = ["application/json", "application/xml"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'PUT', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'ResultImageInfo') - as ResultImageInfo; - } - } - - /// - /// Quickly scan a barcode from an image. - /// - Future scanBarcode(MultipartFile imageFile, - {List? decodeTypes, - int? timeout, - String? checksumValidation}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/scan".replaceAll("{format}", "json"); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - - final List contentTypes = ["multipart/form-data"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - if (contentType.startsWith("multipart/form-data")) { - bool hasFields = false; - MultipartRequestPlus? mp; - - mp = MultipartRequestPlus('POST', Uri.parse(requestPath)); - hasFields = true; - mp.files.add(imageFile); - - if (decodeTypes != null) { - hasFields = true; - final List stringValues = - decodeTypes.map((i) => parameterToString(i)).toList(); - mp.fields['decodeTypes'] = stringValues; - } - - if (timeout != null) { - hasFields = true; - mp.fields['timeout'] = [parameterToString(timeout)]; - } - - if (checksumValidation != null) { - hasFields = true; - mp.fields['checksumValidation'] = [ - parameterToString(checksumValidation) - ]; - } - - if (hasFields) { - postBody = mp; - } - } else { - if (decodeTypes != null) { - formParams['decodeTypes'] = parameterToString(decodeTypes); - } - if (timeout != null) { - formParams['timeout'] = parameterToString(timeout); - } - if (checksumValidation != null) { - formParams['checksumValidation'] = - parameterToString(checksumValidation); - } - } - - final response = await _apiClient.invokeAPI( - requestPath, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentType, - authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'BarcodeResponseList') - as BarcodeResponseList; - } - } -} diff --git a/lib/src/api/file_api.dart b/lib/src/api/file_api.dart deleted file mode 100644 index 0a79216..0000000 --- a/lib/src/api/file_api.dart +++ /dev/null @@ -1,258 +0,0 @@ -import 'dart:typed_data' show Uint8List; - -import 'package:http/http.dart' show MultipartFile; - -import '../http/multipart_request_plus.dart'; -import '../../aspose_barcode_cloud.dart'; -import '../api_helper.dart'; - -/// FileApi -class FileApi { - /// Constructor - FileApi(this._apiClient); - - final ApiClient _apiClient; - - /// - /// Copy file - /// - Future copyFile(String srcPath, String destPath, - {String? srcStorageName, - String? destStorageName, - String? versionId}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/file/copy/{srcPath}" - .replaceAll("{format}", "json") - .replaceAll("{" "srcPath" "}", srcPath); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - queryParams - .addAll(convertParametersForCollectionFormat("", "destPath", destPath)); - if (srcStorageName != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "srcStorageName", srcStorageName)); - } - if (destStorageName != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "destStorageName", destStorageName)); - } - if (versionId != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "versionId", versionId)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'PUT', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return; - } - } - - /// - /// Delete file - /// - Future deleteFile(String path, - {String? storageName, String? versionId}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/file/{path}" - .replaceAll("{format}", "json") - .replaceAll("{" "path" "}", path); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (storageName != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "storageName", storageName)); - } - if (versionId != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "versionId", versionId)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI( - requestPath, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentType, - authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return; - } - } - - /// - /// Download file - /// - Future downloadFile(String path, - {String? storageName, String? versionId}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/file/{path}" - .replaceAll("{format}", "json") - .replaceAll("{" "path" "}", path); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (storageName != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "storageName", storageName)); - } - if (versionId != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "versionId", versionId)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return response.bodyBytes; - } - } - - /// - /// Move file - /// - Future moveFile(String srcPath, String destPath, - {String? srcStorageName, - String? destStorageName, - String? versionId}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/file/move/{srcPath}" - .replaceAll("{format}", "json") - .replaceAll("{" "srcPath" "}", srcPath); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - queryParams - .addAll(convertParametersForCollectionFormat("", "destPath", destPath)); - if (srcStorageName != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "srcStorageName", srcStorageName)); - } - if (destStorageName != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "destStorageName", destStorageName)); - } - if (versionId != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "versionId", versionId)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'PUT', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return; - } - } - - /// - /// Upload file - /// - Future uploadFile(String path, MultipartFile file, - {String? storageName}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/file/{path}" - .replaceAll("{format}", "json") - .replaceAll("{" "path" "}", path); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (storageName != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "storageName", storageName)); - } - - final List contentTypes = ["multipart/form-data"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - if (contentType.startsWith("multipart/form-data")) { - bool hasFields = false; - MultipartRequestPlus? mp; - - mp = MultipartRequestPlus('PUT', Uri.parse(requestPath)); - hasFields = true; - mp.files.add(file); - - if (hasFields) { - postBody = mp; - } - } else {} - - final response = await _apiClient.invokeAPI(requestPath, 'PUT', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'FilesUploadResult') - as FilesUploadResult; - } - } -} diff --git a/lib/src/api/folder_api.dart b/lib/src/api/folder_api.dart deleted file mode 100644 index 4e93f69..0000000 --- a/lib/src/api/folder_api.dart +++ /dev/null @@ -1,221 +0,0 @@ -import '../../aspose_barcode_cloud.dart'; -import '../api_helper.dart'; - -/// FolderApi -class FolderApi { - /// Constructor - FolderApi(this._apiClient); - - final ApiClient _apiClient; - - /// - /// Copy folder - /// - Future copyFolder(String srcPath, String destPath, - {String? srcStorageName, String? destStorageName}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/folder/copy/{srcPath}" - .replaceAll("{format}", "json") - .replaceAll("{" "srcPath" "}", srcPath); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - queryParams - .addAll(convertParametersForCollectionFormat("", "destPath", destPath)); - if (srcStorageName != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "srcStorageName", srcStorageName)); - } - if (destStorageName != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "destStorageName", destStorageName)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'PUT', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return; - } - } - - /// - /// Create the folder - /// - Future createFolder(String path, {String? storageName}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/folder/{path}" - .replaceAll("{format}", "json") - .replaceAll("{" "path" "}", path); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (storageName != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "storageName", storageName)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'PUT', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return; - } - } - - /// - /// Delete folder - /// - Future deleteFolder(String path, - {String? storageName, bool? recursive}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/folder/{path}" - .replaceAll("{format}", "json") - .replaceAll("{" "path" "}", path); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (storageName != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "storageName", storageName)); - } - if (recursive != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "recursive", recursive)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI( - requestPath, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentType, - authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return; - } - } - - /// - /// Get all files and folders within a folder - /// - Future getFilesList(String path, {String? storageName}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/folder/{path}" - .replaceAll("{format}", "json") - .replaceAll("{" "path" "}", path); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (storageName != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "storageName", storageName)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'FilesList') as FilesList; - } - } - - /// - /// Move folder - /// - Future moveFolder(String srcPath, String destPath, - {String? srcStorageName, String? destStorageName}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/folder/move/{srcPath}" - .replaceAll("{format}", "json") - .replaceAll("{" "srcPath" "}", srcPath); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - queryParams - .addAll(convertParametersForCollectionFormat("", "destPath", destPath)); - if (srcStorageName != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "srcStorageName", srcStorageName)); - } - if (destStorageName != null) { - queryParams.addAll(convertParametersForCollectionFormat( - "", "destStorageName", destStorageName)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'PUT', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return; - } - } -} diff --git a/lib/src/api/generate_api.dart b/lib/src/api/generate_api.dart new file mode 100644 index 0000000..7a1d2a6 --- /dev/null +++ b/lib/src/api/generate_api.dart @@ -0,0 +1,265 @@ +import 'dart:typed_data' show Uint8List; + +import '../http/multipart_request_plus.dart'; +import '../../aspose_barcode_cloud.dart'; +import '../api_helper.dart'; + +/// GenerateApi +class GenerateApi { + /// Constructor + GenerateApi(this._apiClient); + + final ApiClient _apiClient; + + /// + /// Generate barcode using GET request with parameters in route and query string. + /// + Future generate(EncodeBarcodeType barcodeType, String data, + {EncodeDataType? dataType, + BarcodeImageFormat? imageFormat, + CodeLocation? textLocation, + String? foregroundColor, + String? backgroundColor, + GraphicsUnit? units, + double? resolution, + double? imageHeight, + double? imageWidth, + int? rotationAngle}) async { + // ignore: prefer_final_locals + Object? postBody; + + // create path and map variables + final String requestPath = "/barcode/generate/{barcodeType}" + .replaceAll('{' 'barcodeType' '}', barcodeType.toString()); + + // query params + final List queryParams = []; + final Map headerParams = {}; + final Map formParams = {}; + if (dataType != null) { + queryParams.addAll( + convertParametersForCollectionFormat("", "dataType", dataType)); + } + queryParams.addAll(convertParametersForCollectionFormat("", "data", data)); + if (imageFormat != null) { + queryParams.addAll( + convertParametersForCollectionFormat("", "imageFormat", imageFormat)); + } + if (textLocation != null) { + queryParams.addAll(convertParametersForCollectionFormat( + "", "textLocation", textLocation)); + } + if (foregroundColor != null) { + queryParams.addAll(convertParametersForCollectionFormat( + "", "foregroundColor", foregroundColor)); + } + if (backgroundColor != null) { + queryParams.addAll(convertParametersForCollectionFormat( + "", "backgroundColor", backgroundColor)); + } + if (units != null) { + queryParams + .addAll(convertParametersForCollectionFormat("", "units", units)); + } + if (resolution != null) { + queryParams.addAll( + convertParametersForCollectionFormat("", "resolution", resolution)); + } + if (imageHeight != null) { + queryParams.addAll( + convertParametersForCollectionFormat("", "imageHeight", imageHeight)); + } + if (imageWidth != null) { + queryParams.addAll( + convertParametersForCollectionFormat("", "imageWidth", imageWidth)); + } + if (rotationAngle != null) { + queryParams.addAll(convertParametersForCollectionFormat( + "", "rotationAngle", rotationAngle)); + } + + final List contentTypes = []; + + final String contentType = + contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; + final List authNames = ["JWT"]; + + final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, + postBody, headerParams, formParams, contentType, authNames); + + if (response.statusCode >= 400) { + ApiErrorResponse error; + try { + error = _apiClient.deserialize(response.body, 'ApiErrorResponse'); + } catch (e) { + throw ApiException(response.statusCode, response.body); + } + throw ApiException.withResponse( + response.statusCode, + response.reasonPhrase == null + ? "Api response error" + : response.reasonPhrase!, + error); + } else { + return response.bodyBytes; + } + } + + /// + /// Generate barcode using POST request with parameters in body in json or xml format. + /// + Future generateBody(GenerateParams generateParams) async { + // ignore: prefer_final_locals + Object? postBody = generateParams; + + // create path and map variables + final String requestPath = "/barcode/generate-body"; + + // query params + final List queryParams = []; + final Map headerParams = {}; + final Map formParams = {}; + + final List contentTypes = ["application/json", "application/xml"]; + + final String contentType = + contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; + final List authNames = ["JWT"]; + + final response = await _apiClient.invokeAPI( + requestPath, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentType, + authNames); + + if (response.statusCode >= 400) { + ApiErrorResponse error; + try { + error = _apiClient.deserialize(response.body, 'ApiErrorResponse'); + } catch (e) { + throw ApiException(response.statusCode, response.body); + } + throw ApiException.withResponse( + response.statusCode, + response.reasonPhrase == null + ? "Api response error" + : response.reasonPhrase!, + error); + } else { + return response.bodyBytes; + } + } + + /// + /// Generate barcode using POST request with parameters in multipart form. + /// + Future generateMultipart( + EncodeBarcodeType barcodeType, String data, + {EncodeDataType? dataType, + BarcodeImageFormat? imageFormat, + CodeLocation? textLocation, + String? foregroundColor, + String? backgroundColor, + GraphicsUnit? units, + double? resolution, + double? imageHeight, + double? imageWidth, + int? rotationAngle}) async { + // ignore: prefer_final_locals + Object? postBody; + + // create path and map variables + final String requestPath = "/barcode/generate-multipart"; + + // query params + final List queryParams = []; + final Map headerParams = {}; + final Map formParams = {}; + + final List contentTypes = ["multipart/form-data"]; + + final String contentType = + contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; + final List authNames = ["JWT"]; + + MultipartRequestPlus mp = + MultipartRequestPlus('POST', Uri.parse(requestPath)); + + mp.fields['barcodeType'] = [parameterToString(barcodeType)]; + + if (dataType != null) { + mp.fields['dataType'] = [parameterToString(dataType)]; + } + + mp.fields['data'] = [parameterToString(data)]; + + if (imageFormat != null) { + mp.fields['imageFormat'] = [parameterToString(imageFormat)]; + } + + if (textLocation != null) { + mp.fields['textLocation'] = [parameterToString(textLocation)]; + } + + if (foregroundColor != null) { + mp.fields['foregroundColor'] = [parameterToString(foregroundColor)]; + } + + if (backgroundColor != null) { + mp.fields['backgroundColor'] = [parameterToString(backgroundColor)]; + } + + if (units != null) { + mp.fields['units'] = [parameterToString(units)]; + } + + if (resolution != null) { + mp.fields['resolution'] = [parameterToString(resolution)]; + } + + if (imageHeight != null) { + mp.fields['imageHeight'] = [parameterToString(imageHeight)]; + } + + if (imageWidth != null) { + mp.fields['imageWidth'] = [parameterToString(imageWidth)]; + } + + if (rotationAngle != null) { + mp.fields['rotationAngle'] = [parameterToString(rotationAngle)]; + } + + postBody = mp; + + final response = await _apiClient.invokeAPI( + requestPath, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentType, + authNames); + + if (response.statusCode >= 400) { + ApiErrorResponse error; + try { + error = _apiClient.deserialize(response.body, 'ApiErrorResponse'); + } catch (e) { + throw ApiException(response.statusCode, response.body); + } + throw ApiException.withResponse( + response.statusCode, + response.reasonPhrase == null + ? "Api response error" + : response.reasonPhrase!, + error); + } else { + return response.bodyBytes; + } + } +} diff --git a/lib/src/api/recognize_api.dart b/lib/src/api/recognize_api.dart new file mode 100644 index 0000000..e506cbd --- /dev/null +++ b/lib/src/api/recognize_api.dart @@ -0,0 +1,197 @@ +import 'dart:typed_data' show Uint8List; + +import 'package:http/http.dart' show MultipartFile; + +import '../http/multipart_request_plus.dart'; +import '../../aspose_barcode_cloud.dart'; +import '../api_helper.dart'; + +/// RecognizeApi +class RecognizeApi { + /// Constructor + RecognizeApi(this._apiClient); + + final ApiClient _apiClient; + + /// + /// Recognize barcode from file on server using GET requests with parameters in route and query string. + /// + Future recognize( + DecodeBarcodeType barcodeType, String fileUrl, + {RecognitionMode? recognitionMode, + RecognitionImageKind? recognitionImageKind}) async { + // ignore: prefer_final_locals + Object? postBody; + + // create path and map variables + final String requestPath = "/barcode/recognize"; + + // query params + final List queryParams = []; + final Map headerParams = {}; + final Map formParams = {}; + queryParams.addAll( + convertParametersForCollectionFormat("", "barcodeType", barcodeType)); + queryParams + .addAll(convertParametersForCollectionFormat("", "fileUrl", fileUrl)); + if (recognitionMode != null) { + queryParams.addAll(convertParametersForCollectionFormat( + "", "recognitionMode", recognitionMode)); + } + if (recognitionImageKind != null) { + queryParams.addAll(convertParametersForCollectionFormat( + "", "recognitionImageKind", recognitionImageKind)); + } + + final List contentTypes = []; + + final String contentType = + contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; + final List authNames = ["JWT"]; + + final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, + postBody, headerParams, formParams, contentType, authNames); + + if (response.statusCode >= 400) { + ApiErrorResponse error; + try { + error = _apiClient.deserialize(response.body, 'ApiErrorResponse'); + } catch (e) { + throw ApiException(response.statusCode, response.body); + } + throw ApiException.withResponse( + response.statusCode, + response.reasonPhrase == null + ? "Api response error" + : response.reasonPhrase!, + error); + } else { + return _apiClient.deserialize(response.body, 'BarcodeResponseList') + as BarcodeResponseList; + } + } + + /// + /// Recognize barcode from file in request body using POST requests with parameters in body in json or xml format. + /// + Future recognizeBase64( + RecognizeBase64Request recognizeBase64Request) async { + // ignore: prefer_final_locals + Object? postBody = recognizeBase64Request; + + // create path and map variables + final String requestPath = "/barcode/recognize-body"; + + // query params + final List queryParams = []; + final Map headerParams = {}; + final Map formParams = {}; + + final List contentTypes = ["application/json", "application/xml"]; + + final String contentType = + contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; + final List authNames = ["JWT"]; + + final response = await _apiClient.invokeAPI( + requestPath, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentType, + authNames); + + if (response.statusCode >= 400) { + ApiErrorResponse error; + try { + error = _apiClient.deserialize(response.body, 'ApiErrorResponse'); + } catch (e) { + throw ApiException(response.statusCode, response.body); + } + throw ApiException.withResponse( + response.statusCode, + response.reasonPhrase == null + ? "Api response error" + : response.reasonPhrase!, + error); + } else { + return _apiClient.deserialize(response.body, 'BarcodeResponseList') + as BarcodeResponseList; + } + } + + /// + /// Recognize barcode from file in request body using POST requests with parameters in multipart form. + /// + Future recognizeMultipart( + DecodeBarcodeType barcodeType, Uint8List fileBytes, + {RecognitionMode? recognitionMode, + RecognitionImageKind? recognitionImageKind}) async { + // ignore: prefer_final_locals + Object? postBody; + + // create path and map variables + final String requestPath = "/barcode/recognize-multipart"; + + // query params + final List queryParams = []; + final Map headerParams = {}; + final Map formParams = {}; + + final List contentTypes = ["multipart/form-data"]; + + final String contentType = + contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; + final List authNames = ["JWT"]; + + MultipartRequestPlus mp = + MultipartRequestPlus('POST', Uri.parse(requestPath)); + + mp.fields['barcodeType'] = [parameterToString(barcodeType)]; + + mp.files.add(MultipartFile.fromBytes("file", fileBytes.toList(), + filename: "somefile.xyz")); + + if (recognitionMode != null) { + mp.fields['recognitionMode'] = [parameterToString(recognitionMode)]; + } + + if (recognitionImageKind != null) { + mp.fields['recognitionImageKind'] = [ + parameterToString(recognitionImageKind) + ]; + } + + postBody = mp; + + final response = await _apiClient.invokeAPI( + requestPath, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentType, + authNames); + + if (response.statusCode >= 400) { + ApiErrorResponse error; + try { + error = _apiClient.deserialize(response.body, 'ApiErrorResponse'); + } catch (e) { + throw ApiException(response.statusCode, response.body); + } + throw ApiException.withResponse( + response.statusCode, + response.reasonPhrase == null + ? "Api response error" + : response.reasonPhrase!, + error); + } else { + return _apiClient.deserialize(response.body, 'BarcodeResponseList') + as BarcodeResponseList; + } + } +} diff --git a/lib/src/api/scan_api.dart b/lib/src/api/scan_api.dart new file mode 100644 index 0000000..dcb8d98 --- /dev/null +++ b/lib/src/api/scan_api.dart @@ -0,0 +1,169 @@ +import 'dart:typed_data' show Uint8List; + +import 'package:http/http.dart' show MultipartFile; + +import '../http/multipart_request_plus.dart'; +import '../../aspose_barcode_cloud.dart'; +import '../api_helper.dart'; + +/// ScanApi +class ScanApi { + /// Constructor + ScanApi(this._apiClient); + + final ApiClient _apiClient; + + /// + /// Scan barcode from file on server using GET requests with parameter in query string. + /// + Future scan(String fileUrl) async { + // ignore: prefer_final_locals + Object? postBody; + + // create path and map variables + final String requestPath = "/barcode/scan"; + + // query params + final List queryParams = []; + final Map headerParams = {}; + final Map formParams = {}; + queryParams + .addAll(convertParametersForCollectionFormat("", "fileUrl", fileUrl)); + + final List contentTypes = []; + + final String contentType = + contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; + final List authNames = ["JWT"]; + + final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, + postBody, headerParams, formParams, contentType, authNames); + + if (response.statusCode >= 400) { + ApiErrorResponse error; + try { + error = _apiClient.deserialize(response.body, 'ApiErrorResponse'); + } catch (e) { + throw ApiException(response.statusCode, response.body); + } + throw ApiException.withResponse( + response.statusCode, + response.reasonPhrase == null + ? "Api response error" + : response.reasonPhrase!, + error); + } else { + return _apiClient.deserialize(response.body, 'BarcodeResponseList') + as BarcodeResponseList; + } + } + + /// + /// Scan barcode from file in request body using POST requests with parameter in body in json or xml format. + /// + Future scanBase64( + ScanBase64Request scanBase64Request) async { + // ignore: prefer_final_locals + Object? postBody = scanBase64Request; + + // create path and map variables + final String requestPath = "/barcode/scan-body"; + + // query params + final List queryParams = []; + final Map headerParams = {}; + final Map formParams = {}; + + final List contentTypes = ["application/json", "application/xml"]; + + final String contentType = + contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; + final List authNames = ["JWT"]; + + final response = await _apiClient.invokeAPI( + requestPath, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentType, + authNames); + + if (response.statusCode >= 400) { + ApiErrorResponse error; + try { + error = _apiClient.deserialize(response.body, 'ApiErrorResponse'); + } catch (e) { + throw ApiException(response.statusCode, response.body); + } + throw ApiException.withResponse( + response.statusCode, + response.reasonPhrase == null + ? "Api response error" + : response.reasonPhrase!, + error); + } else { + return _apiClient.deserialize(response.body, 'BarcodeResponseList') + as BarcodeResponseList; + } + } + + /// + /// Scan barcode from file in request body using POST requests with parameter in multipart form. + /// + Future scanMultipart(Uint8List fileBytes) async { + // ignore: prefer_final_locals + Object? postBody; + + // create path and map variables + final String requestPath = "/barcode/scan-multipart"; + + // query params + final List queryParams = []; + final Map headerParams = {}; + final Map formParams = {}; + + final List contentTypes = ["multipart/form-data"]; + + final String contentType = + contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; + final List authNames = ["JWT"]; + + MultipartRequestPlus mp = + MultipartRequestPlus('POST', Uri.parse(requestPath)); + + mp.files.add(MultipartFile.fromBytes("file", fileBytes.toList(), + filename: "somefile.xyz")); + + postBody = mp; + + final response = await _apiClient.invokeAPI( + requestPath, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentType, + authNames); + + if (response.statusCode >= 400) { + ApiErrorResponse error; + try { + error = _apiClient.deserialize(response.body, 'ApiErrorResponse'); + } catch (e) { + throw ApiException(response.statusCode, response.body); + } + throw ApiException.withResponse( + response.statusCode, + response.reasonPhrase == null + ? "Api response error" + : response.reasonPhrase!, + error); + } else { + return _apiClient.deserialize(response.body, 'BarcodeResponseList') + as BarcodeResponseList; + } + } +} diff --git a/lib/src/api/storage_api.dart b/lib/src/api/storage_api.dart deleted file mode 100644 index 265c1ab..0000000 --- a/lib/src/api/storage_api.dart +++ /dev/null @@ -1,162 +0,0 @@ -import '../../aspose_barcode_cloud.dart'; -import '../api_helper.dart'; - -/// StorageApi -class StorageApi { - /// Constructor - StorageApi(this._apiClient); - - final ApiClient _apiClient; - - /// - /// Get disc usage - /// - Future getDiscUsage({String? storageName}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = - "/barcode/storage/disc".replaceAll("{format}", "json"); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (storageName != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "storageName", storageName)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'DiscUsage') as DiscUsage; - } - } - - /// - /// Get file versions - /// - Future getFileVersions(String path, - {String? storageName}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/version/{path}" - .replaceAll("{format}", "json") - .replaceAll("{" "path" "}", path); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (storageName != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "storageName", storageName)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'FileVersions') - as FileVersions; - } - } - - /// - /// Check if file or folder exists - /// - Future objectExists(String path, - {String? storageName, String? versionId}) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/exist/{path}" - .replaceAll("{format}", "json") - .replaceAll("{" "path" "}", path); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - if (storageName != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "storageName", storageName)); - } - if (versionId != null) { - queryParams.addAll( - convertParametersForCollectionFormat("", "versionId", versionId)); - } - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'ObjectExist') - as ObjectExist; - } - } - - /// - /// Check if storage exists - /// - Future storageExists(String storageName) async { - // ignore: prefer_final_locals - Object? postBody; - - // create path and map variables - final String requestPath = "/barcode/storage/{storageName}/exist" - .replaceAll("{format}", "json") - .replaceAll("{" "storageName" "}", storageName); - - // query params - final List queryParams = []; - final Map headerParams = {}; - final Map formParams = {}; - - final List contentTypes = ["application/json"]; - - final String contentType = - contentTypes.isNotEmpty ? contentTypes[0] : "application/json"; - final List authNames = ["JWT"]; - - final response = await _apiClient.invokeAPI(requestPath, 'GET', queryParams, - postBody, headerParams, formParams, contentType, authNames); - - if (response.statusCode >= 400) { - throw ApiException(response.statusCode, response.body); - } else { - return _apiClient.deserialize(response.body, 'StorageExist') - as StorageExist; - } - } -} diff --git a/lib/src/api_client.dart b/lib/src/api_client.dart index ee3d709..d195227 100644 --- a/lib/src/api_client.dart +++ b/lib/src/api_client.dart @@ -10,7 +10,7 @@ import 'api_helper.dart'; import 'auth/authentication.dart'; /// Current SDK Version -const SDK_VERSION = "1.24.12"; +const SDK_VERSION = "4.25.1"; /// ApiClient is responsible for making HTTP requests to the API. class ApiClient { @@ -66,160 +66,38 @@ class ApiClient { return ApiError.fromJson(value); case 'ApiErrorResponse': return ApiErrorResponse.fromJson(value); - case 'AustralianPostParams': - return AustralianPostParams.fromJson(value); - case 'AutoSizeMode': - return AutoSizeMode.fromJson(value); - case 'AvailableGraphicsUnit': - return AvailableGraphicsUnit.fromJson(value); - case 'AztecEncodeMode': - return AztecEncodeMode.fromJson(value); - case 'AztecParams': - return AztecParams.fromJson(value); - case 'AztecSymbolMode': - return AztecSymbolMode.fromJson(value); + case 'BarcodeImageFormat': + return BarcodeImageFormat.fromJson(value); + case 'BarcodeImageParams': + return BarcodeImageParams.fromJson(value); case 'BarcodeResponse': return BarcodeResponse.fromJson(value); case 'BarcodeResponseList': return BarcodeResponseList.fromJson(value); - case 'BorderDashStyle': - return BorderDashStyle.fromJson(value); - case 'CaptionParams': - return CaptionParams.fromJson(value); - case 'ChecksumValidation': - return ChecksumValidation.fromJson(value); - case 'CodabarChecksumMode': - return CodabarChecksumMode.fromJson(value); - case 'CodabarParams': - return CodabarParams.fromJson(value); - case 'CodabarSymbol': - return CodabarSymbol.fromJson(value); - case 'CodablockParams': - return CodablockParams.fromJson(value); - case 'Code128Emulation': - return Code128Emulation.fromJson(value); - case 'Code128EncodeMode': - return Code128EncodeMode.fromJson(value); - case 'Code128Params': - return Code128Params.fromJson(value); - case 'Code16KParams': - return Code16KParams.fromJson(value); case 'CodeLocation': return CodeLocation.fromJson(value); - case 'CouponParams': - return CouponParams.fromJson(value); - case 'CustomerInformationInterpretingType': - return CustomerInformationInterpretingType.fromJson(value); - case 'DataBarParams': - return DataBarParams.fromJson(value); - case 'DataMatrixEccType': - return DataMatrixEccType.fromJson(value); - case 'DataMatrixEncodeMode': - return DataMatrixEncodeMode.fromJson(value); - case 'DataMatrixParams': - return DataMatrixParams.fromJson(value); - case 'DataMatrixVersion': - return DataMatrixVersion.fromJson(value); case 'DecodeBarcodeType': return DecodeBarcodeType.fromJson(value); - case 'DiscUsage': - return DiscUsage.fromJson(value); - case 'DotCodeEncodeMode': - return DotCodeEncodeMode.fromJson(value); - case 'DotCodeParams': - return DotCodeParams.fromJson(value); - case 'ECIEncodings': - return ECIEncodings.fromJson(value); - case 'EnableChecksum': - return EnableChecksum.fromJson(value); case 'EncodeBarcodeType': return EncodeBarcodeType.fromJson(value); - case 'Error': - return Error.fromJson(value); - case 'ErrorDetails': - return ErrorDetails.fromJson(value); - case 'FileVersions': - return FileVersions.fromJson(value); - case 'FilesList': - return FilesList.fromJson(value); - case 'FilesUploadResult': - return FilesUploadResult.fromJson(value); - case 'FontMode': - return FontMode.fromJson(value); - case 'FontParams': - return FontParams.fromJson(value); - case 'FontStyle': - return FontStyle.fromJson(value); - case 'GeneratorParams': - return GeneratorParams.fromJson(value); - case 'GeneratorParamsList': - return GeneratorParamsList.fromJson(value); - case 'HanXinEncodeMode': - return HanXinEncodeMode.fromJson(value); - case 'HanXinErrorLevel': - return HanXinErrorLevel.fromJson(value); - case 'HanXinParams': - return HanXinParams.fromJson(value); - case 'HanXinVersion': - return HanXinVersion.fromJson(value); - case 'ITF14BorderType': - return ITF14BorderType.fromJson(value); - case 'ITFParams': - return ITFParams.fromJson(value); - case 'MacroCharacter': - return MacroCharacter.fromJson(value); - case 'MaxiCodeEncodeMode': - return MaxiCodeEncodeMode.fromJson(value); - case 'MaxiCodeMode': - return MaxiCodeMode.fromJson(value); - case 'MaxiCodeParams': - return MaxiCodeParams.fromJson(value); - case 'ObjectExist': - return ObjectExist.fromJson(value); - case 'Padding': - return Padding.fromJson(value); - case 'PatchCodeParams': - return PatchCodeParams.fromJson(value); - case 'PatchFormat': - return PatchFormat.fromJson(value); - case 'Pdf417CompactionMode': - return Pdf417CompactionMode.fromJson(value); - case 'Pdf417ErrorLevel': - return Pdf417ErrorLevel.fromJson(value); - case 'Pdf417MacroTerminator': - return Pdf417MacroTerminator.fromJson(value); - case 'Pdf417Params': - return Pdf417Params.fromJson(value); - case 'PostalParams': - return PostalParams.fromJson(value); - case 'PresetType': - return PresetType.fromJson(value); - case 'QREncodeMode': - return QREncodeMode.fromJson(value); - case 'QREncodeType': - return QREncodeType.fromJson(value); - case 'QRErrorLevel': - return QRErrorLevel.fromJson(value); - case 'QRVersion': - return QRVersion.fromJson(value); - case 'QrParams': - return QrParams.fromJson(value); - case 'ReaderParams': - return ReaderParams.fromJson(value); + case 'EncodeData': + return EncodeData.fromJson(value); + case 'EncodeDataType': + return EncodeDataType.fromJson(value); + case 'GenerateParams': + return GenerateParams.fromJson(value); + case 'GraphicsUnit': + return GraphicsUnit.fromJson(value); + case 'RecognitionImageKind': + return RecognitionImageKind.fromJson(value); + case 'RecognitionMode': + return RecognitionMode.fromJson(value); + case 'RecognizeBase64Request': + return RecognizeBase64Request.fromJson(value); case 'RegionPoint': return RegionPoint.fromJson(value); - case 'ResultImageInfo': - return ResultImageInfo.fromJson(value); - case 'StorageExist': - return StorageExist.fromJson(value); - case 'StorageFile': - return StorageFile.fromJson(value); - case 'StructuredAppend': - return StructuredAppend.fromJson(value); - case 'TextAlignment': - return TextAlignment.fromJson(value); - case 'FileVersion': - return FileVersion.fromJson(value); + case 'ScanBase64Request': + return ScanBase64Request.fromJson(value); default: { RegExpMatch? match; @@ -268,7 +146,7 @@ class ApiClient { } /// Invoke HTTP request - /// We don't use a Map<String, String> for queryParams. + /// We don't use a Map for queryParams. /// If collectionFormat is 'multi' a key might appear multiple times. Future invokeAPI( String path, diff --git a/lib/src/api_exception.dart b/lib/src/api_exception.dart index 5dcc728..b43657b 100644 --- a/lib/src/api_exception.dart +++ b/lib/src/api_exception.dart @@ -1,3 +1,5 @@ +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + /// Represents an exception that is thrown when an error occurs in the API. class ApiException implements Exception { /// The error code. @@ -12,6 +14,9 @@ class ApiException implements Exception { /// The stack trace StackTrace? stackTrace; + ///ApiErrorResponse from server + ApiErrorResponse? response; + /// Constructor ApiException(this.code, this.message); @@ -19,6 +24,28 @@ class ApiException implements Exception { ApiException.withInner( this.code, this.message, this.innerException, this.stackTrace); + /// Constructor with ApiErrorResponse + ApiException.withResponse(this.code, this.message, this.response); + + /// Get the error details + String getDetails() { + if (response != null) { + ApiError? err = response!.error; + StringBuffer sb = StringBuffer(); + + sb.write('${err.code}: '); + + sb.write(err.message); + + if (err.description != null) { + sb.write(err.description); + } + return sb.toString(); + } + + return ''; + } + @override String toString() { if (innerException == null) { diff --git a/lib/src/configuration.dart b/lib/src/configuration.dart index b59af57..8cbe569 100644 --- a/lib/src/configuration.dart +++ b/lib/src/configuration.dart @@ -4,10 +4,10 @@ import 'dart:convert' show JsonEncoder, jsonDecode; import 'dart:io'; /// Default token url -const DEFAULT_TOKEN_URL = "https://api.aspose.cloud/connect/token"; +const DEFAULT_TOKEN_URL = "https://id.aspose.cloud/connect/token"; /// Default API base path -const DEFAULT_BASE_PATH = "https://api.aspose.cloud/v3.0"; +const DEFAULT_BASE_PATH = "https://api.aspose.cloud/v4.0"; /// Configuration for ApiClient class Configuration { diff --git a/lib/src/model/api_error.dart b/lib/src/model/api_error.dart index f5b13ee..c75431a 100644 --- a/lib/src/model/api_error.dart +++ b/lib/src/model/api_error.dart @@ -1,25 +1,31 @@ // ignore_for_file: non_constant_identifier_names // ignore_for_file: deprecated_member_use_from_same_package -/// ApiError +/// Api Error. class ApiError { - /// code - String? code; + /// Gets or sets api error code. - /// message - String? message; + late String code; + + /// Gets or sets error message. + + late String message; + + /// Gets or sets error description. - /// description String? description; - /// dateTime + /// Gets or sets server datetime. + DateTime? dateTime; /// innerError + ApiError? innerError; /// Constructor - ApiError(); + ApiError(this.code, this.message, + [this.description, this.dateTime, this.innerError]); @override String toString() { @@ -33,17 +39,19 @@ class ApiError { description = json['description']; dateTime = json['dateTime'] == null ? null : DateTime.parse(json['dateTime']); - innerError = ApiError.fromJson(json['innerError']); + innerError = json['innerError'] == null + ? null + : ApiError.fromJson(json['innerError']); } /// Returns a JSON representation of ApiError. Map toJson() { return { - 'Code': code, - 'Message': message, - 'Description': description, - 'DateTime': dateTime == null ? '' : dateTime!.toUtc().toIso8601String(), - 'InnerError': innerError + 'code': code, + 'message': message, + 'description': description, + 'dateTime': dateTime == null ? '' : dateTime!.toUtc().toIso8601String(), + 'innerError': innerError }; } diff --git a/lib/src/model/api_error_response.dart b/lib/src/model/api_error_response.dart index 6abe8aa..119ad78 100644 --- a/lib/src/model/api_error_response.dart +++ b/lib/src/model/api_error_response.dart @@ -2,16 +2,21 @@ // ignore_for_file: deprecated_member_use_from_same_package import '../../aspose_barcode_cloud.dart'; -/// ApiErrorResponse +/// ApiError Response class ApiErrorResponse { - /// requestId - String? requestId; + /// Gets or sets request Id. + + late String requestId; /// error - ApiError? error; + + late ApiError error; /// Constructor - ApiErrorResponse(); + ApiErrorResponse( + this.requestId, + this.error, + ); @override String toString() { @@ -26,7 +31,7 @@ class ApiErrorResponse { /// Returns a JSON representation of ApiErrorResponse. Map toJson() { - return {'RequestId': requestId, 'Error': error}; + return {'requestId': requestId, 'error': error}; } /// Converts a list of JSON objects to a list of ApiErrorResponse instances. diff --git a/lib/src/model/australian_post_params.dart b/lib/src/model/australian_post_params.dart deleted file mode 100644 index 86980c8..0000000 --- a/lib/src/model/australian_post_params.dart +++ /dev/null @@ -1,40 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// AustralianPost barcode parameters. -class AustralianPostParams { - /// Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.Other - CustomerInformationInterpretingType? encodingTable; - - /// Short bar's height of AustralianPost barcode. - double? shortBarHeight; - - /// Constructor - AustralianPostParams(); - - @override - String toString() { - return 'AustralianPostParams[encodingTable=$encodingTable, shortBarHeight=$shortBarHeight, ]'; - } - - /// Creates a AustralianPostParams instance from a JSON representation. - AustralianPostParams.fromJson(Map json) { - encodingTable = - CustomerInformationInterpretingType.fromJson(json['encodingTable']); - shortBarHeight = json['shortBarHeight']?.toDouble(); - } - - /// Returns a JSON representation of AustralianPostParams. - Map toJson() { - return {'EncodingTable': encodingTable, 'ShortBarHeight': shortBarHeight}; - } - - /// Converts a list of JSON objects to a list of AustralianPostParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of AustralianPostParams instances. - static List listFromJson(List json) { - return json.map((value) => AustralianPostParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/auto_size_mode.dart b/lib/src/model/auto_size_mode.dart deleted file mode 100644 index 84dae51..0000000 --- a/lib/src/model/auto_size_mode.dart +++ /dev/null @@ -1,52 +0,0 @@ -/// -/// AutoSizeMode: [None, Nearest, Interpolation] -class AutoSizeMode { - /// The underlying value of AutoSizeMode enum. - late final String _value; - - AutoSizeMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final AutoSizeMode None = AutoSizeMode._internal("None"); - - /// - // ignore: non_constant_identifier_names - static final AutoSizeMode Nearest = AutoSizeMode._internal("Nearest"); - - /// - // ignore: non_constant_identifier_names - static final AutoSizeMode Interpolation = - AutoSizeMode._internal("Interpolation"); - - /// Creates a AutoSizeMode instance from a JSON representation. - AutoSizeMode.fromJson(dynamic data) { - switch (data) { - case "None": - case "Nearest": - case "Interpolation": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of AutoSizeMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of AutoSizeMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of AutoSizeMode instances. - static List listFromJson(List json) { - return json.map((value) => AutoSizeMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/available_graphics_unit.dart b/lib/src/model/available_graphics_unit.dart deleted file mode 100644 index 8c6011c..0000000 --- a/lib/src/model/available_graphics_unit.dart +++ /dev/null @@ -1,60 +0,0 @@ -/// Subset of GraphicsUnit. -/// AvailableGraphicsUnit: [Pixel, Point, Inch, Millimeter] -class AvailableGraphicsUnit { - /// The underlying value of AvailableGraphicsUnit enum. - late final String _value; - - AvailableGraphicsUnit._internal(this._value); - - /// Subset of GraphicsUnit. - // ignore: non_constant_identifier_names - static final AvailableGraphicsUnit Pixel = - AvailableGraphicsUnit._internal("Pixel"); - - /// Subset of GraphicsUnit. - // ignore: non_constant_identifier_names - static final AvailableGraphicsUnit Point = - AvailableGraphicsUnit._internal("Point"); - - /// Subset of GraphicsUnit. - // ignore: non_constant_identifier_names - static final AvailableGraphicsUnit Inch = - AvailableGraphicsUnit._internal("Inch"); - - /// Subset of GraphicsUnit. - // ignore: non_constant_identifier_names - static final AvailableGraphicsUnit Millimeter = - AvailableGraphicsUnit._internal("Millimeter"); - - /// Creates a AvailableGraphicsUnit instance from a JSON representation. - AvailableGraphicsUnit.fromJson(dynamic data) { - switch (data) { - case "Pixel": - case "Point": - case "Inch": - case "Millimeter": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of AvailableGraphicsUnit. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of AvailableGraphicsUnit instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of AvailableGraphicsUnit instances. - static List listFromJson(List json) { - return json.map((value) => AvailableGraphicsUnit.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/aztec_encode_mode.dart b/lib/src/model/aztec_encode_mode.dart deleted file mode 100644 index 944828f..0000000 --- a/lib/src/model/aztec_encode_mode.dart +++ /dev/null @@ -1,52 +0,0 @@ -/// -/// AztecEncodeMode: [Auto, Bytes, ExtendedCodetext] -class AztecEncodeMode { - /// The underlying value of AztecEncodeMode enum. - late final String _value; - - AztecEncodeMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final AztecEncodeMode Auto = AztecEncodeMode._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final AztecEncodeMode Bytes = AztecEncodeMode._internal("Bytes"); - - /// - // ignore: non_constant_identifier_names - static final AztecEncodeMode ExtendedCodetext = - AztecEncodeMode._internal("ExtendedCodetext"); - - /// Creates a AztecEncodeMode instance from a JSON representation. - AztecEncodeMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Bytes": - case "ExtendedCodetext": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of AztecEncodeMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of AztecEncodeMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of AztecEncodeMode instances. - static List listFromJson(List json) { - return json.map((value) => AztecEncodeMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/aztec_params.dart b/lib/src/model/aztec_params.dart deleted file mode 100644 index 94442f0..0000000 --- a/lib/src/model/aztec_params.dart +++ /dev/null @@ -1,72 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Aztec parameters. -class AztecParams { - /// Height/Width ratio of 2D BarCode module. - double? aspectRatio; - - /// Level of error correction of Aztec types of barcode. Value should between 10 to 95. - int? errorLevel; - - /// Aztec Symbol mode. Default value: AztecSymbolMode.Auto. - AztecSymbolMode? symbolMode; - - /// DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. - String? textEncoding; - - /// Encoding mode for Aztec barcodes. Default value: Auto - AztecEncodeMode? encodeMode; - - /// Identifies ECI encoding. Used when AztecEncodeMode is Auto. Default value: ISO-8859-1. - ECIEncodings? eCIEncoding; - - /// Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization. - bool? isReaderInitialization; - - /// Gets or sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and in range from 1 to 32 for Full Range mode. Default value: 0 (auto). - int? layersCount; - - /// Constructor - AztecParams(); - - @override - String toString() { - return 'AztecParams[aspectRatio=$aspectRatio, errorLevel=$errorLevel, symbolMode=$symbolMode, textEncoding=$textEncoding, encodeMode=$encodeMode, eCIEncoding=$eCIEncoding, isReaderInitialization=$isReaderInitialization, layersCount=$layersCount, ]'; - } - - /// Creates a AztecParams instance from a JSON representation. - AztecParams.fromJson(Map json) { - aspectRatio = json['aspectRatio']?.toDouble(); - errorLevel = json['errorLevel']; - symbolMode = AztecSymbolMode.fromJson(json['symbolMode']); - textEncoding = json['textEncoding']; - encodeMode = AztecEncodeMode.fromJson(json['encodeMode']); - eCIEncoding = ECIEncodings.fromJson(json['eCIEncoding']); - isReaderInitialization = json['isReaderInitialization']; - layersCount = json['layersCount']; - } - - /// Returns a JSON representation of AztecParams. - Map toJson() { - return { - 'AspectRatio': aspectRatio, - 'ErrorLevel': errorLevel, - 'SymbolMode': symbolMode, - 'TextEncoding': textEncoding, - 'EncodeMode': encodeMode, - 'ECIEncoding': eCIEncoding, - 'IsReaderInitialization': isReaderInitialization, - 'LayersCount': layersCount - }; - } - - /// Converts a list of JSON objects to a list of AztecParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of AztecParams instances. - static List listFromJson(List json) { - return json.map((value) => AztecParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/aztec_symbol_mode.dart b/lib/src/model/aztec_symbol_mode.dart deleted file mode 100644 index a6a008a..0000000 --- a/lib/src/model/aztec_symbol_mode.dart +++ /dev/null @@ -1,57 +0,0 @@ -/// -/// AztecSymbolMode: [Auto, Compact, FullRange, Rune] -class AztecSymbolMode { - /// The underlying value of AztecSymbolMode enum. - late final String _value; - - AztecSymbolMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final AztecSymbolMode Auto = AztecSymbolMode._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final AztecSymbolMode Compact = AztecSymbolMode._internal("Compact"); - - /// - // ignore: non_constant_identifier_names - static final AztecSymbolMode FullRange = - AztecSymbolMode._internal("FullRange"); - - /// - // ignore: non_constant_identifier_names - static final AztecSymbolMode Rune = AztecSymbolMode._internal("Rune"); - - /// Creates a AztecSymbolMode instance from a JSON representation. - AztecSymbolMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Compact": - case "FullRange": - case "Rune": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of AztecSymbolMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of AztecSymbolMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of AztecSymbolMode instances. - static List listFromJson(List json) { - return json.map((value) => AztecSymbolMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/barcode_image_format.dart b/lib/src/model/barcode_image_format.dart new file mode 100644 index 0000000..aca21fa --- /dev/null +++ b/lib/src/model/barcode_image_format.dart @@ -0,0 +1,61 @@ +/// Specifies the file format of the image. +/// BarcodeImageFormat: [Png, Jpeg, Svg, Tiff, Gif] +class BarcodeImageFormat { + /// The underlying value of BarcodeImageFormat enum. + late final String _value; + + BarcodeImageFormat._internal(this._value); + + /// Specifies the file format of the image. + // ignore: non_constant_identifier_names + static final BarcodeImageFormat Png = BarcodeImageFormat._internal("Png"); + + /// Specifies the file format of the image. + // ignore: non_constant_identifier_names + static final BarcodeImageFormat Jpeg = BarcodeImageFormat._internal("Jpeg"); + + /// Specifies the file format of the image. + // ignore: non_constant_identifier_names + static final BarcodeImageFormat Svg = BarcodeImageFormat._internal("Svg"); + + /// Specifies the file format of the image. + // ignore: non_constant_identifier_names + static final BarcodeImageFormat Tiff = BarcodeImageFormat._internal("Tiff"); + + /// Specifies the file format of the image. + // ignore: non_constant_identifier_names + static final BarcodeImageFormat Gif = BarcodeImageFormat._internal("Gif"); + + /// Creates a BarcodeImageFormat instance from a JSON representation. + BarcodeImageFormat.fromJson(dynamic data) { + switch (data) { + case 'Png': + case 'Jpeg': + case 'Svg': + case 'Tiff': + case 'Gif': + _value = data; + break; + default: + throw Exception('Unknown enum value to decode: $data'); + } + } + + /// Returns a JSON representation of BarcodeImageFormat. + String? toJson() { + return _value; + } + + @override + String toString() { + return _value.toString(); + } + + /// Converts a list of JSON objects to a list of BarcodeImageFormat instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of BarcodeImageFormat instances. + static List listFromJson(List json) { + return json.map((value) => BarcodeImageFormat.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/barcode_image_params.dart b/lib/src/model/barcode_image_params.dart new file mode 100644 index 0000000..053d9a2 --- /dev/null +++ b/lib/src/model/barcode_image_params.dart @@ -0,0 +1,99 @@ +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: deprecated_member_use_from_same_package +import '../../aspose_barcode_cloud.dart'; + +/// Barcode image optional parameters +class BarcodeImageParams { + /// imageFormat + //enum imageFormatEnum { Png, Jpeg, Svg, Tiff, Gif, }; + BarcodeImageFormat? imageFormat; + + /// textLocation + //enum textLocationEnum { Below, Above, None, }; + CodeLocation? textLocation; + + /// Specify the displaying bars and content Color. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: Black. + + String? foregroundColor; + + /// Background color of the barcode image. Value: Color name from https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #. For example: AliceBlue or #FF000000 Default value: White. + + String? backgroundColor; + + /// units + //enum unitsEnum { Pixel, Point, Inch, Millimeter, }; + GraphicsUnit? units; + + /// Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. Decimal separator is dot. + + double? resolution; + + /// Height of the barcode image in given units. Default units: pixel. Decimal separator is dot. + + double? imageHeight; + + /// Width of the barcode image in given units. Default units: pixel. Decimal separator is dot. + + double? imageWidth; + + /// BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. + + int? rotationAngle; + + /// Constructor + BarcodeImageParams( + [this.imageFormat, + this.textLocation, + this.foregroundColor, + this.backgroundColor, + this.units, + this.resolution, + this.imageHeight, + this.imageWidth, + this.rotationAngle]); + + @override + String toString() { + return 'BarcodeImageParams[imageFormat=$imageFormat, textLocation=$textLocation, foregroundColor=$foregroundColor, backgroundColor=$backgroundColor, units=$units, resolution=$resolution, imageHeight=$imageHeight, imageWidth=$imageWidth, rotationAngle=$rotationAngle, ]'; + } + + /// Creates a BarcodeImageParams instance from a JSON representation. + BarcodeImageParams.fromJson(Map json) { + imageFormat = json['imageFormat'] == null + ? null + : BarcodeImageFormat.fromJson(json['imageFormat']); + textLocation = json['textLocation'] == null + ? null + : CodeLocation.fromJson(json['textLocation']); + foregroundColor = json['foregroundColor']; + backgroundColor = json['backgroundColor']; + units = json['units'] == null ? null : GraphicsUnit.fromJson(json['units']); + resolution = json['resolution']; + imageHeight = json['imageHeight']; + imageWidth = json['imageWidth']; + rotationAngle = json['rotationAngle']; + } + + /// Returns a JSON representation of BarcodeImageParams. + Map toJson() { + return { + 'imageFormat': imageFormat, + 'textLocation': textLocation, + 'foregroundColor': foregroundColor, + 'backgroundColor': backgroundColor, + 'units': units, + 'resolution': resolution, + 'imageHeight': imageHeight, + 'imageWidth': imageWidth, + 'rotationAngle': rotationAngle + }; + } + + /// Converts a list of JSON objects to a list of BarcodeImageParams instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of BarcodeImageParams instances. + static List listFromJson(List json) { + return json.map((value) => BarcodeImageParams.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/barcode_response.dart b/lib/src/model/barcode_response.dart index c24754c..1ce3b8b 100644 --- a/lib/src/model/barcode_response.dart +++ b/lib/src/model/barcode_response.dart @@ -5,19 +5,23 @@ import '../../aspose_barcode_cloud.dart'; /// Represents information about barcode. class BarcodeResponse { /// Barcode data. + String? barcodeValue; /// Type of the barcode. + String? type; /// Region with barcode. - List? region = []; + + List? region; /// Checksum of barcode. + String? checksum; /// Constructor - BarcodeResponse(); + BarcodeResponse([this.barcodeValue, this.type, this.region, this.checksum]); @override String toString() { @@ -28,17 +32,19 @@ class BarcodeResponse { BarcodeResponse.fromJson(Map json) { barcodeValue = json['barcodeValue']; type = json['type']; - region = RegionPoint.listFromJson(json['region']); + region = json['region'] == null + ? null + : RegionPoint.listFromJson(json['region']); checksum = json['checksum']; } /// Returns a JSON representation of BarcodeResponse. Map toJson() { return { - 'BarcodeValue': barcodeValue, - 'Type': type, - 'Region': region, - 'Checksum': checksum + 'barcodeValue': barcodeValue, + 'type': type, + 'region': region, + 'checksum': checksum }; } diff --git a/lib/src/model/barcode_response_list.dart b/lib/src/model/barcode_response_list.dart index bee3544..a5eec30 100644 --- a/lib/src/model/barcode_response_list.dart +++ b/lib/src/model/barcode_response_list.dart @@ -5,10 +5,13 @@ import '../../aspose_barcode_cloud.dart'; /// Represents information about barcode list. class BarcodeResponseList { /// List of barcodes which are present in image. - List? barcodes = []; + + late List barcodes; /// Constructor - BarcodeResponseList(); + BarcodeResponseList( + this.barcodes, + ); @override String toString() { @@ -22,7 +25,7 @@ class BarcodeResponseList { /// Returns a JSON representation of BarcodeResponseList. Map toJson() { - return {'Barcodes': barcodes}; + return {'barcodes': barcodes}; } /// Converts a list of JSON objects to a list of BarcodeResponseList instances. diff --git a/lib/src/model/border_dash_style.dart b/lib/src/model/border_dash_style.dart deleted file mode 100644 index 5bc8377..0000000 --- a/lib/src/model/border_dash_style.dart +++ /dev/null @@ -1,62 +0,0 @@ -/// -/// BorderDashStyle: [Solid, Dash, Dot, DashDot, DashDotDot] -class BorderDashStyle { - /// The underlying value of BorderDashStyle enum. - late final String _value; - - BorderDashStyle._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final BorderDashStyle Solid = BorderDashStyle._internal("Solid"); - - /// - // ignore: non_constant_identifier_names - static final BorderDashStyle Dash = BorderDashStyle._internal("Dash"); - - /// - // ignore: non_constant_identifier_names - static final BorderDashStyle Dot = BorderDashStyle._internal("Dot"); - - /// - // ignore: non_constant_identifier_names - static final BorderDashStyle DashDot = BorderDashStyle._internal("DashDot"); - - /// - // ignore: non_constant_identifier_names - static final BorderDashStyle DashDotDot = - BorderDashStyle._internal("DashDotDot"); - - /// Creates a BorderDashStyle instance from a JSON representation. - BorderDashStyle.fromJson(dynamic data) { - switch (data) { - case "Solid": - case "Dash": - case "Dot": - case "DashDot": - case "DashDotDot": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of BorderDashStyle. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of BorderDashStyle instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of BorderDashStyle instances. - static List listFromJson(List json) { - return json.map((value) => BorderDashStyle.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/caption_params.dart b/lib/src/model/caption_params.dart deleted file mode 100644 index bfa8c15..0000000 --- a/lib/src/model/caption_params.dart +++ /dev/null @@ -1,67 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Caption -class CaptionParams { - /// Caption text. - String? text; - - /// Text alignment. - TextAlignment? alignment; - - /// Text color. Default value: black Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF - String? color; - - /// Is caption visible. - bool? visible; - - /// Font. - FontParams? font; - - /// Padding. - Padding? padding; - - /// Specify word wraps (line breaks) within text. Default value: false. - bool? noWrap; - - /// Constructor - CaptionParams(); - - @override - String toString() { - return 'CaptionParams[text=$text, alignment=$alignment, color=$color, visible=$visible, font=$font, padding=$padding, noWrap=$noWrap, ]'; - } - - /// Creates a CaptionParams instance from a JSON representation. - CaptionParams.fromJson(Map json) { - text = json['text']; - alignment = TextAlignment.fromJson(json['alignment']); - color = json['color']; - visible = json['visible']; - font = FontParams.fromJson(json['font']); - padding = Padding.fromJson(json['padding']); - noWrap = json['noWrap']; - } - - /// Returns a JSON representation of CaptionParams. - Map toJson() { - return { - 'Text': text, - 'Alignment': alignment, - 'Color': color, - 'Visible': visible, - 'Font': font, - 'Padding': padding, - 'NoWrap': noWrap - }; - } - - /// Converts a list of JSON objects to a list of CaptionParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of CaptionParams instances. - static List listFromJson(List json) { - return json.map((value) => CaptionParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/checksum_validation.dart b/lib/src/model/checksum_validation.dart deleted file mode 100644 index 21a5011..0000000 --- a/lib/src/model/checksum_validation.dart +++ /dev/null @@ -1,52 +0,0 @@ -/// -/// ChecksumValidation: [Default, On, Off] -class ChecksumValidation { - /// The underlying value of ChecksumValidation enum. - late final String _value; - - ChecksumValidation._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final ChecksumValidation Default = - ChecksumValidation._internal("Default"); - - /// - // ignore: non_constant_identifier_names - static final ChecksumValidation On = ChecksumValidation._internal("On"); - - /// - // ignore: non_constant_identifier_names - static final ChecksumValidation Off = ChecksumValidation._internal("Off"); - - /// Creates a ChecksumValidation instance from a JSON representation. - ChecksumValidation.fromJson(dynamic data) { - switch (data) { - case "Default": - case "On": - case "Off": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of ChecksumValidation. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of ChecksumValidation instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of ChecksumValidation instances. - static List listFromJson(List json) { - return json.map((value) => ChecksumValidation.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/codabar_checksum_mode.dart b/lib/src/model/codabar_checksum_mode.dart deleted file mode 100644 index e84cfe5..0000000 --- a/lib/src/model/codabar_checksum_mode.dart +++ /dev/null @@ -1,48 +0,0 @@ -/// -/// CodabarChecksumMode: [Mod10, Mod16] -class CodabarChecksumMode { - /// The underlying value of CodabarChecksumMode enum. - late final String _value; - - CodabarChecksumMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final CodabarChecksumMode Mod10 = - CodabarChecksumMode._internal("Mod10"); - - /// - // ignore: non_constant_identifier_names - static final CodabarChecksumMode Mod16 = - CodabarChecksumMode._internal("Mod16"); - - /// Creates a CodabarChecksumMode instance from a JSON representation. - CodabarChecksumMode.fromJson(dynamic data) { - switch (data) { - case "Mod10": - case "Mod16": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of CodabarChecksumMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of CodabarChecksumMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of CodabarChecksumMode instances. - static List listFromJson(List json) { - return json.map((value) => CodabarChecksumMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/codabar_params.dart b/lib/src/model/codabar_params.dart deleted file mode 100644 index bdf1837..0000000 --- a/lib/src/model/codabar_params.dart +++ /dev/null @@ -1,47 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Codabar parameters. -class CodabarParams { - /// Checksum algorithm for Codabar barcodes. Default value: CodabarChecksumMode.Mod16. To enable checksum calculation set value EnableChecksum.Yes to property EnableChecksum. - CodabarChecksumMode? checksumMode; - - /// Start symbol (character) of Codabar symbology. Default value: CodabarSymbol.A - CodabarSymbol? startSymbol; - - /// Stop symbol (character) of Codabar symbology. Default value: CodabarSymbol.A - CodabarSymbol? stopSymbol; - - /// Constructor - CodabarParams(); - - @override - String toString() { - return 'CodabarParams[checksumMode=$checksumMode, startSymbol=$startSymbol, stopSymbol=$stopSymbol, ]'; - } - - /// Creates a CodabarParams instance from a JSON representation. - CodabarParams.fromJson(Map json) { - checksumMode = CodabarChecksumMode.fromJson(json['checksumMode']); - startSymbol = CodabarSymbol.fromJson(json['startSymbol']); - stopSymbol = CodabarSymbol.fromJson(json['stopSymbol']); - } - - /// Returns a JSON representation of CodabarParams. - Map toJson() { - return { - 'ChecksumMode': checksumMode, - 'StartSymbol': startSymbol, - 'StopSymbol': stopSymbol - }; - } - - /// Converts a list of JSON objects to a list of CodabarParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of CodabarParams instances. - static List listFromJson(List json) { - return json.map((value) => CodabarParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/codabar_symbol.dart b/lib/src/model/codabar_symbol.dart deleted file mode 100644 index ac1363e..0000000 --- a/lib/src/model/codabar_symbol.dart +++ /dev/null @@ -1,56 +0,0 @@ -/// -/// CodabarSymbol: [A, B, C, D] -class CodabarSymbol { - /// The underlying value of CodabarSymbol enum. - late final String _value; - - CodabarSymbol._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final CodabarSymbol A = CodabarSymbol._internal("A"); - - /// - // ignore: non_constant_identifier_names - static final CodabarSymbol B = CodabarSymbol._internal("B"); - - /// - // ignore: non_constant_identifier_names - static final CodabarSymbol C = CodabarSymbol._internal("C"); - - /// - // ignore: non_constant_identifier_names - static final CodabarSymbol D = CodabarSymbol._internal("D"); - - /// Creates a CodabarSymbol instance from a JSON representation. - CodabarSymbol.fromJson(dynamic data) { - switch (data) { - case "A": - case "B": - case "C": - case "D": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of CodabarSymbol. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of CodabarSymbol instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of CodabarSymbol instances. - static List listFromJson(List json) { - return json.map((value) => CodabarSymbol.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/codablock_params.dart b/lib/src/model/codablock_params.dart deleted file mode 100644 index d48ba9c..0000000 --- a/lib/src/model/codablock_params.dart +++ /dev/null @@ -1,42 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Codablock parameters. -class CodablockParams { - /// Height/Width ratio of 2D BarCode module. - double? aspectRatio; - - /// Columns count. - int? columns; - - /// Rows count. - int? rows; - - /// Constructor - CodablockParams(); - - @override - String toString() { - return 'CodablockParams[aspectRatio=$aspectRatio, columns=$columns, rows=$rows, ]'; - } - - /// Creates a CodablockParams instance from a JSON representation. - CodablockParams.fromJson(Map json) { - aspectRatio = json['aspectRatio']?.toDouble(); - columns = json['columns']; - rows = json['rows']; - } - - /// Returns a JSON representation of CodablockParams. - Map toJson() { - return {'AspectRatio': aspectRatio, 'Columns': columns, 'Rows': rows}; - } - - /// Converts a list of JSON objects to a list of CodablockParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of CodablockParams instances. - static List listFromJson(List json) { - return json.map((value) => CodablockParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/code128_emulation.dart b/lib/src/model/code128_emulation.dart deleted file mode 100644 index e892a7d..0000000 --- a/lib/src/model/code128_emulation.dart +++ /dev/null @@ -1,56 +0,0 @@ -/// DEPRECATED. This enum will be removed in future releases Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. -/// Code128Emulation: [None, Code903, Code904, Code905] -class Code128Emulation { - /// The underlying value of Code128Emulation enum. - late final String _value; - - Code128Emulation._internal(this._value); - - /// DEPRECATED. This enum will be removed in future releases Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. - // ignore: non_constant_identifier_names - static final Code128Emulation None = Code128Emulation._internal("None"); - - /// DEPRECATED. This enum will be removed in future releases Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. - // ignore: non_constant_identifier_names - static final Code128Emulation Code903 = Code128Emulation._internal("Code903"); - - /// DEPRECATED. This enum will be removed in future releases Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. - // ignore: non_constant_identifier_names - static final Code128Emulation Code904 = Code128Emulation._internal("Code904"); - - /// DEPRECATED. This enum will be removed in future releases Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. - // ignore: non_constant_identifier_names - static final Code128Emulation Code905 = Code128Emulation._internal("Code905"); - - /// Creates a Code128Emulation instance from a JSON representation. - Code128Emulation.fromJson(dynamic data) { - switch (data) { - case "None": - case "Code903": - case "Code904": - case "Code905": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of Code128Emulation. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of Code128Emulation instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Code128Emulation instances. - static List listFromJson(List json) { - return json.map((value) => Code128Emulation.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/code128_encode_mode.dart b/lib/src/model/code128_encode_mode.dart deleted file mode 100644 index 15706e7..0000000 --- a/lib/src/model/code128_encode_mode.dart +++ /dev/null @@ -1,71 +0,0 @@ -/// -/// Code128EncodeMode: [Auto, CodeA, CodeB, CodeAB, CodeC, CodeAC, CodeBC] -class Code128EncodeMode { - /// The underlying value of Code128EncodeMode enum. - late final String _value; - - Code128EncodeMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final Code128EncodeMode Auto = Code128EncodeMode._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final Code128EncodeMode CodeA = Code128EncodeMode._internal("CodeA"); - - /// - // ignore: non_constant_identifier_names - static final Code128EncodeMode CodeB = Code128EncodeMode._internal("CodeB"); - - /// - // ignore: non_constant_identifier_names - static final Code128EncodeMode CodeAB = Code128EncodeMode._internal("CodeAB"); - - /// - // ignore: non_constant_identifier_names - static final Code128EncodeMode CodeC = Code128EncodeMode._internal("CodeC"); - - /// - // ignore: non_constant_identifier_names - static final Code128EncodeMode CodeAC = Code128EncodeMode._internal("CodeAC"); - - /// - // ignore: non_constant_identifier_names - static final Code128EncodeMode CodeBC = Code128EncodeMode._internal("CodeBC"); - - /// Creates a Code128EncodeMode instance from a JSON representation. - Code128EncodeMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "CodeA": - case "CodeB": - case "CodeAB": - case "CodeC": - case "CodeAC": - case "CodeBC": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of Code128EncodeMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of Code128EncodeMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Code128EncodeMode instances. - static List listFromJson(List json) { - return json.map((value) => Code128EncodeMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/code128_params.dart b/lib/src/model/code128_params.dart deleted file mode 100644 index 37c376e..0000000 --- a/lib/src/model/code128_params.dart +++ /dev/null @@ -1,35 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Code128 params. -class Code128Params { - /// Encoding mode for Code128 barcodes. Code 128 specification Default value: Code128EncodeMode.Auto. - Code128EncodeMode? encodeMode; - - /// Constructor - Code128Params(); - - @override - String toString() { - return 'Code128Params[encodeMode=$encodeMode, ]'; - } - - /// Creates a Code128Params instance from a JSON representation. - Code128Params.fromJson(Map json) { - encodeMode = Code128EncodeMode.fromJson(json['encodeMode']); - } - - /// Returns a JSON representation of Code128Params. - Map toJson() { - return {'EncodeMode': encodeMode}; - } - - /// Converts a list of JSON objects to a list of Code128Params instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Code128Params instances. - static List listFromJson(List json) { - return json.map((value) => Code128Params.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/code16_k_params.dart b/lib/src/model/code16_k_params.dart deleted file mode 100644 index 5d89274..0000000 --- a/lib/src/model/code16_k_params.dart +++ /dev/null @@ -1,46 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Code16K parameters. -class Code16KParams { - /// Height/Width ratio of 2D BarCode module. - double? aspectRatio; - - /// Size of the left quiet zone in xDimension. Default value: 10, meaning if xDimension = 2px than left quiet zone will be 20px. - int? quietZoneLeftCoef; - - /// Size of the right quiet zone in xDimension. Default value: 1, meaning if xDimension = 2px than right quiet zone will be 2px. - int? quietZoneRightCoef; - - /// Constructor - Code16KParams(); - - @override - String toString() { - return 'Code16KParams[aspectRatio=$aspectRatio, quietZoneLeftCoef=$quietZoneLeftCoef, quietZoneRightCoef=$quietZoneRightCoef, ]'; - } - - /// Creates a Code16KParams instance from a JSON representation. - Code16KParams.fromJson(Map json) { - aspectRatio = json['aspectRatio']?.toDouble(); - quietZoneLeftCoef = json['quietZoneLeftCoef']; - quietZoneRightCoef = json['quietZoneRightCoef']; - } - - /// Returns a JSON representation of Code16KParams. - Map toJson() { - return { - 'AspectRatio': aspectRatio, - 'QuietZoneLeftCoef': quietZoneLeftCoef, - 'QuietZoneRightCoef': quietZoneRightCoef - }; - } - - /// Converts a list of JSON objects to a list of Code16KParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Code16KParams instances. - static List listFromJson(List json) { - return json.map((value) => Code16KParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/code_location.dart b/lib/src/model/code_location.dart index ea1284a..987858d 100644 --- a/lib/src/model/code_location.dart +++ b/lib/src/model/code_location.dart @@ -6,24 +6,19 @@ class CodeLocation { CodeLocation._internal(this._value); - /// // ignore: non_constant_identifier_names static final CodeLocation Below = CodeLocation._internal("Below"); - - /// // ignore: non_constant_identifier_names static final CodeLocation Above = CodeLocation._internal("Above"); - - /// // ignore: non_constant_identifier_names static final CodeLocation None = CodeLocation._internal("None"); /// Creates a CodeLocation instance from a JSON representation. CodeLocation.fromJson(dynamic data) { switch (data) { - case "Below": - case "Above": - case "None": + case 'Below': + case 'Above': + case 'None': _value = data; break; default: diff --git a/lib/src/model/coupon_params.dart b/lib/src/model/coupon_params.dart deleted file mode 100644 index 7db7f04..0000000 --- a/lib/src/model/coupon_params.dart +++ /dev/null @@ -1,34 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon. -class CouponParams { - /// Space between main the BarCode and supplement BarCode in Unit value. - double? supplementSpace; - - /// Constructor - CouponParams(); - - @override - String toString() { - return 'CouponParams[supplementSpace=$supplementSpace, ]'; - } - - /// Creates a CouponParams instance from a JSON representation. - CouponParams.fromJson(Map json) { - supplementSpace = json['supplementSpace']?.toDouble(); - } - - /// Returns a JSON representation of CouponParams. - Map toJson() { - return {'SupplementSpace': supplementSpace}; - } - - /// Converts a list of JSON objects to a list of CouponParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of CouponParams instances. - static List listFromJson(List json) { - return json.map((value) => CouponParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/customer_information_interpreting_type.dart b/lib/src/model/customer_information_interpreting_type.dart deleted file mode 100644 index eb204de..0000000 --- a/lib/src/model/customer_information_interpreting_type.dart +++ /dev/null @@ -1,57 +0,0 @@ -/// -/// CustomerInformationInterpretingType: [CTable, NTable, Other] -class CustomerInformationInterpretingType { - /// The underlying value of CustomerInformationInterpretingType enum. - late final String _value; - - CustomerInformationInterpretingType._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final CustomerInformationInterpretingType CTable = - CustomerInformationInterpretingType._internal("CTable"); - - /// - // ignore: non_constant_identifier_names - static final CustomerInformationInterpretingType NTable = - CustomerInformationInterpretingType._internal("NTable"); - - /// - // ignore: non_constant_identifier_names - static final CustomerInformationInterpretingType Other = - CustomerInformationInterpretingType._internal("Other"); - - /// Creates a CustomerInformationInterpretingType instance from a JSON representation. - CustomerInformationInterpretingType.fromJson(dynamic data) { - switch (data) { - case "CTable": - case "NTable": - case "Other": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of CustomerInformationInterpretingType. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of CustomerInformationInterpretingType instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of CustomerInformationInterpretingType instances. - static List listFromJson( - List json) { - return json - .map((value) => CustomerInformationInterpretingType.fromJson(value)) - .toList(); - } -} diff --git a/lib/src/model/data_bar_params.dart b/lib/src/model/data_bar_params.dart deleted file mode 100644 index 1c44a94..0000000 --- a/lib/src/model/data_bar_params.dart +++ /dev/null @@ -1,56 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Databar parameters. -class DataBarParams { - /// Height/Width ratio of 2D BarCode module. Used for DataBar stacked. - double? aspectRatio; - - /// Columns count. - int? columns; - - /// Rows count. - int? rows; - - /// Enables flag of 2D composite component with DataBar barcode - bool? is2DCompositeComponent; - - /// If this flag is set, it allows only GS1 encoding standard for Databar barcode types - bool? isAllowOnlyGS1Encoding; - - /// Constructor - DataBarParams(); - - @override - String toString() { - return 'DataBarParams[aspectRatio=$aspectRatio, columns=$columns, rows=$rows, is2DCompositeComponent=$is2DCompositeComponent, isAllowOnlyGS1Encoding=$isAllowOnlyGS1Encoding, ]'; - } - - /// Creates a DataBarParams instance from a JSON representation. - DataBarParams.fromJson(Map json) { - aspectRatio = json['aspectRatio']?.toDouble(); - columns = json['columns']; - rows = json['rows']; - is2DCompositeComponent = json['is2DCompositeComponent']; - isAllowOnlyGS1Encoding = json['isAllowOnlyGS1Encoding']; - } - - /// Returns a JSON representation of DataBarParams. - Map toJson() { - return { - 'AspectRatio': aspectRatio, - 'Columns': columns, - 'Rows': rows, - 'Is2DCompositeComponent': is2DCompositeComponent, - 'IsAllowOnlyGS1Encoding': isAllowOnlyGS1Encoding - }; - } - - /// Converts a list of JSON objects to a list of DataBarParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of DataBarParams instances. - static List listFromJson(List json) { - return json.map((value) => DataBarParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/data_matrix_ecc_type.dart b/lib/src/model/data_matrix_ecc_type.dart deleted file mode 100644 index d601580..0000000 --- a/lib/src/model/data_matrix_ecc_type.dart +++ /dev/null @@ -1,72 +0,0 @@ -/// -/// DataMatrixEccType: [EccAuto, Ecc000, Ecc050, Ecc080, Ecc100, Ecc140, Ecc200] -class DataMatrixEccType { - /// The underlying value of DataMatrixEccType enum. - late final String _value; - - DataMatrixEccType._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixEccType EccAuto = - DataMatrixEccType._internal("EccAuto"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixEccType Ecc000 = DataMatrixEccType._internal("Ecc000"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixEccType Ecc050 = DataMatrixEccType._internal("Ecc050"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixEccType Ecc080 = DataMatrixEccType._internal("Ecc080"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixEccType Ecc100 = DataMatrixEccType._internal("Ecc100"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixEccType Ecc140 = DataMatrixEccType._internal("Ecc140"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixEccType Ecc200 = DataMatrixEccType._internal("Ecc200"); - - /// Creates a DataMatrixEccType instance from a JSON representation. - DataMatrixEccType.fromJson(dynamic data) { - switch (data) { - case "EccAuto": - case "Ecc000": - case "Ecc050": - case "Ecc080": - case "Ecc100": - case "Ecc140": - case "Ecc200": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of DataMatrixEccType. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of DataMatrixEccType instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of DataMatrixEccType instances. - static List listFromJson(List json) { - return json.map((value) => DataMatrixEccType.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/data_matrix_encode_mode.dart b/lib/src/model/data_matrix_encode_mode.dart deleted file mode 100644 index 2a4e120..0000000 --- a/lib/src/model/data_matrix_encode_mode.dart +++ /dev/null @@ -1,89 +0,0 @@ -/// DataMatrix encoder's encoding mode, default to Auto -/// DataMatrixEncodeMode: [Auto, ASCII, Full, Custom, C40, Text, EDIFACT, ANSIX12, ExtendedCodetext] -class DataMatrixEncodeMode { - /// The underlying value of DataMatrixEncodeMode enum. - late final String _value; - - DataMatrixEncodeMode._internal(this._value); - - /// DataMatrix encoder's encoding mode, default to Auto - // ignore: non_constant_identifier_names - static final DataMatrixEncodeMode Auto = - DataMatrixEncodeMode._internal("Auto"); - - /// DataMatrix encoder's encoding mode, default to Auto - // ignore: non_constant_identifier_names - static final DataMatrixEncodeMode ASCII = - DataMatrixEncodeMode._internal("ASCII"); - - /// DataMatrix encoder's encoding mode, default to Auto - // ignore: non_constant_identifier_names - static final DataMatrixEncodeMode Full = - DataMatrixEncodeMode._internal("Full"); - - /// DataMatrix encoder's encoding mode, default to Auto - // ignore: non_constant_identifier_names - static final DataMatrixEncodeMode Custom = - DataMatrixEncodeMode._internal("Custom"); - - /// DataMatrix encoder's encoding mode, default to Auto - // ignore: non_constant_identifier_names - static final DataMatrixEncodeMode C40 = DataMatrixEncodeMode._internal("C40"); - - /// DataMatrix encoder's encoding mode, default to Auto - // ignore: non_constant_identifier_names - static final DataMatrixEncodeMode Text = - DataMatrixEncodeMode._internal("Text"); - - /// DataMatrix encoder's encoding mode, default to Auto - // ignore: non_constant_identifier_names - static final DataMatrixEncodeMode EDIFACT = - DataMatrixEncodeMode._internal("EDIFACT"); - - /// DataMatrix encoder's encoding mode, default to Auto - // ignore: non_constant_identifier_names - static final DataMatrixEncodeMode ANSIX12 = - DataMatrixEncodeMode._internal("ANSIX12"); - - /// DataMatrix encoder's encoding mode, default to Auto - // ignore: non_constant_identifier_names - static final DataMatrixEncodeMode ExtendedCodetext = - DataMatrixEncodeMode._internal("ExtendedCodetext"); - - /// Creates a DataMatrixEncodeMode instance from a JSON representation. - DataMatrixEncodeMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "ASCII": - case "Full": - case "Custom": - case "C40": - case "Text": - case "EDIFACT": - case "ANSIX12": - case "ExtendedCodetext": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of DataMatrixEncodeMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of DataMatrixEncodeMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of DataMatrixEncodeMode instances. - static List listFromJson(List json) { - return json.map((value) => DataMatrixEncodeMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/data_matrix_params.dart b/lib/src/model/data_matrix_params.dart deleted file mode 100644 index 59ab9ad..0000000 --- a/lib/src/model/data_matrix_params.dart +++ /dev/null @@ -1,73 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// DataMatrix parameters. -class DataMatrixParams { - /// Height/Width ratio of 2D BarCode module - double? aspectRatio; - - /// DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. - String? textEncoding; - - /// DEPRECATED: Will be replaced with 'DataMatrix.Version' in the next release Columns count. - int? columns; - - /// Datamatrix ECC type. Default value: DataMatrixEccType.Ecc200. - DataMatrixEccType? dataMatrixEcc; - - /// Encode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.Auto. - DataMatrixEncodeMode? dataMatrixEncodeMode; - - /// DEPRECATED: Will be replaced with 'DataMatrix.Version' in the next release Rows count. - int? rows; - - /// Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with DataMatrixEccType.Ecc200 or DataMatrixEccType.EccAuto. Cannot be used with EncodeTypes.GS1DataMatrix Default value: MacroCharacters.None. - MacroCharacter? macroCharacters; - - /// Sets a Datamatrix symbol size. Default value: DataMatrixVersion.Auto. - DataMatrixVersion? version; - - /// Constructor - DataMatrixParams(); - - @override - String toString() { - return 'DataMatrixParams[aspectRatio=$aspectRatio, textEncoding=$textEncoding, columns=$columns, dataMatrixEcc=$dataMatrixEcc, dataMatrixEncodeMode=$dataMatrixEncodeMode, rows=$rows, macroCharacters=$macroCharacters, version=$version, ]'; - } - - /// Creates a DataMatrixParams instance from a JSON representation. - DataMatrixParams.fromJson(Map json) { - aspectRatio = json['aspectRatio']?.toDouble(); - textEncoding = json['textEncoding']; - columns = json['columns']; - dataMatrixEcc = DataMatrixEccType.fromJson(json['dataMatrixEcc']); - dataMatrixEncodeMode = - DataMatrixEncodeMode.fromJson(json['dataMatrixEncodeMode']); - rows = json['rows']; - macroCharacters = MacroCharacter.fromJson(json['macroCharacters']); - version = DataMatrixVersion.fromJson(json['version']); - } - - /// Returns a JSON representation of DataMatrixParams. - Map toJson() { - return { - 'AspectRatio': aspectRatio, - 'TextEncoding': textEncoding, - 'Columns': columns, - 'DataMatrixEcc': dataMatrixEcc, - 'DataMatrixEncodeMode': dataMatrixEncodeMode, - 'Rows': rows, - 'MacroCharacters': macroCharacters, - 'Version': version - }; - } - - /// Converts a list of JSON objects to a list of DataMatrixParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of DataMatrixParams instances. - static List listFromJson(List json) { - return json.map((value) => DataMatrixParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/data_matrix_version.dart b/lib/src/model/data_matrix_version.dart deleted file mode 100644 index e26cbb6..0000000 --- a/lib/src/model/data_matrix_version.dart +++ /dev/null @@ -1,461 +0,0 @@ -/// -/// DataMatrixVersion: [Auto, RowsColumns, ECC000_9x9, ECC000_050_11x11, ECC000_100_13x13, ECC000_100_15x15, ECC000_140_17x17, ECC000_140_19x19, ECC000_140_21x21, ECC000_140_23x23, ECC000_140_25x25, ECC000_140_27x27, ECC000_140_29x29, ECC000_140_31x31, ECC000_140_33x33, ECC000_140_35x35, ECC000_140_37x37, ECC000_140_39x39, ECC000_140_41x41, ECC000_140_43x43, ECC000_140_45x45, ECC000_140_47x47, ECC000_140_49x49, ECC200_10x10, ECC200_12x12, ECC200_14x14, ECC200_16x16, ECC200_18x18, ECC200_20x20, ECC200_22x22, ECC200_24x24, ECC200_26x26, ECC200_32x32, ECC200_36x36, ECC200_40x40, ECC200_44x44, ECC200_48x48, ECC200_52x52, ECC200_64x64, ECC200_72x72, ECC200_80x80, ECC200_88x88, ECC200_96x96, ECC200_104x104, ECC200_120x120, ECC200_132x132, ECC200_144x144, ECC200_8x18, ECC200_8x32, ECC200_12x26, ECC200_12x36, ECC200_16x36, ECC200_16x48, DMRE_8x48, DMRE_8x64, DMRE_8x80, DMRE_8x96, DMRE_8x120, DMRE_8x144, DMRE_12x64, DMRE_12x88, DMRE_16x64, DMRE_20x36, DMRE_20x44, DMRE_20x64, DMRE_22x48, DMRE_24x48, DMRE_24x64, DMRE_26x40, DMRE_26x48, DMRE_26x64] -class DataMatrixVersion { - /// The underlying value of DataMatrixVersion enum. - late final String _value; - - DataMatrixVersion._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion Auto = DataMatrixVersion._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion RowsColumns = - DataMatrixVersion._internal("RowsColumns"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_9x9 = - DataMatrixVersion._internal("ECC000_9x9"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_050_11x11 = - DataMatrixVersion._internal("ECC000_050_11x11"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_100_13x13 = - DataMatrixVersion._internal("ECC000_100_13x13"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_100_15x15 = - DataMatrixVersion._internal("ECC000_100_15x15"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_17x17 = - DataMatrixVersion._internal("ECC000_140_17x17"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_19x19 = - DataMatrixVersion._internal("ECC000_140_19x19"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_21x21 = - DataMatrixVersion._internal("ECC000_140_21x21"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_23x23 = - DataMatrixVersion._internal("ECC000_140_23x23"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_25x25 = - DataMatrixVersion._internal("ECC000_140_25x25"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_27x27 = - DataMatrixVersion._internal("ECC000_140_27x27"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_29x29 = - DataMatrixVersion._internal("ECC000_140_29x29"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_31x31 = - DataMatrixVersion._internal("ECC000_140_31x31"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_33x33 = - DataMatrixVersion._internal("ECC000_140_33x33"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_35x35 = - DataMatrixVersion._internal("ECC000_140_35x35"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_37x37 = - DataMatrixVersion._internal("ECC000_140_37x37"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_39x39 = - DataMatrixVersion._internal("ECC000_140_39x39"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_41x41 = - DataMatrixVersion._internal("ECC000_140_41x41"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_43x43 = - DataMatrixVersion._internal("ECC000_140_43x43"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_45x45 = - DataMatrixVersion._internal("ECC000_140_45x45"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_47x47 = - DataMatrixVersion._internal("ECC000_140_47x47"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC000_140_49x49 = - DataMatrixVersion._internal("ECC000_140_49x49"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_10x10 = - DataMatrixVersion._internal("ECC200_10x10"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_12x12 = - DataMatrixVersion._internal("ECC200_12x12"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_14x14 = - DataMatrixVersion._internal("ECC200_14x14"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_16x16 = - DataMatrixVersion._internal("ECC200_16x16"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_18x18 = - DataMatrixVersion._internal("ECC200_18x18"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_20x20 = - DataMatrixVersion._internal("ECC200_20x20"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_22x22 = - DataMatrixVersion._internal("ECC200_22x22"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_24x24 = - DataMatrixVersion._internal("ECC200_24x24"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_26x26 = - DataMatrixVersion._internal("ECC200_26x26"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_32x32 = - DataMatrixVersion._internal("ECC200_32x32"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_36x36 = - DataMatrixVersion._internal("ECC200_36x36"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_40x40 = - DataMatrixVersion._internal("ECC200_40x40"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_44x44 = - DataMatrixVersion._internal("ECC200_44x44"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_48x48 = - DataMatrixVersion._internal("ECC200_48x48"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_52x52 = - DataMatrixVersion._internal("ECC200_52x52"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_64x64 = - DataMatrixVersion._internal("ECC200_64x64"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_72x72 = - DataMatrixVersion._internal("ECC200_72x72"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_80x80 = - DataMatrixVersion._internal("ECC200_80x80"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_88x88 = - DataMatrixVersion._internal("ECC200_88x88"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_96x96 = - DataMatrixVersion._internal("ECC200_96x96"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_104x104 = - DataMatrixVersion._internal("ECC200_104x104"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_120x120 = - DataMatrixVersion._internal("ECC200_120x120"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_132x132 = - DataMatrixVersion._internal("ECC200_132x132"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_144x144 = - DataMatrixVersion._internal("ECC200_144x144"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_8x18 = - DataMatrixVersion._internal("ECC200_8x18"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_8x32 = - DataMatrixVersion._internal("ECC200_8x32"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_12x26 = - DataMatrixVersion._internal("ECC200_12x26"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_12x36 = - DataMatrixVersion._internal("ECC200_12x36"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_16x36 = - DataMatrixVersion._internal("ECC200_16x36"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion ECC200_16x48 = - DataMatrixVersion._internal("ECC200_16x48"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_8x48 = - DataMatrixVersion._internal("DMRE_8x48"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_8x64 = - DataMatrixVersion._internal("DMRE_8x64"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_8x80 = - DataMatrixVersion._internal("DMRE_8x80"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_8x96 = - DataMatrixVersion._internal("DMRE_8x96"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_8x120 = - DataMatrixVersion._internal("DMRE_8x120"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_8x144 = - DataMatrixVersion._internal("DMRE_8x144"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_12x64 = - DataMatrixVersion._internal("DMRE_12x64"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_12x88 = - DataMatrixVersion._internal("DMRE_12x88"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_16x64 = - DataMatrixVersion._internal("DMRE_16x64"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_20x36 = - DataMatrixVersion._internal("DMRE_20x36"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_20x44 = - DataMatrixVersion._internal("DMRE_20x44"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_20x64 = - DataMatrixVersion._internal("DMRE_20x64"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_22x48 = - DataMatrixVersion._internal("DMRE_22x48"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_24x48 = - DataMatrixVersion._internal("DMRE_24x48"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_24x64 = - DataMatrixVersion._internal("DMRE_24x64"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_26x40 = - DataMatrixVersion._internal("DMRE_26x40"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_26x48 = - DataMatrixVersion._internal("DMRE_26x48"); - - /// - // ignore: non_constant_identifier_names - static final DataMatrixVersion DMRE_26x64 = - DataMatrixVersion._internal("DMRE_26x64"); - - /// Creates a DataMatrixVersion instance from a JSON representation. - DataMatrixVersion.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "RowsColumns": - case "ECC000_9x9": - case "ECC000_050_11x11": - case "ECC000_100_13x13": - case "ECC000_100_15x15": - case "ECC000_140_17x17": - case "ECC000_140_19x19": - case "ECC000_140_21x21": - case "ECC000_140_23x23": - case "ECC000_140_25x25": - case "ECC000_140_27x27": - case "ECC000_140_29x29": - case "ECC000_140_31x31": - case "ECC000_140_33x33": - case "ECC000_140_35x35": - case "ECC000_140_37x37": - case "ECC000_140_39x39": - case "ECC000_140_41x41": - case "ECC000_140_43x43": - case "ECC000_140_45x45": - case "ECC000_140_47x47": - case "ECC000_140_49x49": - case "ECC200_10x10": - case "ECC200_12x12": - case "ECC200_14x14": - case "ECC200_16x16": - case "ECC200_18x18": - case "ECC200_20x20": - case "ECC200_22x22": - case "ECC200_24x24": - case "ECC200_26x26": - case "ECC200_32x32": - case "ECC200_36x36": - case "ECC200_40x40": - case "ECC200_44x44": - case "ECC200_48x48": - case "ECC200_52x52": - case "ECC200_64x64": - case "ECC200_72x72": - case "ECC200_80x80": - case "ECC200_88x88": - case "ECC200_96x96": - case "ECC200_104x104": - case "ECC200_120x120": - case "ECC200_132x132": - case "ECC200_144x144": - case "ECC200_8x18": - case "ECC200_8x32": - case "ECC200_12x26": - case "ECC200_12x36": - case "ECC200_16x36": - case "ECC200_16x48": - case "DMRE_8x48": - case "DMRE_8x64": - case "DMRE_8x80": - case "DMRE_8x96": - case "DMRE_8x120": - case "DMRE_8x144": - case "DMRE_12x64": - case "DMRE_12x88": - case "DMRE_16x64": - case "DMRE_20x36": - case "DMRE_20x44": - case "DMRE_20x64": - case "DMRE_22x48": - case "DMRE_24x48": - case "DMRE_24x64": - case "DMRE_26x40": - case "DMRE_26x48": - case "DMRE_26x64": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of DataMatrixVersion. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of DataMatrixVersion instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of DataMatrixVersion instances. - static List listFromJson(List json) { - return json.map((value) => DataMatrixVersion.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/decode_barcode_type.dart b/lib/src/model/decode_barcode_type.dart index 971f27b..8133bb7 100644 --- a/lib/src/model/decode_barcode_type.dart +++ b/lib/src/model/decode_barcode_type.dart @@ -1,498 +1,491 @@ -/// See DecodeType -/// DecodeBarcodeType: [all, AustraliaPost, Aztec, ISBN, Codabar, Code11, Code128, GS1Code128, Code39Extended, Code39Standard, Code93Extended, Code93Standard, DataMatrix, DeutschePostIdentcode, DeutschePostLeitcode, EAN13, EAN14, EAN8, IATA2of5, Interleaved2of5, ISSN, ISMN, ItalianPost25, ITF14, ITF6, MacroPdf417, Matrix2of5, MSI, OneCode, OPC, PatchCode, Pdf417, MicroPdf417, Planet, Postnet, PZN, QR, MicroQR, RM4SCC, SCC14, SSCC18, Standard2of5, Supplement, UPCA, UPCE, VIN, Pharmacode, GS1DataMatrix, DatabarOmniDirectional, DatabarTruncated, DatabarLimited, DatabarExpanded, SwissPostParcel, AustralianPosteParcel, Code16K, DatabarStackedOmniDirectional, DatabarStacked, DatabarExpandedStacked, CompactPdf417, GS1QR, MaxiCode, MicrE13B, Code32, DataLogic2of5, DotCode, DutchKIX, CodablockF, Mailmark, GS1DotCode, HIBCCode39LIC, HIBCCode128LIC, HIBCAztecLIC, HIBCDataMatrixLIC, HIBCQRLIC, HIBCCode39PAS, HIBCCode128PAS, HIBCAztecPAS, HIBCDataMatrixPAS, HIBCQRPAS, HanXin, GS1HanXin, GS1Aztec, GS1CompositeBar, GS1MicroPdf417, mostCommonlyUsed] +/// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType +/// DecodeBarcodeType: [MostCommonlyUsed, QR, AustraliaPost, AustralianPosteParcel, Aztec, Codabar, CodablockF, Code11, Code128, Code16K, Code32, Code39, Code39FullASCII, Code93, CompactPdf417, DataLogic2of5, DataMatrix, DatabarExpanded, DatabarExpandedStacked, DatabarLimited, DatabarOmniDirectional, DatabarStacked, DatabarStackedOmniDirectional, DatabarTruncated, DeutschePostIdentcode, DeutschePostLeitcode, DotCode, DutchKIX, EAN13, EAN14, EAN8, GS1Aztec, GS1Code128, GS1CompositeBar, GS1DataMatrix, GS1DotCode, GS1HanXin, GS1MicroPdf417, GS1QR, HanXin, HIBCAztecLIC, HIBCAztecPAS, HIBCCode128LIC, HIBCCode128PAS, HIBCCode39LIC, HIBCCode39PAS, HIBCDataMatrixLIC, HIBCDataMatrixPAS, HIBCQRLIC, HIBCQRPAS, IATA2of5, ISBN, ISMN, ISSN, ITF14, ITF6, Interleaved2of5, ItalianPost25, MacroPdf417, Mailmark, Matrix2of5, MaxiCode, MicrE13B, MicroPdf417, MicroQR, MSI, OneCode, OPC, PatchCode, Pdf417, Pharmacode, Planet, Postnet, PZN, RectMicroQR, RM4SCC, SCC14, SSCC18, Standard2of5, Supplement, SwissPostParcel, UPCA, UPCE, VIN] class DecodeBarcodeType { /// The underlying value of DecodeBarcodeType enum. late final String _value; DecodeBarcodeType._internal(this._value); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType all = DecodeBarcodeType._internal("all"); + static final DecodeBarcodeType MostCommonlyUsed = + DecodeBarcodeType._internal("MostCommonlyUsed"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType + // ignore: non_constant_identifier_names + static final DecodeBarcodeType QR = DecodeBarcodeType._internal("QR"); + + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names static final DecodeBarcodeType AustraliaPost = DecodeBarcodeType._internal("AustraliaPost"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Aztec = DecodeBarcodeType._internal("Aztec"); + static final DecodeBarcodeType AustralianPosteParcel = + DecodeBarcodeType._internal("AustralianPosteParcel"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType ISBN = DecodeBarcodeType._internal("ISBN"); + static final DecodeBarcodeType Aztec = DecodeBarcodeType._internal("Aztec"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names static final DecodeBarcodeType Codabar = DecodeBarcodeType._internal("Codabar"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType + // ignore: non_constant_identifier_names + static final DecodeBarcodeType CodablockF = + DecodeBarcodeType._internal("CodablockF"); + + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names static final DecodeBarcodeType Code11 = DecodeBarcodeType._internal("Code11"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names static final DecodeBarcodeType Code128 = DecodeBarcodeType._internal("Code128"); - /// See DecodeType - // ignore: non_constant_identifier_names - static final DecodeBarcodeType GS1Code128 = - DecodeBarcodeType._internal("GS1Code128"); - - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Code39Extended = - DecodeBarcodeType._internal("Code39Extended"); + static final DecodeBarcodeType Code16K = + DecodeBarcodeType._internal("Code16K"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Code39Standard = - DecodeBarcodeType._internal("Code39Standard"); + static final DecodeBarcodeType Code32 = DecodeBarcodeType._internal("Code32"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Code93Extended = - DecodeBarcodeType._internal("Code93Extended"); + static final DecodeBarcodeType Code39 = DecodeBarcodeType._internal("Code39"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Code93Standard = - DecodeBarcodeType._internal("Code93Standard"); + static final DecodeBarcodeType Code39FullASCII = + DecodeBarcodeType._internal("Code39FullASCII"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DataMatrix = - DecodeBarcodeType._internal("DataMatrix"); + static final DecodeBarcodeType Code93 = DecodeBarcodeType._internal("Code93"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DeutschePostIdentcode = - DecodeBarcodeType._internal("DeutschePostIdentcode"); + static final DecodeBarcodeType CompactPdf417 = + DecodeBarcodeType._internal("CompactPdf417"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DeutschePostLeitcode = - DecodeBarcodeType._internal("DeutschePostLeitcode"); + static final DecodeBarcodeType DataLogic2of5 = + DecodeBarcodeType._internal("DataLogic2of5"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType EAN13 = DecodeBarcodeType._internal("EAN13"); + static final DecodeBarcodeType DataMatrix = + DecodeBarcodeType._internal("DataMatrix"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType EAN14 = DecodeBarcodeType._internal("EAN14"); + static final DecodeBarcodeType DatabarExpanded = + DecodeBarcodeType._internal("DatabarExpanded"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType EAN8 = DecodeBarcodeType._internal("EAN8"); + static final DecodeBarcodeType DatabarExpandedStacked = + DecodeBarcodeType._internal("DatabarExpandedStacked"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType IATA2of5 = - DecodeBarcodeType._internal("IATA2of5"); + static final DecodeBarcodeType DatabarLimited = + DecodeBarcodeType._internal("DatabarLimited"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Interleaved2of5 = - DecodeBarcodeType._internal("Interleaved2of5"); + static final DecodeBarcodeType DatabarOmniDirectional = + DecodeBarcodeType._internal("DatabarOmniDirectional"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType ISSN = DecodeBarcodeType._internal("ISSN"); + static final DecodeBarcodeType DatabarStacked = + DecodeBarcodeType._internal("DatabarStacked"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType ISMN = DecodeBarcodeType._internal("ISMN"); + static final DecodeBarcodeType DatabarStackedOmniDirectional = + DecodeBarcodeType._internal("DatabarStackedOmniDirectional"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType ItalianPost25 = - DecodeBarcodeType._internal("ItalianPost25"); + static final DecodeBarcodeType DatabarTruncated = + DecodeBarcodeType._internal("DatabarTruncated"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType ITF14 = DecodeBarcodeType._internal("ITF14"); + static final DecodeBarcodeType DeutschePostIdentcode = + DecodeBarcodeType._internal("DeutschePostIdentcode"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType ITF6 = DecodeBarcodeType._internal("ITF6"); + static final DecodeBarcodeType DeutschePostLeitcode = + DecodeBarcodeType._internal("DeutschePostLeitcode"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType MacroPdf417 = - DecodeBarcodeType._internal("MacroPdf417"); + static final DecodeBarcodeType DotCode = + DecodeBarcodeType._internal("DotCode"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Matrix2of5 = - DecodeBarcodeType._internal("Matrix2of5"); + static final DecodeBarcodeType DutchKIX = + DecodeBarcodeType._internal("DutchKIX"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType MSI = DecodeBarcodeType._internal("MSI"); + static final DecodeBarcodeType EAN13 = DecodeBarcodeType._internal("EAN13"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType OneCode = - DecodeBarcodeType._internal("OneCode"); + static final DecodeBarcodeType EAN14 = DecodeBarcodeType._internal("EAN14"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType OPC = DecodeBarcodeType._internal("OPC"); + static final DecodeBarcodeType EAN8 = DecodeBarcodeType._internal("EAN8"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType PatchCode = - DecodeBarcodeType._internal("PatchCode"); + static final DecodeBarcodeType GS1Aztec = + DecodeBarcodeType._internal("GS1Aztec"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Pdf417 = DecodeBarcodeType._internal("Pdf417"); + static final DecodeBarcodeType GS1Code128 = + DecodeBarcodeType._internal("GS1Code128"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType MicroPdf417 = - DecodeBarcodeType._internal("MicroPdf417"); + static final DecodeBarcodeType GS1CompositeBar = + DecodeBarcodeType._internal("GS1CompositeBar"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Planet = DecodeBarcodeType._internal("Planet"); + static final DecodeBarcodeType GS1DataMatrix = + DecodeBarcodeType._internal("GS1DataMatrix"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Postnet = - DecodeBarcodeType._internal("Postnet"); + static final DecodeBarcodeType GS1DotCode = + DecodeBarcodeType._internal("GS1DotCode"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType PZN = DecodeBarcodeType._internal("PZN"); + static final DecodeBarcodeType GS1HanXin = + DecodeBarcodeType._internal("GS1HanXin"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType QR = DecodeBarcodeType._internal("QR"); + static final DecodeBarcodeType GS1MicroPdf417 = + DecodeBarcodeType._internal("GS1MicroPdf417"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType MicroQR = - DecodeBarcodeType._internal("MicroQR"); + static final DecodeBarcodeType GS1QR = DecodeBarcodeType._internal("GS1QR"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType RM4SCC = DecodeBarcodeType._internal("RM4SCC"); + static final DecodeBarcodeType HanXin = DecodeBarcodeType._internal("HanXin"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType SCC14 = DecodeBarcodeType._internal("SCC14"); + static final DecodeBarcodeType HIBCAztecLIC = + DecodeBarcodeType._internal("HIBCAztecLIC"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType SSCC18 = DecodeBarcodeType._internal("SSCC18"); + static final DecodeBarcodeType HIBCAztecPAS = + DecodeBarcodeType._internal("HIBCAztecPAS"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Standard2of5 = - DecodeBarcodeType._internal("Standard2of5"); + static final DecodeBarcodeType HIBCCode128LIC = + DecodeBarcodeType._internal("HIBCCode128LIC"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Supplement = - DecodeBarcodeType._internal("Supplement"); + static final DecodeBarcodeType HIBCCode128PAS = + DecodeBarcodeType._internal("HIBCCode128PAS"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType UPCA = DecodeBarcodeType._internal("UPCA"); + static final DecodeBarcodeType HIBCCode39LIC = + DecodeBarcodeType._internal("HIBCCode39LIC"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType UPCE = DecodeBarcodeType._internal("UPCE"); + static final DecodeBarcodeType HIBCCode39PAS = + DecodeBarcodeType._internal("HIBCCode39PAS"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType VIN = DecodeBarcodeType._internal("VIN"); + static final DecodeBarcodeType HIBCDataMatrixLIC = + DecodeBarcodeType._internal("HIBCDataMatrixLIC"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Pharmacode = - DecodeBarcodeType._internal("Pharmacode"); + static final DecodeBarcodeType HIBCDataMatrixPAS = + DecodeBarcodeType._internal("HIBCDataMatrixPAS"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType GS1DataMatrix = - DecodeBarcodeType._internal("GS1DataMatrix"); + static final DecodeBarcodeType HIBCQRLIC = + DecodeBarcodeType._internal("HIBCQRLIC"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DatabarOmniDirectional = - DecodeBarcodeType._internal("DatabarOmniDirectional"); + static final DecodeBarcodeType HIBCQRPAS = + DecodeBarcodeType._internal("HIBCQRPAS"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DatabarTruncated = - DecodeBarcodeType._internal("DatabarTruncated"); + static final DecodeBarcodeType IATA2of5 = + DecodeBarcodeType._internal("IATA2of5"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DatabarLimited = - DecodeBarcodeType._internal("DatabarLimited"); + static final DecodeBarcodeType ISBN = DecodeBarcodeType._internal("ISBN"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DatabarExpanded = - DecodeBarcodeType._internal("DatabarExpanded"); + static final DecodeBarcodeType ISMN = DecodeBarcodeType._internal("ISMN"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType SwissPostParcel = - DecodeBarcodeType._internal("SwissPostParcel"); + static final DecodeBarcodeType ISSN = DecodeBarcodeType._internal("ISSN"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType AustralianPosteParcel = - DecodeBarcodeType._internal("AustralianPosteParcel"); + static final DecodeBarcodeType ITF14 = DecodeBarcodeType._internal("ITF14"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Code16K = - DecodeBarcodeType._internal("Code16K"); + static final DecodeBarcodeType ITF6 = DecodeBarcodeType._internal("ITF6"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DatabarStackedOmniDirectional = - DecodeBarcodeType._internal("DatabarStackedOmniDirectional"); + static final DecodeBarcodeType Interleaved2of5 = + DecodeBarcodeType._internal("Interleaved2of5"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DatabarStacked = - DecodeBarcodeType._internal("DatabarStacked"); + static final DecodeBarcodeType ItalianPost25 = + DecodeBarcodeType._internal("ItalianPost25"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DatabarExpandedStacked = - DecodeBarcodeType._internal("DatabarExpandedStacked"); + static final DecodeBarcodeType MacroPdf417 = + DecodeBarcodeType._internal("MacroPdf417"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType CompactPdf417 = - DecodeBarcodeType._internal("CompactPdf417"); + static final DecodeBarcodeType Mailmark = + DecodeBarcodeType._internal("Mailmark"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType GS1QR = DecodeBarcodeType._internal("GS1QR"); + static final DecodeBarcodeType Matrix2of5 = + DecodeBarcodeType._internal("Matrix2of5"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names static final DecodeBarcodeType MaxiCode = DecodeBarcodeType._internal("MaxiCode"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names static final DecodeBarcodeType MicrE13B = DecodeBarcodeType._internal("MicrE13B"); - /// See DecodeType - // ignore: non_constant_identifier_names - static final DecodeBarcodeType Code32 = DecodeBarcodeType._internal("Code32"); - - /// See DecodeType - // ignore: non_constant_identifier_names - static final DecodeBarcodeType DataLogic2of5 = - DecodeBarcodeType._internal("DataLogic2of5"); - - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DotCode = - DecodeBarcodeType._internal("DotCode"); + static final DecodeBarcodeType MicroPdf417 = + DecodeBarcodeType._internal("MicroPdf417"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType DutchKIX = - DecodeBarcodeType._internal("DutchKIX"); + static final DecodeBarcodeType MicroQR = + DecodeBarcodeType._internal("MicroQR"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType CodablockF = - DecodeBarcodeType._internal("CodablockF"); + static final DecodeBarcodeType MSI = DecodeBarcodeType._internal("MSI"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType Mailmark = - DecodeBarcodeType._internal("Mailmark"); + static final DecodeBarcodeType OneCode = + DecodeBarcodeType._internal("OneCode"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType GS1DotCode = - DecodeBarcodeType._internal("GS1DotCode"); + static final DecodeBarcodeType OPC = DecodeBarcodeType._internal("OPC"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCCode39LIC = - DecodeBarcodeType._internal("HIBCCode39LIC"); + static final DecodeBarcodeType PatchCode = + DecodeBarcodeType._internal("PatchCode"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCCode128LIC = - DecodeBarcodeType._internal("HIBCCode128LIC"); + static final DecodeBarcodeType Pdf417 = DecodeBarcodeType._internal("Pdf417"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCAztecLIC = - DecodeBarcodeType._internal("HIBCAztecLIC"); + static final DecodeBarcodeType Pharmacode = + DecodeBarcodeType._internal("Pharmacode"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCDataMatrixLIC = - DecodeBarcodeType._internal("HIBCDataMatrixLIC"); + static final DecodeBarcodeType Planet = DecodeBarcodeType._internal("Planet"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCQRLIC = - DecodeBarcodeType._internal("HIBCQRLIC"); + static final DecodeBarcodeType Postnet = + DecodeBarcodeType._internal("Postnet"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCCode39PAS = - DecodeBarcodeType._internal("HIBCCode39PAS"); + static final DecodeBarcodeType PZN = DecodeBarcodeType._internal("PZN"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCCode128PAS = - DecodeBarcodeType._internal("HIBCCode128PAS"); + static final DecodeBarcodeType RectMicroQR = + DecodeBarcodeType._internal("RectMicroQR"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCAztecPAS = - DecodeBarcodeType._internal("HIBCAztecPAS"); + static final DecodeBarcodeType RM4SCC = DecodeBarcodeType._internal("RM4SCC"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCDataMatrixPAS = - DecodeBarcodeType._internal("HIBCDataMatrixPAS"); + static final DecodeBarcodeType SCC14 = DecodeBarcodeType._internal("SCC14"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HIBCQRPAS = - DecodeBarcodeType._internal("HIBCQRPAS"); + static final DecodeBarcodeType SSCC18 = DecodeBarcodeType._internal("SSCC18"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType HanXin = DecodeBarcodeType._internal("HanXin"); + static final DecodeBarcodeType Standard2of5 = + DecodeBarcodeType._internal("Standard2of5"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType GS1HanXin = - DecodeBarcodeType._internal("GS1HanXin"); + static final DecodeBarcodeType Supplement = + DecodeBarcodeType._internal("Supplement"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType GS1Aztec = - DecodeBarcodeType._internal("GS1Aztec"); + static final DecodeBarcodeType SwissPostParcel = + DecodeBarcodeType._internal("SwissPostParcel"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType GS1CompositeBar = - DecodeBarcodeType._internal("GS1CompositeBar"); + static final DecodeBarcodeType UPCA = DecodeBarcodeType._internal("UPCA"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType GS1MicroPdf417 = - DecodeBarcodeType._internal("GS1MicroPdf417"); + static final DecodeBarcodeType UPCE = DecodeBarcodeType._internal("UPCE"); - /// See DecodeType + /// See Aspose.BarCode.Aspose.BarCode.BarCodeRecognition.DecodeType // ignore: non_constant_identifier_names - static final DecodeBarcodeType mostCommonlyUsed = - DecodeBarcodeType._internal("mostCommonlyUsed"); + static final DecodeBarcodeType VIN = DecodeBarcodeType._internal("VIN"); /// Creates a DecodeBarcodeType instance from a JSON representation. DecodeBarcodeType.fromJson(dynamic data) { switch (data) { - case "all": - case "AustraliaPost": - case "Aztec": - case "ISBN": - case "Codabar": - case "Code11": - case "Code128": - case "GS1Code128": - case "Code39Extended": - case "Code39Standard": - case "Code93Extended": - case "Code93Standard": - case "DataMatrix": - case "DeutschePostIdentcode": - case "DeutschePostLeitcode": - case "EAN13": - case "EAN14": - case "EAN8": - case "IATA2of5": - case "Interleaved2of5": - case "ISSN": - case "ISMN": - case "ItalianPost25": - case "ITF14": - case "ITF6": - case "MacroPdf417": - case "Matrix2of5": - case "MSI": - case "OneCode": - case "OPC": - case "PatchCode": - case "Pdf417": - case "MicroPdf417": - case "Planet": - case "Postnet": - case "PZN": - case "QR": - case "MicroQR": - case "RM4SCC": - case "SCC14": - case "SSCC18": - case "Standard2of5": - case "Supplement": - case "UPCA": - case "UPCE": - case "VIN": - case "Pharmacode": - case "GS1DataMatrix": - case "DatabarOmniDirectional": - case "DatabarTruncated": - case "DatabarLimited": - case "DatabarExpanded": - case "SwissPostParcel": - case "AustralianPosteParcel": - case "Code16K": - case "DatabarStackedOmniDirectional": - case "DatabarStacked": - case "DatabarExpandedStacked": - case "CompactPdf417": - case "GS1QR": - case "MaxiCode": - case "MicrE13B": - case "Code32": - case "DataLogic2of5": - case "DotCode": - case "DutchKIX": - case "CodablockF": - case "Mailmark": - case "GS1DotCode": - case "HIBCCode39LIC": - case "HIBCCode128LIC": - case "HIBCAztecLIC": - case "HIBCDataMatrixLIC": - case "HIBCQRLIC": - case "HIBCCode39PAS": - case "HIBCCode128PAS": - case "HIBCAztecPAS": - case "HIBCDataMatrixPAS": - case "HIBCQRPAS": - case "HanXin": - case "GS1HanXin": - case "GS1Aztec": - case "GS1CompositeBar": - case "GS1MicroPdf417": - case "mostCommonlyUsed": + case 'MostCommonlyUsed': + case 'QR': + case 'AustraliaPost': + case 'AustralianPosteParcel': + case 'Aztec': + case 'Codabar': + case 'CodablockF': + case 'Code11': + case 'Code128': + case 'Code16K': + case 'Code32': + case 'Code39': + case 'Code39FullASCII': + case 'Code93': + case 'CompactPdf417': + case 'DataLogic2of5': + case 'DataMatrix': + case 'DatabarExpanded': + case 'DatabarExpandedStacked': + case 'DatabarLimited': + case 'DatabarOmniDirectional': + case 'DatabarStacked': + case 'DatabarStackedOmniDirectional': + case 'DatabarTruncated': + case 'DeutschePostIdentcode': + case 'DeutschePostLeitcode': + case 'DotCode': + case 'DutchKIX': + case 'EAN13': + case 'EAN14': + case 'EAN8': + case 'GS1Aztec': + case 'GS1Code128': + case 'GS1CompositeBar': + case 'GS1DataMatrix': + case 'GS1DotCode': + case 'GS1HanXin': + case 'GS1MicroPdf417': + case 'GS1QR': + case 'HanXin': + case 'HIBCAztecLIC': + case 'HIBCAztecPAS': + case 'HIBCCode128LIC': + case 'HIBCCode128PAS': + case 'HIBCCode39LIC': + case 'HIBCCode39PAS': + case 'HIBCDataMatrixLIC': + case 'HIBCDataMatrixPAS': + case 'HIBCQRLIC': + case 'HIBCQRPAS': + case 'IATA2of5': + case 'ISBN': + case 'ISMN': + case 'ISSN': + case 'ITF14': + case 'ITF6': + case 'Interleaved2of5': + case 'ItalianPost25': + case 'MacroPdf417': + case 'Mailmark': + case 'Matrix2of5': + case 'MaxiCode': + case 'MicrE13B': + case 'MicroPdf417': + case 'MicroQR': + case 'MSI': + case 'OneCode': + case 'OPC': + case 'PatchCode': + case 'Pdf417': + case 'Pharmacode': + case 'Planet': + case 'Postnet': + case 'PZN': + case 'RectMicroQR': + case 'RM4SCC': + case 'SCC14': + case 'SSCC18': + case 'Standard2of5': + case 'Supplement': + case 'SwissPostParcel': + case 'UPCA': + case 'UPCE': + case 'VIN': _value = data; break; default: diff --git a/lib/src/model/disc_usage.dart b/lib/src/model/disc_usage.dart deleted file mode 100644 index abebd72..0000000 --- a/lib/src/model/disc_usage.dart +++ /dev/null @@ -1,38 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Class for disc space information. -class DiscUsage { - /// Application used disc space. - int? usedSize; - - /// Total disc space. - int? totalSize; - - /// Constructor - DiscUsage(); - - @override - String toString() { - return 'DiscUsage[usedSize=$usedSize, totalSize=$totalSize, ]'; - } - - /// Creates a DiscUsage instance from a JSON representation. - DiscUsage.fromJson(Map json) { - usedSize = json['usedSize']; - totalSize = json['totalSize']; - } - - /// Returns a JSON representation of DiscUsage. - Map toJson() { - return {'UsedSize': usedSize, 'TotalSize': totalSize}; - } - - /// Converts a list of JSON objects to a list of DiscUsage instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of DiscUsage instances. - static List listFromJson(List json) { - return json.map((value) => DiscUsage.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/dot_code_encode_mode.dart b/lib/src/model/dot_code_encode_mode.dart deleted file mode 100644 index 81dd30f..0000000 --- a/lib/src/model/dot_code_encode_mode.dart +++ /dev/null @@ -1,52 +0,0 @@ -/// -/// DotCodeEncodeMode: [Auto, Bytes, ExtendedCodetext] -class DotCodeEncodeMode { - /// The underlying value of DotCodeEncodeMode enum. - late final String _value; - - DotCodeEncodeMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final DotCodeEncodeMode Auto = DotCodeEncodeMode._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final DotCodeEncodeMode Bytes = DotCodeEncodeMode._internal("Bytes"); - - /// - // ignore: non_constant_identifier_names - static final DotCodeEncodeMode ExtendedCodetext = - DotCodeEncodeMode._internal("ExtendedCodetext"); - - /// Creates a DotCodeEncodeMode instance from a JSON representation. - DotCodeEncodeMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Bytes": - case "ExtendedCodetext": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of DotCodeEncodeMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of DotCodeEncodeMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of DotCodeEncodeMode instances. - static List listFromJson(List json) { - return json.map((value) => DotCodeEncodeMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/dot_code_params.dart b/lib/src/model/dot_code_params.dart deleted file mode 100644 index 21dd591..0000000 --- a/lib/src/model/dot_code_params.dart +++ /dev/null @@ -1,62 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// DotCode parameters. -class DotCodeParams { - /// Height/Width ratio of 2D BarCode module. - double? aspectRatio; - - /// Identifies columns count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of columns must be at least 5. - int? columns; - - /// Identifies DotCode encode mode. Default value: Auto. - DotCodeEncodeMode? encodeMode; - - /// Identifies ECI encoding. Used when DotCodeEncodeMode is Auto. Default value: ISO-8859-1. - ECIEncodings? eCIEncoding; - - /// Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader. Default value is false. - bool? isReaderInitialization; - - /// Identifies rows count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of rows must be at least 5. - int? rows; - - /// Constructor - DotCodeParams(); - - @override - String toString() { - return 'DotCodeParams[aspectRatio=$aspectRatio, columns=$columns, encodeMode=$encodeMode, eCIEncoding=$eCIEncoding, isReaderInitialization=$isReaderInitialization, rows=$rows, ]'; - } - - /// Creates a DotCodeParams instance from a JSON representation. - DotCodeParams.fromJson(Map json) { - aspectRatio = json['aspectRatio']?.toDouble(); - columns = json['columns']; - encodeMode = DotCodeEncodeMode.fromJson(json['encodeMode']); - eCIEncoding = ECIEncodings.fromJson(json['eCIEncoding']); - isReaderInitialization = json['isReaderInitialization']; - rows = json['rows']; - } - - /// Returns a JSON representation of DotCodeParams. - Map toJson() { - return { - 'AspectRatio': aspectRatio, - 'Columns': columns, - 'EncodeMode': encodeMode, - 'ECIEncoding': eCIEncoding, - 'IsReaderInitialization': isReaderInitialization, - 'Rows': rows - }; - } - - /// Converts a list of JSON objects to a list of DotCodeParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of DotCodeParams instances. - static List listFromJson(List json) { - return json.map((value) => DotCodeParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/eci_encodings.dart b/lib/src/model/eci_encodings.dart deleted file mode 100644 index 776eef8..0000000 --- a/lib/src/model/eci_encodings.dart +++ /dev/null @@ -1,171 +0,0 @@ -/// -/// ECIEncodings: [NONE, ISO_8859_1, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, Shift_JIS, Win1250, Win1251, Win1252, Win1256, UTF16BE, UTF8, US_ASCII, Big5, GB18030, EUC_KR] -class ECIEncodings { - /// The underlying value of ECIEncodings enum. - late final String _value; - - ECIEncodings._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings NONE = ECIEncodings._internal("NONE"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_1 = ECIEncodings._internal("ISO_8859_1"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_2 = ECIEncodings._internal("ISO_8859_2"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_3 = ECIEncodings._internal("ISO_8859_3"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_4 = ECIEncodings._internal("ISO_8859_4"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_5 = ECIEncodings._internal("ISO_8859_5"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_6 = ECIEncodings._internal("ISO_8859_6"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_7 = ECIEncodings._internal("ISO_8859_7"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_8 = ECIEncodings._internal("ISO_8859_8"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_9 = ECIEncodings._internal("ISO_8859_9"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_10 = ECIEncodings._internal("ISO_8859_10"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_11 = ECIEncodings._internal("ISO_8859_11"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_13 = ECIEncodings._internal("ISO_8859_13"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_14 = ECIEncodings._internal("ISO_8859_14"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_15 = ECIEncodings._internal("ISO_8859_15"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings ISO_8859_16 = ECIEncodings._internal("ISO_8859_16"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings Shift_JIS = ECIEncodings._internal("Shift_JIS"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings Win1250 = ECIEncodings._internal("Win1250"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings Win1251 = ECIEncodings._internal("Win1251"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings Win1252 = ECIEncodings._internal("Win1252"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings Win1256 = ECIEncodings._internal("Win1256"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings UTF16BE = ECIEncodings._internal("UTF16BE"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings UTF8 = ECIEncodings._internal("UTF8"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings US_ASCII = ECIEncodings._internal("US_ASCII"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings Big5 = ECIEncodings._internal("Big5"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings GB18030 = ECIEncodings._internal("GB18030"); - - /// - // ignore: non_constant_identifier_names - static final ECIEncodings EUC_KR = ECIEncodings._internal("EUC_KR"); - - /// Creates a ECIEncodings instance from a JSON representation. - ECIEncodings.fromJson(dynamic data) { - switch (data) { - case "NONE": - case "ISO_8859_1": - case "ISO_8859_2": - case "ISO_8859_3": - case "ISO_8859_4": - case "ISO_8859_5": - case "ISO_8859_6": - case "ISO_8859_7": - case "ISO_8859_8": - case "ISO_8859_9": - case "ISO_8859_10": - case "ISO_8859_11": - case "ISO_8859_13": - case "ISO_8859_14": - case "ISO_8859_15": - case "ISO_8859_16": - case "Shift_JIS": - case "Win1250": - case "Win1251": - case "Win1252": - case "Win1256": - case "UTF16BE": - case "UTF8": - case "US_ASCII": - case "Big5": - case "GB18030": - case "EUC_KR": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of ECIEncodings. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of ECIEncodings instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of ECIEncodings instances. - static List listFromJson(List json) { - return json.map((value) => ECIEncodings.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/enable_checksum.dart b/lib/src/model/enable_checksum.dart deleted file mode 100644 index af472af..0000000 --- a/lib/src/model/enable_checksum.dart +++ /dev/null @@ -1,51 +0,0 @@ -/// -/// EnableChecksum: [Default, Yes, No] -class EnableChecksum { - /// The underlying value of EnableChecksum enum. - late final String _value; - - EnableChecksum._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final EnableChecksum Default = EnableChecksum._internal("Default"); - - /// - // ignore: non_constant_identifier_names - static final EnableChecksum Yes = EnableChecksum._internal("Yes"); - - /// - // ignore: non_constant_identifier_names - static final EnableChecksum No = EnableChecksum._internal("No"); - - /// Creates a EnableChecksum instance from a JSON representation. - EnableChecksum.fromJson(dynamic data) { - switch (data) { - case "Default": - case "Yes": - case "No": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of EnableChecksum. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of EnableChecksum instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of EnableChecksum instances. - static List listFromJson(List json) { - return json.map((value) => EnableChecksum.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/encode_barcode_type.dart b/lib/src/model/encode_barcode_type.dart index d7c950c..28f23d0 100644 --- a/lib/src/model/encode_barcode_type.dart +++ b/lib/src/model/encode_barcode_type.dart @@ -1,421 +1,425 @@ -/// See EncodeTypes -/// EncodeBarcodeType: [Codabar, Code11, Code39Standard, Code39Extended, Code93Standard, Code93Extended, Code128, GS1Code128, EAN8, EAN13, EAN14, SCC14, SSCC18, UPCA, UPCE, ISBN, ISSN, ISMN, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, ITF14, ITF6, MSI, VIN, DeutschePostIdentcode, DeutschePostLeitcode, OPC, PZN, Code16K, Pharmacode, DataMatrix, QR, Aztec, Pdf417, MacroPdf417, AustraliaPost, Postnet, Planet, OneCode, RM4SCC, DatabarOmniDirectional, DatabarTruncated, DatabarLimited, DatabarExpanded, SingaporePost, GS1DataMatrix, AustralianPosteParcel, SwissPostParcel, PatchCode, DatabarExpandedStacked, DatabarStacked, DatabarStackedOmniDirectional, MicroPdf417, GS1QR, MaxiCode, Code32, DataLogic2of5, DotCode, DutchKIX, UpcaGs1Code128Coupon, UpcaGs1DatabarCoupon, CodablockF, GS1CodablockF, Mailmark, GS1DotCode, HanXin, GS1HanXin, GS1Aztec, GS1MicroPdf417] +/// See Aspose.BarCode.Generation.EncodeTypes +/// EncodeBarcodeType: [QR, AustraliaPost, AustralianPosteParcel, Aztec, Codabar, CodablockF, Code11, Code128, Code16K, Code32, Code39, Code39FullASCII, Code93, DataLogic2of5, DataMatrix, DatabarExpanded, DatabarExpandedStacked, DatabarLimited, DatabarOmniDirectional, DatabarStacked, DatabarStackedOmniDirectional, DatabarTruncated, DeutschePostIdentcode, DeutschePostLeitcode, DotCode, DutchKIX, EAN13, EAN14, EAN8, GS1Aztec, GS1CodablockF, GS1Code128, GS1DataMatrix, GS1DotCode, GS1HanXin, GS1MicroPdf417, GS1QR, HanXin, IATA2of5, ISBN, ISMN, ISSN, ITF14, ITF6, Interleaved2of5, ItalianPost25, MSI, MacroPdf417, Mailmark, Matrix2of5, MaxiCode, MicroPdf417, MicroQR, OPC, OneCode, PZN, PatchCode, Pdf417, Pharmacode, Planet, Postnet, RM4SCC, RectMicroQR, SCC14, SSCC18, SingaporePost, Standard2of5, SwissPostParcel, UPCA, UPCE, UpcaGs1Code128Coupon, UpcaGs1DatabarCoupon, VIN] class EncodeBarcodeType { /// The underlying value of EncodeBarcodeType enum. late final String _value; EncodeBarcodeType._internal(this._value); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Codabar = - EncodeBarcodeType._internal("Codabar"); + static final EncodeBarcodeType QR = EncodeBarcodeType._internal("QR"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Code11 = EncodeBarcodeType._internal("Code11"); + static final EncodeBarcodeType AustraliaPost = + EncodeBarcodeType._internal("AustraliaPost"); + + /// See Aspose.BarCode.Generation.EncodeTypes + // ignore: non_constant_identifier_names + static final EncodeBarcodeType AustralianPosteParcel = + EncodeBarcodeType._internal("AustralianPosteParcel"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Code39Standard = - EncodeBarcodeType._internal("Code39Standard"); + static final EncodeBarcodeType Aztec = EncodeBarcodeType._internal("Aztec"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Code39Extended = - EncodeBarcodeType._internal("Code39Extended"); + static final EncodeBarcodeType Codabar = + EncodeBarcodeType._internal("Codabar"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Code93Standard = - EncodeBarcodeType._internal("Code93Standard"); + static final EncodeBarcodeType CodablockF = + EncodeBarcodeType._internal("CodablockF"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Code93Extended = - EncodeBarcodeType._internal("Code93Extended"); + static final EncodeBarcodeType Code11 = EncodeBarcodeType._internal("Code11"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names static final EncodeBarcodeType Code128 = EncodeBarcodeType._internal("Code128"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType GS1Code128 = - EncodeBarcodeType._internal("GS1Code128"); + static final EncodeBarcodeType Code16K = + EncodeBarcodeType._internal("Code16K"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType EAN8 = EncodeBarcodeType._internal("EAN8"); + static final EncodeBarcodeType Code32 = EncodeBarcodeType._internal("Code32"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType EAN13 = EncodeBarcodeType._internal("EAN13"); + static final EncodeBarcodeType Code39 = EncodeBarcodeType._internal("Code39"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType EAN14 = EncodeBarcodeType._internal("EAN14"); + static final EncodeBarcodeType Code39FullASCII = + EncodeBarcodeType._internal("Code39FullASCII"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType SCC14 = EncodeBarcodeType._internal("SCC14"); + static final EncodeBarcodeType Code93 = EncodeBarcodeType._internal("Code93"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType SSCC18 = EncodeBarcodeType._internal("SSCC18"); + static final EncodeBarcodeType DataLogic2of5 = + EncodeBarcodeType._internal("DataLogic2of5"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType UPCA = EncodeBarcodeType._internal("UPCA"); + static final EncodeBarcodeType DataMatrix = + EncodeBarcodeType._internal("DataMatrix"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType UPCE = EncodeBarcodeType._internal("UPCE"); + static final EncodeBarcodeType DatabarExpanded = + EncodeBarcodeType._internal("DatabarExpanded"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType ISBN = EncodeBarcodeType._internal("ISBN"); + static final EncodeBarcodeType DatabarExpandedStacked = + EncodeBarcodeType._internal("DatabarExpandedStacked"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType ISSN = EncodeBarcodeType._internal("ISSN"); + static final EncodeBarcodeType DatabarLimited = + EncodeBarcodeType._internal("DatabarLimited"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType ISMN = EncodeBarcodeType._internal("ISMN"); + static final EncodeBarcodeType DatabarOmniDirectional = + EncodeBarcodeType._internal("DatabarOmniDirectional"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Standard2of5 = - EncodeBarcodeType._internal("Standard2of5"); + static final EncodeBarcodeType DatabarStacked = + EncodeBarcodeType._internal("DatabarStacked"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Interleaved2of5 = - EncodeBarcodeType._internal("Interleaved2of5"); + static final EncodeBarcodeType DatabarStackedOmniDirectional = + EncodeBarcodeType._internal("DatabarStackedOmniDirectional"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Matrix2of5 = - EncodeBarcodeType._internal("Matrix2of5"); + static final EncodeBarcodeType DatabarTruncated = + EncodeBarcodeType._internal("DatabarTruncated"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType ItalianPost25 = - EncodeBarcodeType._internal("ItalianPost25"); + static final EncodeBarcodeType DeutschePostIdentcode = + EncodeBarcodeType._internal("DeutschePostIdentcode"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType IATA2of5 = - EncodeBarcodeType._internal("IATA2of5"); + static final EncodeBarcodeType DeutschePostLeitcode = + EncodeBarcodeType._internal("DeutschePostLeitcode"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType ITF14 = EncodeBarcodeType._internal("ITF14"); + static final EncodeBarcodeType DotCode = + EncodeBarcodeType._internal("DotCode"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType ITF6 = EncodeBarcodeType._internal("ITF6"); + static final EncodeBarcodeType DutchKIX = + EncodeBarcodeType._internal("DutchKIX"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType MSI = EncodeBarcodeType._internal("MSI"); + static final EncodeBarcodeType EAN13 = EncodeBarcodeType._internal("EAN13"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType VIN = EncodeBarcodeType._internal("VIN"); + static final EncodeBarcodeType EAN14 = EncodeBarcodeType._internal("EAN14"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DeutschePostIdentcode = - EncodeBarcodeType._internal("DeutschePostIdentcode"); + static final EncodeBarcodeType EAN8 = EncodeBarcodeType._internal("EAN8"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DeutschePostLeitcode = - EncodeBarcodeType._internal("DeutschePostLeitcode"); + static final EncodeBarcodeType GS1Aztec = + EncodeBarcodeType._internal("GS1Aztec"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType OPC = EncodeBarcodeType._internal("OPC"); + static final EncodeBarcodeType GS1CodablockF = + EncodeBarcodeType._internal("GS1CodablockF"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType PZN = EncodeBarcodeType._internal("PZN"); + static final EncodeBarcodeType GS1Code128 = + EncodeBarcodeType._internal("GS1Code128"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Code16K = - EncodeBarcodeType._internal("Code16K"); + static final EncodeBarcodeType GS1DataMatrix = + EncodeBarcodeType._internal("GS1DataMatrix"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Pharmacode = - EncodeBarcodeType._internal("Pharmacode"); + static final EncodeBarcodeType GS1DotCode = + EncodeBarcodeType._internal("GS1DotCode"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DataMatrix = - EncodeBarcodeType._internal("DataMatrix"); + static final EncodeBarcodeType GS1HanXin = + EncodeBarcodeType._internal("GS1HanXin"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType QR = EncodeBarcodeType._internal("QR"); + static final EncodeBarcodeType GS1MicroPdf417 = + EncodeBarcodeType._internal("GS1MicroPdf417"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Aztec = EncodeBarcodeType._internal("Aztec"); + static final EncodeBarcodeType GS1QR = EncodeBarcodeType._internal("GS1QR"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Pdf417 = EncodeBarcodeType._internal("Pdf417"); + static final EncodeBarcodeType HanXin = EncodeBarcodeType._internal("HanXin"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType MacroPdf417 = - EncodeBarcodeType._internal("MacroPdf417"); + static final EncodeBarcodeType IATA2of5 = + EncodeBarcodeType._internal("IATA2of5"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType AustraliaPost = - EncodeBarcodeType._internal("AustraliaPost"); + static final EncodeBarcodeType ISBN = EncodeBarcodeType._internal("ISBN"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Postnet = - EncodeBarcodeType._internal("Postnet"); + static final EncodeBarcodeType ISMN = EncodeBarcodeType._internal("ISMN"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Planet = EncodeBarcodeType._internal("Planet"); + static final EncodeBarcodeType ISSN = EncodeBarcodeType._internal("ISSN"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType OneCode = - EncodeBarcodeType._internal("OneCode"); + static final EncodeBarcodeType ITF14 = EncodeBarcodeType._internal("ITF14"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType RM4SCC = EncodeBarcodeType._internal("RM4SCC"); + static final EncodeBarcodeType ITF6 = EncodeBarcodeType._internal("ITF6"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DatabarOmniDirectional = - EncodeBarcodeType._internal("DatabarOmniDirectional"); + static final EncodeBarcodeType Interleaved2of5 = + EncodeBarcodeType._internal("Interleaved2of5"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DatabarTruncated = - EncodeBarcodeType._internal("DatabarTruncated"); + static final EncodeBarcodeType ItalianPost25 = + EncodeBarcodeType._internal("ItalianPost25"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DatabarLimited = - EncodeBarcodeType._internal("DatabarLimited"); + static final EncodeBarcodeType MSI = EncodeBarcodeType._internal("MSI"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DatabarExpanded = - EncodeBarcodeType._internal("DatabarExpanded"); + static final EncodeBarcodeType MacroPdf417 = + EncodeBarcodeType._internal("MacroPdf417"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType SingaporePost = - EncodeBarcodeType._internal("SingaporePost"); + static final EncodeBarcodeType Mailmark = + EncodeBarcodeType._internal("Mailmark"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType GS1DataMatrix = - EncodeBarcodeType._internal("GS1DataMatrix"); + static final EncodeBarcodeType Matrix2of5 = + EncodeBarcodeType._internal("Matrix2of5"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType AustralianPosteParcel = - EncodeBarcodeType._internal("AustralianPosteParcel"); + static final EncodeBarcodeType MaxiCode = + EncodeBarcodeType._internal("MaxiCode"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType SwissPostParcel = - EncodeBarcodeType._internal("SwissPostParcel"); + static final EncodeBarcodeType MicroPdf417 = + EncodeBarcodeType._internal("MicroPdf417"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType PatchCode = - EncodeBarcodeType._internal("PatchCode"); + static final EncodeBarcodeType MicroQR = + EncodeBarcodeType._internal("MicroQR"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DatabarExpandedStacked = - EncodeBarcodeType._internal("DatabarExpandedStacked"); + static final EncodeBarcodeType OPC = EncodeBarcodeType._internal("OPC"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DatabarStacked = - EncodeBarcodeType._internal("DatabarStacked"); + static final EncodeBarcodeType OneCode = + EncodeBarcodeType._internal("OneCode"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DatabarStackedOmniDirectional = - EncodeBarcodeType._internal("DatabarStackedOmniDirectional"); + static final EncodeBarcodeType PZN = EncodeBarcodeType._internal("PZN"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType MicroPdf417 = - EncodeBarcodeType._internal("MicroPdf417"); + static final EncodeBarcodeType PatchCode = + EncodeBarcodeType._internal("PatchCode"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType GS1QR = EncodeBarcodeType._internal("GS1QR"); + static final EncodeBarcodeType Pdf417 = EncodeBarcodeType._internal("Pdf417"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType MaxiCode = - EncodeBarcodeType._internal("MaxiCode"); + static final EncodeBarcodeType Pharmacode = + EncodeBarcodeType._internal("Pharmacode"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Code32 = EncodeBarcodeType._internal("Code32"); + static final EncodeBarcodeType Planet = EncodeBarcodeType._internal("Planet"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DataLogic2of5 = - EncodeBarcodeType._internal("DataLogic2of5"); + static final EncodeBarcodeType Postnet = + EncodeBarcodeType._internal("Postnet"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DotCode = - EncodeBarcodeType._internal("DotCode"); + static final EncodeBarcodeType RM4SCC = EncodeBarcodeType._internal("RM4SCC"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType DutchKIX = - EncodeBarcodeType._internal("DutchKIX"); + static final EncodeBarcodeType RectMicroQR = + EncodeBarcodeType._internal("RectMicroQR"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType UpcaGs1Code128Coupon = - EncodeBarcodeType._internal("UpcaGs1Code128Coupon"); + static final EncodeBarcodeType SCC14 = EncodeBarcodeType._internal("SCC14"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType UpcaGs1DatabarCoupon = - EncodeBarcodeType._internal("UpcaGs1DatabarCoupon"); + static final EncodeBarcodeType SSCC18 = EncodeBarcodeType._internal("SSCC18"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType CodablockF = - EncodeBarcodeType._internal("CodablockF"); + static final EncodeBarcodeType SingaporePost = + EncodeBarcodeType._internal("SingaporePost"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType GS1CodablockF = - EncodeBarcodeType._internal("GS1CodablockF"); + static final EncodeBarcodeType Standard2of5 = + EncodeBarcodeType._internal("Standard2of5"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType Mailmark = - EncodeBarcodeType._internal("Mailmark"); + static final EncodeBarcodeType SwissPostParcel = + EncodeBarcodeType._internal("SwissPostParcel"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType GS1DotCode = - EncodeBarcodeType._internal("GS1DotCode"); + static final EncodeBarcodeType UPCA = EncodeBarcodeType._internal("UPCA"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType HanXin = EncodeBarcodeType._internal("HanXin"); + static final EncodeBarcodeType UPCE = EncodeBarcodeType._internal("UPCE"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType GS1HanXin = - EncodeBarcodeType._internal("GS1HanXin"); + static final EncodeBarcodeType UpcaGs1Code128Coupon = + EncodeBarcodeType._internal("UpcaGs1Code128Coupon"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType GS1Aztec = - EncodeBarcodeType._internal("GS1Aztec"); + static final EncodeBarcodeType UpcaGs1DatabarCoupon = + EncodeBarcodeType._internal("UpcaGs1DatabarCoupon"); - /// See EncodeTypes + /// See Aspose.BarCode.Generation.EncodeTypes // ignore: non_constant_identifier_names - static final EncodeBarcodeType GS1MicroPdf417 = - EncodeBarcodeType._internal("GS1MicroPdf417"); + static final EncodeBarcodeType VIN = EncodeBarcodeType._internal("VIN"); /// Creates a EncodeBarcodeType instance from a JSON representation. EncodeBarcodeType.fromJson(dynamic data) { switch (data) { - case "Codabar": - case "Code11": - case "Code39Standard": - case "Code39Extended": - case "Code93Standard": - case "Code93Extended": - case "Code128": - case "GS1Code128": - case "EAN8": - case "EAN13": - case "EAN14": - case "SCC14": - case "SSCC18": - case "UPCA": - case "UPCE": - case "ISBN": - case "ISSN": - case "ISMN": - case "Standard2of5": - case "Interleaved2of5": - case "Matrix2of5": - case "ItalianPost25": - case "IATA2of5": - case "ITF14": - case "ITF6": - case "MSI": - case "VIN": - case "DeutschePostIdentcode": - case "DeutschePostLeitcode": - case "OPC": - case "PZN": - case "Code16K": - case "Pharmacode": - case "DataMatrix": - case "QR": - case "Aztec": - case "Pdf417": - case "MacroPdf417": - case "AustraliaPost": - case "Postnet": - case "Planet": - case "OneCode": - case "RM4SCC": - case "DatabarOmniDirectional": - case "DatabarTruncated": - case "DatabarLimited": - case "DatabarExpanded": - case "SingaporePost": - case "GS1DataMatrix": - case "AustralianPosteParcel": - case "SwissPostParcel": - case "PatchCode": - case "DatabarExpandedStacked": - case "DatabarStacked": - case "DatabarStackedOmniDirectional": - case "MicroPdf417": - case "GS1QR": - case "MaxiCode": - case "Code32": - case "DataLogic2of5": - case "DotCode": - case "DutchKIX": - case "UpcaGs1Code128Coupon": - case "UpcaGs1DatabarCoupon": - case "CodablockF": - case "GS1CodablockF": - case "Mailmark": - case "GS1DotCode": - case "HanXin": - case "GS1HanXin": - case "GS1Aztec": - case "GS1MicroPdf417": + case 'QR': + case 'AustraliaPost': + case 'AustralianPosteParcel': + case 'Aztec': + case 'Codabar': + case 'CodablockF': + case 'Code11': + case 'Code128': + case 'Code16K': + case 'Code32': + case 'Code39': + case 'Code39FullASCII': + case 'Code93': + case 'DataLogic2of5': + case 'DataMatrix': + case 'DatabarExpanded': + case 'DatabarExpandedStacked': + case 'DatabarLimited': + case 'DatabarOmniDirectional': + case 'DatabarStacked': + case 'DatabarStackedOmniDirectional': + case 'DatabarTruncated': + case 'DeutschePostIdentcode': + case 'DeutschePostLeitcode': + case 'DotCode': + case 'DutchKIX': + case 'EAN13': + case 'EAN14': + case 'EAN8': + case 'GS1Aztec': + case 'GS1CodablockF': + case 'GS1Code128': + case 'GS1DataMatrix': + case 'GS1DotCode': + case 'GS1HanXin': + case 'GS1MicroPdf417': + case 'GS1QR': + case 'HanXin': + case 'IATA2of5': + case 'ISBN': + case 'ISMN': + case 'ISSN': + case 'ITF14': + case 'ITF6': + case 'Interleaved2of5': + case 'ItalianPost25': + case 'MSI': + case 'MacroPdf417': + case 'Mailmark': + case 'Matrix2of5': + case 'MaxiCode': + case 'MicroPdf417': + case 'MicroQR': + case 'OPC': + case 'OneCode': + case 'PZN': + case 'PatchCode': + case 'Pdf417': + case 'Pharmacode': + case 'Planet': + case 'Postnet': + case 'RM4SCC': + case 'RectMicroQR': + case 'SCC14': + case 'SSCC18': + case 'SingaporePost': + case 'Standard2of5': + case 'SwissPostParcel': + case 'UPCA': + case 'UPCE': + case 'UpcaGs1Code128Coupon': + case 'UpcaGs1DatabarCoupon': + case 'VIN': _value = data; break; default: diff --git a/lib/src/model/encode_data.dart b/lib/src/model/encode_data.dart new file mode 100644 index 0000000..6b1afc6 --- /dev/null +++ b/lib/src/model/encode_data.dart @@ -0,0 +1,43 @@ +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: deprecated_member_use_from_same_package +import '../../aspose_barcode_cloud.dart'; + +/// Data to encode in barcode +class EncodeData { + /// dataType + //enum dataTypeEnum { StringData, Base64Bytes, HexBytes, }; + EncodeDataType? dataType; + + /// String represents data to encode + + late String data; + + /// Constructor + EncodeData(this.data, [this.dataType]); + + @override + String toString() { + return 'EncodeData[dataType=$dataType, data=$data, ]'; + } + + /// Creates a EncodeData instance from a JSON representation. + EncodeData.fromJson(Map json) { + dataType = json['dataType'] == null + ? null + : EncodeDataType.fromJson(json['dataType']); + data = json['data']; + } + + /// Returns a JSON representation of EncodeData. + Map toJson() { + return {'dataType': dataType, 'data': data}; + } + + /// Converts a list of JSON objects to a list of EncodeData instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of EncodeData instances. + static List listFromJson(List json) { + return json.map((value) => EncodeData.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/encode_data_type.dart b/lib/src/model/encode_data_type.dart new file mode 100644 index 0000000..5870b7d --- /dev/null +++ b/lib/src/model/encode_data_type.dart @@ -0,0 +1,53 @@ +/// Types of data can be encoded to barcode +/// EncodeDataType: [StringData, Base64Bytes, HexBytes] +class EncodeDataType { + /// The underlying value of EncodeDataType enum. + late final String _value; + + EncodeDataType._internal(this._value); + + /// Types of data can be encoded to barcode + // ignore: non_constant_identifier_names + static final EncodeDataType StringData = + EncodeDataType._internal("StringData"); + + /// Types of data can be encoded to barcode + // ignore: non_constant_identifier_names + static final EncodeDataType Base64Bytes = + EncodeDataType._internal("Base64Bytes"); + + /// Types of data can be encoded to barcode + // ignore: non_constant_identifier_names + static final EncodeDataType HexBytes = EncodeDataType._internal("HexBytes"); + + /// Creates a EncodeDataType instance from a JSON representation. + EncodeDataType.fromJson(dynamic data) { + switch (data) { + case 'StringData': + case 'Base64Bytes': + case 'HexBytes': + _value = data; + break; + default: + throw Exception('Unknown enum value to decode: $data'); + } + } + + /// Returns a JSON representation of EncodeDataType. + String? toJson() { + return _value; + } + + @override + String toString() { + return _value.toString(); + } + + /// Converts a list of JSON objects to a list of EncodeDataType instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of EncodeDataType instances. + static List listFromJson(List json) { + return json.map((value) => EncodeDataType.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/error.dart b/lib/src/model/error.dart deleted file mode 100644 index 0a7044e..0000000 --- a/lib/src/model/error.dart +++ /dev/null @@ -1,52 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Error -class Error { - /// Code - String? code; - - /// Message - String? message; - - /// Description - String? description; - - /// Inner Error - ErrorDetails? innerError; - - /// Constructor - Error(); - - @override - String toString() { - return 'Error[code=$code, message=$message, description=$description, innerError=$innerError, ]'; - } - - /// Creates a Error instance from a JSON representation. - Error.fromJson(Map json) { - code = json['code']; - message = json['message']; - description = json['description']; - innerError = ErrorDetails.fromJson(json['innerError']); - } - - /// Returns a JSON representation of Error. - Map toJson() { - return { - 'Code': code, - 'Message': message, - 'Description': description, - 'InnerError': innerError - }; - } - - /// Converts a list of JSON objects to a list of Error instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Error instances. - static List listFromJson(List json) { - return json.map((value) => Error.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/error_details.dart b/lib/src/model/error_details.dart deleted file mode 100644 index a5b8640..0000000 --- a/lib/src/model/error_details.dart +++ /dev/null @@ -1,41 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// The error details -class ErrorDetails { - /// The request id - String? requestId; - - /// Date - DateTime? date; - - /// Constructor - ErrorDetails(); - - @override - String toString() { - return 'ErrorDetails[requestId=$requestId, date=$date, ]'; - } - - /// Creates a ErrorDetails instance from a JSON representation. - ErrorDetails.fromJson(Map json) { - requestId = json['requestId']; - date = json['date'] == null ? null : DateTime.parse(json['date']); - } - - /// Returns a JSON representation of ErrorDetails. - Map toJson() { - return { - 'RequestId': requestId, - 'Date': date == null ? '' : date!.toUtc().toIso8601String() - }; - } - - /// Converts a list of JSON objects to a list of ErrorDetails instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of ErrorDetails instances. - static List listFromJson(List json) { - return json.map((value) => ErrorDetails.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/file_version.dart b/lib/src/model/file_version.dart deleted file mode 100644 index 0c7e101..0000000 --- a/lib/src/model/file_version.dart +++ /dev/null @@ -1,69 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// FileVersion -class FileVersion { - /// File or folder name. - String? name; - - /// True if it is a folder. - bool? isFolder; - - /// File or folder last modified DateTime. - DateTime? modifiedDate; - - /// File or folder size. - int? size; - - /// File or folder path. - String? path; - - /// File Version ID. - String? versionId; - - /// Specifies whether the file is (true) or is not (false) the latest version of an file. - bool? isLatest; - - /// Constructor - FileVersion(); - - @override - String toString() { - return 'FileVersion[name=$name, isFolder=$isFolder, modifiedDate=$modifiedDate, size=$size, path=$path, versionId=$versionId, isLatest=$isLatest, ]'; - } - - /// Creates a FileVersion instance from a JSON representation. - FileVersion.fromJson(Map json) { - name = json['name']; - isFolder = json['isFolder']; - modifiedDate = json['modifiedDate'] == null - ? null - : DateTime.parse(json['modifiedDate']); - size = json['size']; - path = json['path']; - versionId = json['versionId']; - isLatest = json['isLatest']; - } - - /// Returns a JSON representation of FileVersion. - Map toJson() { - return { - 'Name': name, - 'IsFolder': isFolder, - 'ModifiedDate': - modifiedDate == null ? '' : modifiedDate!.toUtc().toIso8601String(), - 'Size': size, - 'Path': path, - 'VersionId': versionId, - 'IsLatest': isLatest - }; - } - - /// Converts a list of JSON objects to a list of FileVersion instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of FileVersion instances. - static List listFromJson(List json) { - return json.map((value) => FileVersion.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/file_versions.dart b/lib/src/model/file_versions.dart deleted file mode 100644 index 16e3dde..0000000 --- a/lib/src/model/file_versions.dart +++ /dev/null @@ -1,35 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// File versions FileVersion. -class FileVersions { - /// File versions FileVersion. - List? value = []; - - /// Constructor - FileVersions(); - - @override - String toString() { - return 'FileVersions[value=$value, ]'; - } - - /// Creates a FileVersions instance from a JSON representation. - FileVersions.fromJson(Map json) { - value = FileVersion.listFromJson(json['value']); - } - - /// Returns a JSON representation of FileVersions. - Map toJson() { - return {'Value': value}; - } - - /// Converts a list of JSON objects to a list of FileVersions instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of FileVersions instances. - static List listFromJson(List json) { - return json.map((value) => FileVersions.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/files_list.dart b/lib/src/model/files_list.dart deleted file mode 100644 index a87e400..0000000 --- a/lib/src/model/files_list.dart +++ /dev/null @@ -1,35 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Files list -class FilesList { - /// Files and folders contained by folder StorageFile. - List? value = []; - - /// Constructor - FilesList(); - - @override - String toString() { - return 'FilesList[value=$value, ]'; - } - - /// Creates a FilesList instance from a JSON representation. - FilesList.fromJson(Map json) { - value = StorageFile.listFromJson(json['value']); - } - - /// Returns a JSON representation of FilesList. - Map toJson() { - return {'Value': value}; - } - - /// Converts a list of JSON objects to a list of FilesList instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of FilesList instances. - static List listFromJson(List json) { - return json.map((value) => FilesList.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/files_upload_result.dart b/lib/src/model/files_upload_result.dart deleted file mode 100644 index 4105a25..0000000 --- a/lib/src/model/files_upload_result.dart +++ /dev/null @@ -1,40 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// File upload result -class FilesUploadResult { - /// List of uploaded file names - List? uploaded = []; - - /// List of errors. - List? errors = []; - - /// Constructor - FilesUploadResult(); - - @override - String toString() { - return 'FilesUploadResult[uploaded=$uploaded, errors=$errors, ]'; - } - - /// Creates a FilesUploadResult instance from a JSON representation. - FilesUploadResult.fromJson(Map json) { - uploaded = - (json['uploaded'] as List).map((item) => item as String).toList(); - errors = Error.listFromJson(json['errors']); - } - - /// Returns a JSON representation of FilesUploadResult. - Map toJson() { - return {'Uploaded': uploaded, 'Errors': errors}; - } - - /// Converts a list of JSON objects to a list of FilesUploadResult instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of FilesUploadResult instances. - static List listFromJson(List json) { - return json.map((value) => FilesUploadResult.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/font_mode.dart b/lib/src/model/font_mode.dart deleted file mode 100644 index e12a069..0000000 --- a/lib/src/model/font_mode.dart +++ /dev/null @@ -1,46 +0,0 @@ -/// -/// FontMode: [Auto, Manual] -class FontMode { - /// The underlying value of FontMode enum. - late final String _value; - - FontMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final FontMode Auto = FontMode._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final FontMode Manual = FontMode._internal("Manual"); - - /// Creates a FontMode instance from a JSON representation. - FontMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Manual": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of FontMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of FontMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of FontMode instances. - static List listFromJson(List json) { - return json.map((value) => FontMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/font_params.dart b/lib/src/model/font_params.dart deleted file mode 100644 index a0eb8c3..0000000 --- a/lib/src/model/font_params.dart +++ /dev/null @@ -1,43 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Font. -class FontParams { - /// Font family. - String? family; - - /// Font size in units. - double? size; - - /// Font style. - FontStyle? style; - - /// Constructor - FontParams(); - - @override - String toString() { - return 'FontParams[family=$family, size=$size, style=$style, ]'; - } - - /// Creates a FontParams instance from a JSON representation. - FontParams.fromJson(Map json) { - family = json['family']; - size = json['size']?.toDouble(); - style = FontStyle.fromJson(json['style']); - } - - /// Returns a JSON representation of FontParams. - Map toJson() { - return {'Family': family, 'Size': size, 'Style': style}; - } - - /// Converts a list of JSON objects to a list of FontParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of FontParams instances. - static List listFromJson(List json) { - return json.map((value) => FontParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/font_style.dart b/lib/src/model/font_style.dart deleted file mode 100644 index 3745e16..0000000 --- a/lib/src/model/font_style.dart +++ /dev/null @@ -1,61 +0,0 @@ -/// -/// FontStyle: [Regular, Bold, Italic, Underline, Strikeout] -class FontStyle { - /// The underlying value of FontStyle enum. - late final String _value; - - FontStyle._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final FontStyle Regular = FontStyle._internal("Regular"); - - /// - // ignore: non_constant_identifier_names - static final FontStyle Bold = FontStyle._internal("Bold"); - - /// - // ignore: non_constant_identifier_names - static final FontStyle Italic = FontStyle._internal("Italic"); - - /// - // ignore: non_constant_identifier_names - static final FontStyle Underline = FontStyle._internal("Underline"); - - /// - // ignore: non_constant_identifier_names - static final FontStyle Strikeout = FontStyle._internal("Strikeout"); - - /// Creates a FontStyle instance from a JSON representation. - FontStyle.fromJson(dynamic data) { - switch (data) { - case "Regular": - case "Bold": - case "Italic": - case "Underline": - case "Strikeout": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of FontStyle. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of FontStyle instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of FontStyle instances. - static List listFromJson(List json) { - return json.map((value) => FontStyle.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/generate_params.dart b/lib/src/model/generate_params.dart new file mode 100644 index 0000000..34633a8 --- /dev/null +++ b/lib/src/model/generate_params.dart @@ -0,0 +1,52 @@ +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: deprecated_member_use_from_same_package +import '../../aspose_barcode_cloud.dart'; + +/// Barcode generation parameters +class GenerateParams { + /// barcodeType + //enum barcodeTypeEnum { QR, AustraliaPost, AustralianPosteParcel, Aztec, Codabar, CodablockF, Code11, Code128, Code16K, Code32, Code39, Code39FullASCII, Code93, DataLogic2of5, DataMatrix, DatabarExpanded, DatabarExpandedStacked, DatabarLimited, DatabarOmniDirectional, DatabarStacked, DatabarStackedOmniDirectional, DatabarTruncated, DeutschePostIdentcode, DeutschePostLeitcode, DotCode, DutchKIX, EAN13, EAN14, EAN8, GS1Aztec, GS1CodablockF, GS1Code128, GS1DataMatrix, GS1DotCode, GS1HanXin, GS1MicroPdf417, GS1QR, HanXin, IATA2of5, ISBN, ISMN, ISSN, ITF14, ITF6, Interleaved2of5, ItalianPost25, MSI, MacroPdf417, Mailmark, Matrix2of5, MaxiCode, MicroPdf417, MicroQR, OPC, OneCode, PZN, PatchCode, Pdf417, Pharmacode, Planet, Postnet, RM4SCC, RectMicroQR, SCC14, SSCC18, SingaporePost, Standard2of5, SwissPostParcel, UPCA, UPCE, UpcaGs1Code128Coupon, UpcaGs1DatabarCoupon, VIN, }; + late EncodeBarcodeType barcodeType; + + /// encodeData + + late EncodeData encodeData; + + /// barcodeImageParams + + BarcodeImageParams? barcodeImageParams; + + /// Constructor + GenerateParams(this.barcodeType, this.encodeData, [this.barcodeImageParams]); + + @override + String toString() { + return 'GenerateParams[barcodeType=$barcodeType, encodeData=$encodeData, barcodeImageParams=$barcodeImageParams, ]'; + } + + /// Creates a GenerateParams instance from a JSON representation. + GenerateParams.fromJson(Map json) { + barcodeType = EncodeBarcodeType.fromJson(json['barcodeType']); + encodeData = EncodeData.fromJson(json['encodeData']); + barcodeImageParams = json['barcodeImageParams'] == null + ? null + : BarcodeImageParams.fromJson(json['barcodeImageParams']); + } + + /// Returns a JSON representation of GenerateParams. + Map toJson() { + return { + 'barcodeType': barcodeType, + 'encodeData': encodeData, + 'barcodeImageParams': barcodeImageParams + }; + } + + /// Converts a list of JSON objects to a list of GenerateParams instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of GenerateParams instances. + static List listFromJson(List json) { + return json.map((value) => GenerateParams.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/generator_params.dart b/lib/src/model/generator_params.dart deleted file mode 100644 index 2c10b61..0000000 --- a/lib/src/model/generator_params.dart +++ /dev/null @@ -1,312 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Represents extended BarcodeGenerator params. -class GeneratorParams { - /// Type of barcode to generate. - EncodeBarcodeType? typeOfBarcode; - - /// Text to encode. - String? text; - - /// Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode - String? twoDDisplayText; - - /// Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below. - CodeLocation? textLocation; - - /// Text alignment. - TextAlignment? textAlignment; - - /// Specify the displaying CodeText's Color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF - String? textColor; - - /// Specify the displaying Text's font. Default value: Arial 5pt regular. Ignored if FontSizeMode is set to FontSizeMode.Auto. - FontParams? font; - - /// Specify FontSizeMode. If FontSizeMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontSizeMode.Auto especially in AutoSizeMode.Nearest or AutoSizeMode.Interpolation. Default value: FontSizeMode.Auto. - FontMode? fontSizeMode; - - /// Specify word wraps (line breaks) within text. Default value: false. - bool? noWrap; - - /// Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. - double? resolution; - - /// DEPRECATED: Use 'Resolution' instead. - double? resolutionX; - - /// DEPRECATED: Use 'Resolution' instead. - double? resolutionY; - - /// The smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. - double? dimensionX; - - /// Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon. - double? textSpace; - - /// Common Units for all measuring in query. Default units: pixel. - AvailableGraphicsUnit? units; - - /// Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.None. - AutoSizeMode? sizeMode; - - /// Height of the barcode in given units. Default units: pixel. - double? barHeight; - - /// Height of the barcode image in given units. Default units: pixel. - double? imageHeight; - - /// Width of the barcode image in given units. Default units: pixel. - double? imageWidth; - - /// BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0. - double? rotationAngle; - - /// Barcode paddings. Default value: 5pt 5pt 5pt 5pt. - Padding? padding; - - /// Additional caption above barcode. - CaptionParams? captionAbove; - - /// Additional caption below barcode. - CaptionParams? captionBelow; - - /// Background color of the barcode image. Default value: white. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF - String? backColor; - - /// Bars color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF - String? barColor; - - /// Border color. Default value: black. Use named colors like: red, green, blue Or HTML colors like: #FF0000, #00FF00, #0000FF - String? borderColor; - - /// Border width. Default value: 0. Ignored if Visible is set to false. - double? borderWidth; - - /// Border dash style. Default value: BorderDashStyle.Solid. - BorderDashStyle? borderDashStyle; - - /// Border visibility. If false than parameter Width is always ignored (0). Default value: false. - bool? borderVisible; - - /// Enable checksum during generation 1D barcodes. Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible. Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar Checksum always used: Rest symbology - EnableChecksum? enableChecksum; - - /// Indicates whether explains the character \"\\\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, \"\\\" will be explained as a special escape character. Otherwise, \"\\\" acts as normal characters. Aspose.BarCode supports input decimal ascii code and mnemonic for ASCII control-code characters. For example, \\013 and \\\\CR stands for CR. - bool? enableEscape; - - /// Value indicating whether bars are filled. Only for 1D barcodes. Default value: true. - bool? filledBars; - - /// Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes. - bool? alwaysShowChecksum; - - /// Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard - double? wideNarrowRatio; - - /// Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. - bool? validateText; - - /// Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. - String? supplementData; - - /// Space between main the BarCode and supplement BarCode. - double? supplementSpace; - - /// Bars reduction value that is used to compensate ink spread while printing. - double? barWidthReduction; - - /// Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. - bool? useAntiAlias; - - /// AustralianPost params. - AustralianPostParams? australianPost; - - /// Aztec params. - AztecParams? aztec; - - /// Codabar params. - CodabarParams? codabar; - - /// Codablock params. - CodablockParams? codablock; - - /// Code16K params. - Code16KParams? code16K; - - /// Coupon params. - CouponParams? coupon; - - /// DataBar params. - DataBarParams? dataBar; - - /// DataMatrix params. - DataMatrixParams? dataMatrix; - - /// DotCode params. - DotCodeParams? dotCode; - - /// ITF params. - ITFParams? ITF; - - /// MaxiCode params. - MaxiCodeParams? maxiCode; - - /// Pdf417 params. - Pdf417Params? pdf417; - - /// Postal params. - PostalParams? postal; - - /// QR params. - QrParams? QR; - - /// PatchCode params. - PatchCodeParams? patchCode; - - /// Code128 parameters - Code128Params? code128; - - /// HanXin params. - HanXinParams? hanXin; - - /// Constructor - GeneratorParams(); - - @override - String toString() { - return 'GeneratorParams[typeOfBarcode=$typeOfBarcode, text=$text, twoDDisplayText=$twoDDisplayText, textLocation=$textLocation, textAlignment=$textAlignment, textColor=$textColor, font=$font, fontSizeMode=$fontSizeMode, noWrap=$noWrap, resolution=$resolution, resolutionX=$resolutionX, resolutionY=$resolutionY, dimensionX=$dimensionX, textSpace=$textSpace, units=$units, sizeMode=$sizeMode, barHeight=$barHeight, imageHeight=$imageHeight, imageWidth=$imageWidth, rotationAngle=$rotationAngle, padding=$padding, captionAbove=$captionAbove, captionBelow=$captionBelow, backColor=$backColor, barColor=$barColor, borderColor=$borderColor, borderWidth=$borderWidth, borderDashStyle=$borderDashStyle, borderVisible=$borderVisible, enableChecksum=$enableChecksum, enableEscape=$enableEscape, filledBars=$filledBars, alwaysShowChecksum=$alwaysShowChecksum, wideNarrowRatio=$wideNarrowRatio, validateText=$validateText, supplementData=$supplementData, supplementSpace=$supplementSpace, barWidthReduction=$barWidthReduction, useAntiAlias=$useAntiAlias, australianPost=$australianPost, aztec=$aztec, codabar=$codabar, codablock=$codablock, code16K=$code16K, coupon=$coupon, dataBar=$dataBar, dataMatrix=$dataMatrix, dotCode=$dotCode, ITF=$ITF, maxiCode=$maxiCode, pdf417=$pdf417, postal=$postal, QR=$QR, patchCode=$patchCode, code128=$code128, hanXin=$hanXin, ]'; - } - - /// Creates a GeneratorParams instance from a JSON representation. - GeneratorParams.fromJson(Map json) { - typeOfBarcode = EncodeBarcodeType.fromJson(json['typeOfBarcode']); - text = json['text']; - twoDDisplayText = json['twoDDisplayText']; - textLocation = CodeLocation.fromJson(json['textLocation']); - textAlignment = TextAlignment.fromJson(json['textAlignment']); - textColor = json['textColor']; - font = FontParams.fromJson(json['font']); - fontSizeMode = FontMode.fromJson(json['fontSizeMode']); - noWrap = json['noWrap']; - resolution = json['resolution']?.toDouble(); - resolutionX = json['resolutionX']?.toDouble(); - resolutionY = json['resolutionY']?.toDouble(); - dimensionX = json['dimensionX']?.toDouble(); - textSpace = json['textSpace']?.toDouble(); - units = AvailableGraphicsUnit.fromJson(json['units']); - sizeMode = AutoSizeMode.fromJson(json['sizeMode']); - barHeight = json['barHeight']?.toDouble(); - imageHeight = json['imageHeight']?.toDouble(); - imageWidth = json['imageWidth']?.toDouble(); - rotationAngle = json['rotationAngle']?.toDouble(); - padding = Padding.fromJson(json['padding']); - captionAbove = CaptionParams.fromJson(json['captionAbove']); - captionBelow = CaptionParams.fromJson(json['captionBelow']); - backColor = json['backColor']; - barColor = json['barColor']; - borderColor = json['borderColor']; - borderWidth = json['borderWidth']?.toDouble(); - borderDashStyle = BorderDashStyle.fromJson(json['borderDashStyle']); - borderVisible = json['borderVisible']; - enableChecksum = EnableChecksum.fromJson(json['enableChecksum']); - enableEscape = json['enableEscape']; - filledBars = json['filledBars']; - alwaysShowChecksum = json['alwaysShowChecksum']; - wideNarrowRatio = json['wideNarrowRatio']?.toDouble(); - validateText = json['validateText']; - supplementData = json['supplementData']; - supplementSpace = json['supplementSpace']?.toDouble(); - barWidthReduction = json['barWidthReduction']?.toDouble(); - useAntiAlias = json['useAntiAlias']; - australianPost = AustralianPostParams.fromJson(json['australianPost']); - aztec = AztecParams.fromJson(json['aztec']); - codabar = CodabarParams.fromJson(json['codabar']); - codablock = CodablockParams.fromJson(json['codablock']); - code16K = Code16KParams.fromJson(json['code16K']); - coupon = CouponParams.fromJson(json['coupon']); - dataBar = DataBarParams.fromJson(json['dataBar']); - dataMatrix = DataMatrixParams.fromJson(json['dataMatrix']); - dotCode = DotCodeParams.fromJson(json['dotCode']); - ITF = ITFParams.fromJson(json['ITF']); - maxiCode = MaxiCodeParams.fromJson(json['maxiCode']); - pdf417 = Pdf417Params.fromJson(json['pdf417']); - postal = PostalParams.fromJson(json['postal']); - QR = QrParams.fromJson(json['QR']); - patchCode = PatchCodeParams.fromJson(json['patchCode']); - code128 = Code128Params.fromJson(json['code128']); - hanXin = HanXinParams.fromJson(json['hanXin']); - } - - /// Returns a JSON representation of GeneratorParams. - Map toJson() { - return { - 'TypeOfBarcode': typeOfBarcode, - 'Text': text, - 'TwoDDisplayText': twoDDisplayText, - 'TextLocation': textLocation, - 'TextAlignment': textAlignment, - 'TextColor': textColor, - 'Font': font, - 'FontSizeMode': fontSizeMode, - 'NoWrap': noWrap, - 'Resolution': resolution, - 'ResolutionX': resolutionX, - 'ResolutionY': resolutionY, - 'DimensionX': dimensionX, - 'TextSpace': textSpace, - 'Units': units, - 'SizeMode': sizeMode, - 'BarHeight': barHeight, - 'ImageHeight': imageHeight, - 'ImageWidth': imageWidth, - 'RotationAngle': rotationAngle, - 'Padding': padding, - 'CaptionAbove': captionAbove, - 'CaptionBelow': captionBelow, - 'BackColor': backColor, - 'BarColor': barColor, - 'BorderColor': borderColor, - 'BorderWidth': borderWidth, - 'BorderDashStyle': borderDashStyle, - 'BorderVisible': borderVisible, - 'EnableChecksum': enableChecksum, - 'EnableEscape': enableEscape, - 'FilledBars': filledBars, - 'AlwaysShowChecksum': alwaysShowChecksum, - 'WideNarrowRatio': wideNarrowRatio, - 'ValidateText': validateText, - 'SupplementData': supplementData, - 'SupplementSpace': supplementSpace, - 'BarWidthReduction': barWidthReduction, - 'UseAntiAlias': useAntiAlias, - 'AustralianPost': australianPost, - 'Aztec': aztec, - 'Codabar': codabar, - 'Codablock': codablock, - 'Code16K': code16K, - 'Coupon': coupon, - 'DataBar': dataBar, - 'DataMatrix': dataMatrix, - 'DotCode': dotCode, - 'ITF': ITF, - 'MaxiCode': maxiCode, - 'Pdf417': pdf417, - 'Postal': postal, - 'QR': QR, - 'PatchCode': patchCode, - 'Code128': code128, - 'HanXin': hanXin - }; - } - - /// Converts a list of JSON objects to a list of GeneratorParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of GeneratorParams instances. - static List listFromJson(List json) { - return json.map((value) => GeneratorParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/generator_params_list.dart b/lib/src/model/generator_params_list.dart deleted file mode 100644 index 98301d0..0000000 --- a/lib/src/model/generator_params_list.dart +++ /dev/null @@ -1,43 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Represents list of barcode generators -class GeneratorParamsList { - /// List of barcode generators - List? barcodeBuilders = []; - - /// Shift step according to X axis - int? xStep; - - /// Shift step according to Y axis - int? yStep; - - /// Constructor - GeneratorParamsList(); - - @override - String toString() { - return 'GeneratorParamsList[barcodeBuilders=$barcodeBuilders, xStep=$xStep, yStep=$yStep, ]'; - } - - /// Creates a GeneratorParamsList instance from a JSON representation. - GeneratorParamsList.fromJson(Map json) { - barcodeBuilders = GeneratorParams.listFromJson(json['barcodeBuilders']); - xStep = json['xStep']; - yStep = json['yStep']; - } - - /// Returns a JSON representation of GeneratorParamsList. - Map toJson() { - return {'BarcodeBuilders': barcodeBuilders, 'XStep': xStep, 'YStep': yStep}; - } - - /// Converts a list of JSON objects to a list of GeneratorParamsList instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of GeneratorParamsList instances. - static List listFromJson(List json) { - return json.map((value) => GeneratorParamsList.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/graphics_unit.dart b/lib/src/model/graphics_unit.dart new file mode 100644 index 0000000..fb2c909 --- /dev/null +++ b/lib/src/model/graphics_unit.dart @@ -0,0 +1,56 @@ +/// Subset of Aspose.Drawing.GraphicsUnit. +/// GraphicsUnit: [Pixel, Point, Inch, Millimeter] +class GraphicsUnit { + /// The underlying value of GraphicsUnit enum. + late final String _value; + + GraphicsUnit._internal(this._value); + + /// Subset of Aspose.Drawing.GraphicsUnit. + // ignore: non_constant_identifier_names + static final GraphicsUnit Pixel = GraphicsUnit._internal("Pixel"); + + /// Subset of Aspose.Drawing.GraphicsUnit. + // ignore: non_constant_identifier_names + static final GraphicsUnit Point = GraphicsUnit._internal("Point"); + + /// Subset of Aspose.Drawing.GraphicsUnit. + // ignore: non_constant_identifier_names + static final GraphicsUnit Inch = GraphicsUnit._internal("Inch"); + + /// Subset of Aspose.Drawing.GraphicsUnit. + // ignore: non_constant_identifier_names + static final GraphicsUnit Millimeter = GraphicsUnit._internal("Millimeter"); + + /// Creates a GraphicsUnit instance from a JSON representation. + GraphicsUnit.fromJson(dynamic data) { + switch (data) { + case 'Pixel': + case 'Point': + case 'Inch': + case 'Millimeter': + _value = data; + break; + default: + throw Exception('Unknown enum value to decode: $data'); + } + } + + /// Returns a JSON representation of GraphicsUnit. + String? toJson() { + return _value; + } + + @override + String toString() { + return _value.toString(); + } + + /// Converts a list of JSON objects to a list of GraphicsUnit instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of GraphicsUnit instances. + static List listFromJson(List json) { + return json.map((value) => GraphicsUnit.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/han_xin_encode_mode.dart b/lib/src/model/han_xin_encode_mode.dart deleted file mode 100644 index bda4aae..0000000 --- a/lib/src/model/han_xin_encode_mode.dart +++ /dev/null @@ -1,67 +0,0 @@ -/// -/// HanXinEncodeMode: [Auto, Binary, ECI, Unicode, URI, Extended] -class HanXinEncodeMode { - /// The underlying value of HanXinEncodeMode enum. - late final String _value; - - HanXinEncodeMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final HanXinEncodeMode Auto = HanXinEncodeMode._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final HanXinEncodeMode Binary = HanXinEncodeMode._internal("Binary"); - - /// - // ignore: non_constant_identifier_names - static final HanXinEncodeMode ECI = HanXinEncodeMode._internal("ECI"); - - /// - // ignore: non_constant_identifier_names - static final HanXinEncodeMode Unicode = HanXinEncodeMode._internal("Unicode"); - - /// - // ignore: non_constant_identifier_names - static final HanXinEncodeMode URI = HanXinEncodeMode._internal("URI"); - - /// - // ignore: non_constant_identifier_names - static final HanXinEncodeMode Extended = - HanXinEncodeMode._internal("Extended"); - - /// Creates a HanXinEncodeMode instance from a JSON representation. - HanXinEncodeMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Binary": - case "ECI": - case "Unicode": - case "URI": - case "Extended": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of HanXinEncodeMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of HanXinEncodeMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of HanXinEncodeMode instances. - static List listFromJson(List json) { - return json.map((value) => HanXinEncodeMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/han_xin_error_level.dart b/lib/src/model/han_xin_error_level.dart deleted file mode 100644 index 2316289..0000000 --- a/lib/src/model/han_xin_error_level.dart +++ /dev/null @@ -1,56 +0,0 @@ -/// -/// HanXinErrorLevel: [L1, L2, L3, L4] -class HanXinErrorLevel { - /// The underlying value of HanXinErrorLevel enum. - late final String _value; - - HanXinErrorLevel._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final HanXinErrorLevel L1 = HanXinErrorLevel._internal("L1"); - - /// - // ignore: non_constant_identifier_names - static final HanXinErrorLevel L2 = HanXinErrorLevel._internal("L2"); - - /// - // ignore: non_constant_identifier_names - static final HanXinErrorLevel L3 = HanXinErrorLevel._internal("L3"); - - /// - // ignore: non_constant_identifier_names - static final HanXinErrorLevel L4 = HanXinErrorLevel._internal("L4"); - - /// Creates a HanXinErrorLevel instance from a JSON representation. - HanXinErrorLevel.fromJson(dynamic data) { - switch (data) { - case "L1": - case "L2": - case "L3": - case "L4": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of HanXinErrorLevel. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of HanXinErrorLevel instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of HanXinErrorLevel instances. - static List listFromJson(List json) { - return json.map((value) => HanXinErrorLevel.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/han_xin_params.dart b/lib/src/model/han_xin_params.dart deleted file mode 100644 index 649b88c..0000000 --- a/lib/src/model/han_xin_params.dart +++ /dev/null @@ -1,52 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// HanXin params. -class HanXinParams { - /// Encoding mode for XanXin barcodes. Default value: HanXinEncodeMode.Auto. - HanXinEncodeMode? encodeMode; - - /// Allowed Han Xin error correction levels from L1 to L4. Default value: HanXinErrorLevel.L1. - HanXinErrorLevel? errorLevel; - - /// Allowed Han Xin versions, Auto and Version01 - Version84. Default value: HanXinVersion.Auto. - HanXinVersion? version; - - /// Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. Default value: ECIEncodings.ISO_8859_1 - ECIEncodings? eCIEncoding; - - /// Constructor - HanXinParams(); - - @override - String toString() { - return 'HanXinParams[encodeMode=$encodeMode, errorLevel=$errorLevel, version=$version, eCIEncoding=$eCIEncoding, ]'; - } - - /// Creates a HanXinParams instance from a JSON representation. - HanXinParams.fromJson(Map json) { - encodeMode = HanXinEncodeMode.fromJson(json['encodeMode']); - errorLevel = HanXinErrorLevel.fromJson(json['errorLevel']); - version = HanXinVersion.fromJson(json['version']); - eCIEncoding = ECIEncodings.fromJson(json['eCIEncoding']); - } - - /// Returns a JSON representation of HanXinParams. - Map toJson() { - return { - 'EncodeMode': encodeMode, - 'ErrorLevel': errorLevel, - 'Version': version, - 'ECIEncoding': eCIEncoding - }; - } - - /// Converts a list of JSON objects to a list of HanXinParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of HanXinParams instances. - static List listFromJson(List json) { - return json.map((value) => HanXinParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/han_xin_version.dart b/lib/src/model/han_xin_version.dart deleted file mode 100644 index 7c7ff2e..0000000 --- a/lib/src/model/han_xin_version.dart +++ /dev/null @@ -1,461 +0,0 @@ -/// -/// HanXinVersion: [Auto, Version01, Version02, Version03, Version04, Version05, Version06, Version07, Version08, Version09, Version10, Version11, Version12, Version13, Version14, Version15, Version16, Version17, Version18, Version19, Version20, Version21, Version22, Version23, Version24, Version25, Version26, Version27, Version28, Version29, Version30, Version31, Version32, Version33, Version34, Version35, Version36, Version37, Version38, Version39, Version40, Version41, Version42, Version43, Version44, Version45, Version46, Version47, Version48, Version49, Version50, Version51, Version52, Version53, Version54, Version55, Version56, Version57, Version58, Version59, Version60, Version61, Version62, Version63, Version64, Version65, Version66, Version67, Version68, Version69, Version70, Version71, Version72, Version73, Version74, Version75, Version76, Version77, Version78, Version79, Version80, Version81, Version82, Version83, Version84] -class HanXinVersion { - /// The underlying value of HanXinVersion enum. - late final String _value; - - HanXinVersion._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Auto = HanXinVersion._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version01 = HanXinVersion._internal("Version01"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version02 = HanXinVersion._internal("Version02"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version03 = HanXinVersion._internal("Version03"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version04 = HanXinVersion._internal("Version04"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version05 = HanXinVersion._internal("Version05"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version06 = HanXinVersion._internal("Version06"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version07 = HanXinVersion._internal("Version07"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version08 = HanXinVersion._internal("Version08"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version09 = HanXinVersion._internal("Version09"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version10 = HanXinVersion._internal("Version10"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version11 = HanXinVersion._internal("Version11"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version12 = HanXinVersion._internal("Version12"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version13 = HanXinVersion._internal("Version13"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version14 = HanXinVersion._internal("Version14"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version15 = HanXinVersion._internal("Version15"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version16 = HanXinVersion._internal("Version16"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version17 = HanXinVersion._internal("Version17"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version18 = HanXinVersion._internal("Version18"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version19 = HanXinVersion._internal("Version19"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version20 = HanXinVersion._internal("Version20"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version21 = HanXinVersion._internal("Version21"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version22 = HanXinVersion._internal("Version22"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version23 = HanXinVersion._internal("Version23"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version24 = HanXinVersion._internal("Version24"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version25 = HanXinVersion._internal("Version25"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version26 = HanXinVersion._internal("Version26"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version27 = HanXinVersion._internal("Version27"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version28 = HanXinVersion._internal("Version28"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version29 = HanXinVersion._internal("Version29"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version30 = HanXinVersion._internal("Version30"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version31 = HanXinVersion._internal("Version31"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version32 = HanXinVersion._internal("Version32"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version33 = HanXinVersion._internal("Version33"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version34 = HanXinVersion._internal("Version34"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version35 = HanXinVersion._internal("Version35"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version36 = HanXinVersion._internal("Version36"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version37 = HanXinVersion._internal("Version37"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version38 = HanXinVersion._internal("Version38"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version39 = HanXinVersion._internal("Version39"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version40 = HanXinVersion._internal("Version40"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version41 = HanXinVersion._internal("Version41"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version42 = HanXinVersion._internal("Version42"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version43 = HanXinVersion._internal("Version43"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version44 = HanXinVersion._internal("Version44"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version45 = HanXinVersion._internal("Version45"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version46 = HanXinVersion._internal("Version46"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version47 = HanXinVersion._internal("Version47"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version48 = HanXinVersion._internal("Version48"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version49 = HanXinVersion._internal("Version49"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version50 = HanXinVersion._internal("Version50"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version51 = HanXinVersion._internal("Version51"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version52 = HanXinVersion._internal("Version52"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version53 = HanXinVersion._internal("Version53"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version54 = HanXinVersion._internal("Version54"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version55 = HanXinVersion._internal("Version55"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version56 = HanXinVersion._internal("Version56"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version57 = HanXinVersion._internal("Version57"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version58 = HanXinVersion._internal("Version58"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version59 = HanXinVersion._internal("Version59"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version60 = HanXinVersion._internal("Version60"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version61 = HanXinVersion._internal("Version61"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version62 = HanXinVersion._internal("Version62"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version63 = HanXinVersion._internal("Version63"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version64 = HanXinVersion._internal("Version64"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version65 = HanXinVersion._internal("Version65"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version66 = HanXinVersion._internal("Version66"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version67 = HanXinVersion._internal("Version67"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version68 = HanXinVersion._internal("Version68"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version69 = HanXinVersion._internal("Version69"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version70 = HanXinVersion._internal("Version70"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version71 = HanXinVersion._internal("Version71"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version72 = HanXinVersion._internal("Version72"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version73 = HanXinVersion._internal("Version73"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version74 = HanXinVersion._internal("Version74"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version75 = HanXinVersion._internal("Version75"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version76 = HanXinVersion._internal("Version76"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version77 = HanXinVersion._internal("Version77"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version78 = HanXinVersion._internal("Version78"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version79 = HanXinVersion._internal("Version79"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version80 = HanXinVersion._internal("Version80"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version81 = HanXinVersion._internal("Version81"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version82 = HanXinVersion._internal("Version82"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version83 = HanXinVersion._internal("Version83"); - - /// - // ignore: non_constant_identifier_names - static final HanXinVersion Version84 = HanXinVersion._internal("Version84"); - - /// Creates a HanXinVersion instance from a JSON representation. - HanXinVersion.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Version01": - case "Version02": - case "Version03": - case "Version04": - case "Version05": - case "Version06": - case "Version07": - case "Version08": - case "Version09": - case "Version10": - case "Version11": - case "Version12": - case "Version13": - case "Version14": - case "Version15": - case "Version16": - case "Version17": - case "Version18": - case "Version19": - case "Version20": - case "Version21": - case "Version22": - case "Version23": - case "Version24": - case "Version25": - case "Version26": - case "Version27": - case "Version28": - case "Version29": - case "Version30": - case "Version31": - case "Version32": - case "Version33": - case "Version34": - case "Version35": - case "Version36": - case "Version37": - case "Version38": - case "Version39": - case "Version40": - case "Version41": - case "Version42": - case "Version43": - case "Version44": - case "Version45": - case "Version46": - case "Version47": - case "Version48": - case "Version49": - case "Version50": - case "Version51": - case "Version52": - case "Version53": - case "Version54": - case "Version55": - case "Version56": - case "Version57": - case "Version58": - case "Version59": - case "Version60": - case "Version61": - case "Version62": - case "Version63": - case "Version64": - case "Version65": - case "Version66": - case "Version67": - case "Version68": - case "Version69": - case "Version70": - case "Version71": - case "Version72": - case "Version73": - case "Version74": - case "Version75": - case "Version76": - case "Version77": - case "Version78": - case "Version79": - case "Version80": - case "Version81": - case "Version82": - case "Version83": - case "Version84": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of HanXinVersion. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of HanXinVersion instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of HanXinVersion instances. - static List listFromJson(List json) { - return json.map((value) => HanXinVersion.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/itf14_border_type.dart b/lib/src/model/itf14_border_type.dart deleted file mode 100644 index 4d65b14..0000000 --- a/lib/src/model/itf14_border_type.dart +++ /dev/null @@ -1,61 +0,0 @@ -/// -/// ITF14BorderType: [None, Frame, Bar, FrameOut, BarOut] -class ITF14BorderType { - /// The underlying value of ITF14BorderType enum. - late final String _value; - - ITF14BorderType._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final ITF14BorderType None = ITF14BorderType._internal("None"); - - /// - // ignore: non_constant_identifier_names - static final ITF14BorderType Frame = ITF14BorderType._internal("Frame"); - - /// - // ignore: non_constant_identifier_names - static final ITF14BorderType Bar = ITF14BorderType._internal("Bar"); - - /// - // ignore: non_constant_identifier_names - static final ITF14BorderType FrameOut = ITF14BorderType._internal("FrameOut"); - - /// - // ignore: non_constant_identifier_names - static final ITF14BorderType BarOut = ITF14BorderType._internal("BarOut"); - - /// Creates a ITF14BorderType instance from a JSON representation. - ITF14BorderType.fromJson(dynamic data) { - switch (data) { - case "None": - case "Frame": - case "Bar": - case "FrameOut": - case "BarOut": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of ITF14BorderType. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of ITF14BorderType instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of ITF14BorderType instances. - static List listFromJson(List json) { - return json.map((value) => ITF14BorderType.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/itf_params.dart b/lib/src/model/itf_params.dart deleted file mode 100644 index 53dc957..0000000 --- a/lib/src/model/itf_params.dart +++ /dev/null @@ -1,47 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// ITF parameters. -class ITFParams { - /// ITF border (bearer bar) thickness in Unit value. Default value: 12pt. - double? borderThickness; - - /// Border type of ITF barcode. Default value: ITF14BorderType.Bar. - ITF14BorderType? borderType; - - /// Size of the quiet zones in xDimension. Default value: 10, meaning if xDimension = 2px than quiet zones will be 20px. - int? quietZoneCoef; - - /// Constructor - ITFParams(); - - @override - String toString() { - return 'ITFParams[borderThickness=$borderThickness, borderType=$borderType, quietZoneCoef=$quietZoneCoef, ]'; - } - - /// Creates a ITFParams instance from a JSON representation. - ITFParams.fromJson(Map json) { - borderThickness = json['borderThickness']?.toDouble(); - borderType = ITF14BorderType.fromJson(json['borderType']); - quietZoneCoef = json['quietZoneCoef']; - } - - /// Returns a JSON representation of ITFParams. - Map toJson() { - return { - 'BorderThickness': borderThickness, - 'BorderType': borderType, - 'QuietZoneCoef': quietZoneCoef - }; - } - - /// Converts a list of JSON objects to a list of ITFParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of ITFParams instances. - static List listFromJson(List json) { - return json.map((value) => ITFParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/macro_character.dart b/lib/src/model/macro_character.dart deleted file mode 100644 index 38169ec..0000000 --- a/lib/src/model/macro_character.dart +++ /dev/null @@ -1,51 +0,0 @@ -/// -/// MacroCharacter: [None, Macro05, Macro06] -class MacroCharacter { - /// The underlying value of MacroCharacter enum. - late final String _value; - - MacroCharacter._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final MacroCharacter None = MacroCharacter._internal("None"); - - /// - // ignore: non_constant_identifier_names - static final MacroCharacter Macro05 = MacroCharacter._internal("Macro05"); - - /// - // ignore: non_constant_identifier_names - static final MacroCharacter Macro06 = MacroCharacter._internal("Macro06"); - - /// Creates a MacroCharacter instance from a JSON representation. - MacroCharacter.fromJson(dynamic data) { - switch (data) { - case "None": - case "Macro05": - case "Macro06": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of MacroCharacter. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of MacroCharacter instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of MacroCharacter instances. - static List listFromJson(List json) { - return json.map((value) => MacroCharacter.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/maxi_code_encode_mode.dart b/lib/src/model/maxi_code_encode_mode.dart deleted file mode 100644 index 1b33262..0000000 --- a/lib/src/model/maxi_code_encode_mode.dart +++ /dev/null @@ -1,52 +0,0 @@ -/// -/// MaxiCodeEncodeMode: [Auto, Bytes, ExtendedCodetext] -class MaxiCodeEncodeMode { - /// The underlying value of MaxiCodeEncodeMode enum. - late final String _value; - - MaxiCodeEncodeMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final MaxiCodeEncodeMode Auto = MaxiCodeEncodeMode._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final MaxiCodeEncodeMode Bytes = MaxiCodeEncodeMode._internal("Bytes"); - - /// - // ignore: non_constant_identifier_names - static final MaxiCodeEncodeMode ExtendedCodetext = - MaxiCodeEncodeMode._internal("ExtendedCodetext"); - - /// Creates a MaxiCodeEncodeMode instance from a JSON representation. - MaxiCodeEncodeMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Bytes": - case "ExtendedCodetext": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of MaxiCodeEncodeMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of MaxiCodeEncodeMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of MaxiCodeEncodeMode instances. - static List listFromJson(List json) { - return json.map((value) => MaxiCodeEncodeMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/maxi_code_mode.dart b/lib/src/model/maxi_code_mode.dart deleted file mode 100644 index 2539383..0000000 --- a/lib/src/model/maxi_code_mode.dart +++ /dev/null @@ -1,61 +0,0 @@ -/// -/// MaxiCodeMode: [Mode2, Mode3, Mode4, Mode5, Mode6] -class MaxiCodeMode { - /// The underlying value of MaxiCodeMode enum. - late final String _value; - - MaxiCodeMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final MaxiCodeMode Mode2 = MaxiCodeMode._internal("Mode2"); - - /// - // ignore: non_constant_identifier_names - static final MaxiCodeMode Mode3 = MaxiCodeMode._internal("Mode3"); - - /// - // ignore: non_constant_identifier_names - static final MaxiCodeMode Mode4 = MaxiCodeMode._internal("Mode4"); - - /// - // ignore: non_constant_identifier_names - static final MaxiCodeMode Mode5 = MaxiCodeMode._internal("Mode5"); - - /// - // ignore: non_constant_identifier_names - static final MaxiCodeMode Mode6 = MaxiCodeMode._internal("Mode6"); - - /// Creates a MaxiCodeMode instance from a JSON representation. - MaxiCodeMode.fromJson(dynamic data) { - switch (data) { - case "Mode2": - case "Mode3": - case "Mode4": - case "Mode5": - case "Mode6": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of MaxiCodeMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of MaxiCodeMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of MaxiCodeMode instances. - static List listFromJson(List json) { - return json.map((value) => MaxiCodeMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/maxi_code_params.dart b/lib/src/model/maxi_code_params.dart deleted file mode 100644 index 8b4f8d7..0000000 --- a/lib/src/model/maxi_code_params.dart +++ /dev/null @@ -1,43 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// MaxiCode parameters. -class MaxiCodeParams { - /// Height/Width ratio of 2D BarCode module. - double? aspectRatio; - - /// Mode for MaxiCode barcodes. - MaxiCodeMode? mode; - - /// Encoding mode for MaxiCode barcodes. - MaxiCodeEncodeMode? encodeMode; - - /// Constructor - MaxiCodeParams(); - - @override - String toString() { - return 'MaxiCodeParams[aspectRatio=$aspectRatio, mode=$mode, encodeMode=$encodeMode, ]'; - } - - /// Creates a MaxiCodeParams instance from a JSON representation. - MaxiCodeParams.fromJson(Map json) { - aspectRatio = json['aspectRatio']?.toDouble(); - mode = MaxiCodeMode.fromJson(json['mode']); - encodeMode = MaxiCodeEncodeMode.fromJson(json['encodeMode']); - } - - /// Returns a JSON representation of MaxiCodeParams. - Map toJson() { - return {'AspectRatio': aspectRatio, 'Mode': mode, 'EncodeMode': encodeMode}; - } - - /// Converts a list of JSON objects to a list of MaxiCodeParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of MaxiCodeParams instances. - static List listFromJson(List json) { - return json.map((value) => MaxiCodeParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/object_exist.dart b/lib/src/model/object_exist.dart deleted file mode 100644 index 0b35fdb..0000000 --- a/lib/src/model/object_exist.dart +++ /dev/null @@ -1,38 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Object exists -class ObjectExist { - /// Indicates that the file or folder exists. - bool? exists; - - /// True if it is a folder, false if it is a file. - bool? isFolder; - - /// Constructor - ObjectExist(); - - @override - String toString() { - return 'ObjectExist[exists=$exists, isFolder=$isFolder, ]'; - } - - /// Creates a ObjectExist instance from a JSON representation. - ObjectExist.fromJson(Map json) { - exists = json['exists']; - isFolder = json['isFolder']; - } - - /// Returns a JSON representation of ObjectExist. - Map toJson() { - return {'Exists': exists, 'IsFolder': isFolder}; - } - - /// Converts a list of JSON objects to a list of ObjectExist instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of ObjectExist instances. - static List listFromJson(List json) { - return json.map((value) => ObjectExist.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/padding.dart b/lib/src/model/padding.dart deleted file mode 100644 index b036a2f..0000000 --- a/lib/src/model/padding.dart +++ /dev/null @@ -1,46 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Padding around barcode. -class Padding { - /// Left padding. - double? left; - - /// Right padding. - double? right; - - /// Top padding. - double? top; - - /// Bottom padding. - double? bottom; - - /// Constructor - Padding(); - - @override - String toString() { - return 'Padding[left=$left, right=$right, top=$top, bottom=$bottom, ]'; - } - - /// Creates a Padding instance from a JSON representation. - Padding.fromJson(Map json) { - left = json['left']?.toDouble(); - right = json['right']?.toDouble(); - top = json['top']?.toDouble(); - bottom = json['bottom']?.toDouble(); - } - - /// Returns a JSON representation of Padding. - Map toJson() { - return {'Left': left, 'Right': right, 'Top': top, 'Bottom': bottom}; - } - - /// Converts a list of JSON objects to a list of Padding instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Padding instances. - static List listFromJson(List json) { - return json.map((value) => Padding.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/patch_code_params.dart b/lib/src/model/patch_code_params.dart deleted file mode 100644 index 49a3285..0000000 --- a/lib/src/model/patch_code_params.dart +++ /dev/null @@ -1,39 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// PatchCode parameters. -class PatchCodeParams { - /// Specifies codetext for an extra QR barcode, when PatchCode is generated in page mode. - String? extraBarcodeText; - - /// PatchCode format. Choose PatchOnly to generate single PatchCode. Use page format to generate Patch page with PatchCodes as borders. Default value: PatchFormat.PatchOnly - PatchFormat? patchFormat; - - /// Constructor - PatchCodeParams(); - - @override - String toString() { - return 'PatchCodeParams[extraBarcodeText=$extraBarcodeText, patchFormat=$patchFormat, ]'; - } - - /// Creates a PatchCodeParams instance from a JSON representation. - PatchCodeParams.fromJson(Map json) { - extraBarcodeText = json['extraBarcodeText']; - patchFormat = PatchFormat.fromJson(json['patchFormat']); - } - - /// Returns a JSON representation of PatchCodeParams. - Map toJson() { - return {'ExtraBarcodeText': extraBarcodeText, 'PatchFormat': patchFormat}; - } - - /// Converts a list of JSON objects to a list of PatchCodeParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of PatchCodeParams instances. - static List listFromJson(List json) { - return json.map((value) => PatchCodeParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/patch_format.dart b/lib/src/model/patch_format.dart deleted file mode 100644 index b1ef323..0000000 --- a/lib/src/model/patch_format.dart +++ /dev/null @@ -1,62 +0,0 @@ -/// -/// PatchFormat: [PatchOnly, A4, A4_LANDSCAPE, US_Letter, US_Letter_LANDSCAPE] -class PatchFormat { - /// The underlying value of PatchFormat enum. - late final String _value; - - PatchFormat._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final PatchFormat PatchOnly = PatchFormat._internal("PatchOnly"); - - /// - // ignore: non_constant_identifier_names - static final PatchFormat A4 = PatchFormat._internal("A4"); - - /// - // ignore: non_constant_identifier_names - static final PatchFormat A4_LANDSCAPE = PatchFormat._internal("A4_LANDSCAPE"); - - /// - // ignore: non_constant_identifier_names - static final PatchFormat US_Letter = PatchFormat._internal("US_Letter"); - - /// - // ignore: non_constant_identifier_names - static final PatchFormat US_Letter_LANDSCAPE = - PatchFormat._internal("US_Letter_LANDSCAPE"); - - /// Creates a PatchFormat instance from a JSON representation. - PatchFormat.fromJson(dynamic data) { - switch (data) { - case "PatchOnly": - case "A4": - case "A4_LANDSCAPE": - case "US_Letter": - case "US_Letter_LANDSCAPE": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of PatchFormat. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of PatchFormat instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of PatchFormat instances. - static List listFromJson(List json) { - return json.map((value) => PatchFormat.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/pdf417_compaction_mode.dart b/lib/src/model/pdf417_compaction_mode.dart deleted file mode 100644 index 97c0375..0000000 --- a/lib/src/model/pdf417_compaction_mode.dart +++ /dev/null @@ -1,60 +0,0 @@ -/// -/// Pdf417CompactionMode: [Auto, Text, Numeric, Binary] -class Pdf417CompactionMode { - /// The underlying value of Pdf417CompactionMode enum. - late final String _value; - - Pdf417CompactionMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final Pdf417CompactionMode Auto = - Pdf417CompactionMode._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417CompactionMode Text = - Pdf417CompactionMode._internal("Text"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417CompactionMode Numeric = - Pdf417CompactionMode._internal("Numeric"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417CompactionMode Binary = - Pdf417CompactionMode._internal("Binary"); - - /// Creates a Pdf417CompactionMode instance from a JSON representation. - Pdf417CompactionMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Text": - case "Numeric": - case "Binary": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of Pdf417CompactionMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of Pdf417CompactionMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Pdf417CompactionMode instances. - static List listFromJson(List json) { - return json.map((value) => Pdf417CompactionMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/pdf417_error_level.dart b/lib/src/model/pdf417_error_level.dart deleted file mode 100644 index b09bf83..0000000 --- a/lib/src/model/pdf417_error_level.dart +++ /dev/null @@ -1,81 +0,0 @@ -/// -/// Pdf417ErrorLevel: [Level0, Level1, Level2, Level3, Level4, Level5, Level6, Level7, Level8] -class Pdf417ErrorLevel { - /// The underlying value of Pdf417ErrorLevel enum. - late final String _value; - - Pdf417ErrorLevel._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final Pdf417ErrorLevel Level0 = Pdf417ErrorLevel._internal("Level0"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417ErrorLevel Level1 = Pdf417ErrorLevel._internal("Level1"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417ErrorLevel Level2 = Pdf417ErrorLevel._internal("Level2"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417ErrorLevel Level3 = Pdf417ErrorLevel._internal("Level3"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417ErrorLevel Level4 = Pdf417ErrorLevel._internal("Level4"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417ErrorLevel Level5 = Pdf417ErrorLevel._internal("Level5"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417ErrorLevel Level6 = Pdf417ErrorLevel._internal("Level6"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417ErrorLevel Level7 = Pdf417ErrorLevel._internal("Level7"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417ErrorLevel Level8 = Pdf417ErrorLevel._internal("Level8"); - - /// Creates a Pdf417ErrorLevel instance from a JSON representation. - Pdf417ErrorLevel.fromJson(dynamic data) { - switch (data) { - case "Level0": - case "Level1": - case "Level2": - case "Level3": - case "Level4": - case "Level5": - case "Level6": - case "Level7": - case "Level8": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of Pdf417ErrorLevel. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of Pdf417ErrorLevel instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Pdf417ErrorLevel instances. - static List listFromJson(List json) { - return json.map((value) => Pdf417ErrorLevel.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/pdf417_macro_terminator.dart b/lib/src/model/pdf417_macro_terminator.dart deleted file mode 100644 index 8f72640..0000000 --- a/lib/src/model/pdf417_macro_terminator.dart +++ /dev/null @@ -1,54 +0,0 @@ -/// -/// Pdf417MacroTerminator: [Auto, None, Set] -class Pdf417MacroTerminator { - /// The underlying value of Pdf417MacroTerminator enum. - late final String _value; - - Pdf417MacroTerminator._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final Pdf417MacroTerminator Auto = - Pdf417MacroTerminator._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417MacroTerminator None = - Pdf417MacroTerminator._internal("None"); - - /// - // ignore: non_constant_identifier_names - static final Pdf417MacroTerminator Set = - Pdf417MacroTerminator._internal("Set"); - - /// Creates a Pdf417MacroTerminator instance from a JSON representation. - Pdf417MacroTerminator.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "None": - case "Set": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of Pdf417MacroTerminator. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of Pdf417MacroTerminator instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Pdf417MacroTerminator instances. - static List listFromJson(List json) { - return json.map((value) => Pdf417MacroTerminator.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/pdf417_params.dart b/lib/src/model/pdf417_params.dart deleted file mode 100644 index c9c645e..0000000 --- a/lib/src/model/pdf417_params.dart +++ /dev/null @@ -1,157 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// PDF417 parameters. -class Pdf417Params { - /// Height/Width ratio of 2D BarCode module. - double? aspectRatio; - - /// DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. - String? textEncoding; - - /// Columns count. - int? columns; - - /// Pdf417 symbology type of BarCode's compaction mode. Default value: Pdf417CompactionMode.Auto. - Pdf417CompactionMode? compactionMode; - - /// Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture. - Pdf417ErrorLevel? errorLevel; - - /// Macro Pdf417 barcode's file ID. Used for MacroPdf417. - int? macroFileID; - - /// Macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1. - int? macroSegmentID; - - /// Macro Pdf417 barcode segments count. - int? macroSegmentsCount; - - /// Rows count. - int? rows; - - /// Whether Pdf417 symbology type of BarCode is truncated (to reduce space). - bool? truncate; - - /// Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. - ECIEncodings? pdf417ECIEncoding; - - /// Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization - bool? isReaderInitialization; - - /// Macro Pdf417 barcode time stamp - DateTime? macroTimeStamp; - - /// Macro Pdf417 barcode sender name - String? macroSender; - - /// Macro Pdf417 file size. The file size field contains the size in bytes of the entire source file - int? macroFileSize; - - /// Macro Pdf417 barcode checksum. The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial - int? macroChecksum; - - /// Macro Pdf417 barcode file name - String? macroFileName; - - /// Macro Pdf417 barcode addressee name - String? macroAddressee; - - /// Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields. - ECIEncodings? macroECIEncoding; - - /// DEPRECATED: This property is obsolete and will be removed in future releases. See samples of using new parameters on https://releases.aspose.com/barcode/net/release-notes/2023/aspose-barcode-for-net-23-10-release-notes/ Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. - Code128Emulation? code128Emulation; - - /// Can be used only with MicroPdf417 and encodes Code 128 emulation modes. Can encode FNC1 in second position modes 908 and 909, also can encode 910 and 911 which just indicate that recognized MicroPdf417 can be interpret as Code 128. - bool? isCode128Emulation; - - /// Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417. - Pdf417MacroTerminator? pdf417MacroTerminator; - - /// Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes. With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes. With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC. - bool? isLinked; - - /// Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with MicroPdf417 and encodes 916 and 917 MicroPdf417 modes. Default value: MacroCharacters.None. - MacroCharacter? macroCharacters; - - /// Constructor - Pdf417Params(); - - @override - String toString() { - return 'Pdf417Params[aspectRatio=$aspectRatio, textEncoding=$textEncoding, columns=$columns, compactionMode=$compactionMode, errorLevel=$errorLevel, macroFileID=$macroFileID, macroSegmentID=$macroSegmentID, macroSegmentsCount=$macroSegmentsCount, rows=$rows, truncate=$truncate, pdf417ECIEncoding=$pdf417ECIEncoding, isReaderInitialization=$isReaderInitialization, macroTimeStamp=$macroTimeStamp, macroSender=$macroSender, macroFileSize=$macroFileSize, macroChecksum=$macroChecksum, macroFileName=$macroFileName, macroAddressee=$macroAddressee, macroECIEncoding=$macroECIEncoding, code128Emulation=$code128Emulation, isCode128Emulation=$isCode128Emulation, pdf417MacroTerminator=$pdf417MacroTerminator, isLinked=$isLinked, macroCharacters=$macroCharacters, ]'; - } - - /// Creates a Pdf417Params instance from a JSON representation. - Pdf417Params.fromJson(Map json) { - aspectRatio = json['aspectRatio']?.toDouble(); - textEncoding = json['textEncoding']; - columns = json['columns']; - compactionMode = Pdf417CompactionMode.fromJson(json['compactionMode']); - errorLevel = Pdf417ErrorLevel.fromJson(json['errorLevel']); - macroFileID = json['macroFileID']; - macroSegmentID = json['macroSegmentID']; - macroSegmentsCount = json['macroSegmentsCount']; - rows = json['rows']; - truncate = json['truncate']; - pdf417ECIEncoding = ECIEncodings.fromJson(json['pdf417ECIEncoding']); - isReaderInitialization = json['isReaderInitialization']; - macroTimeStamp = json['macroTimeStamp'] == null - ? null - : DateTime.parse(json['macroTimeStamp']); - macroSender = json['macroSender']; - macroFileSize = json['macroFileSize']; - macroChecksum = json['macroChecksum']; - macroFileName = json['macroFileName']; - macroAddressee = json['macroAddressee']; - macroECIEncoding = ECIEncodings.fromJson(json['macroECIEncoding']); - code128Emulation = Code128Emulation.fromJson(json['code128Emulation']); - isCode128Emulation = json['isCode128Emulation']; - pdf417MacroTerminator = - Pdf417MacroTerminator.fromJson(json['pdf417MacroTerminator']); - isLinked = json['isLinked']; - macroCharacters = MacroCharacter.fromJson(json['macroCharacters']); - } - - /// Returns a JSON representation of Pdf417Params. - Map toJson() { - return { - 'AspectRatio': aspectRatio, - 'TextEncoding': textEncoding, - 'Columns': columns, - 'CompactionMode': compactionMode, - 'ErrorLevel': errorLevel, - 'MacroFileID': macroFileID, - 'MacroSegmentID': macroSegmentID, - 'MacroSegmentsCount': macroSegmentsCount, - 'Rows': rows, - 'Truncate': truncate, - 'Pdf417ECIEncoding': pdf417ECIEncoding, - 'IsReaderInitialization': isReaderInitialization, - 'MacroTimeStamp': macroTimeStamp == null - ? '' - : macroTimeStamp!.toUtc().toIso8601String(), - 'MacroSender': macroSender, - 'MacroFileSize': macroFileSize, - 'MacroChecksum': macroChecksum, - 'MacroFileName': macroFileName, - 'MacroAddressee': macroAddressee, - 'MacroECIEncoding': macroECIEncoding, - 'Code128Emulation': code128Emulation, - 'IsCode128Emulation': isCode128Emulation, - 'Pdf417MacroTerminator': pdf417MacroTerminator, - 'IsLinked': isLinked, - 'MacroCharacters': macroCharacters - }; - } - - /// Converts a list of JSON objects to a list of Pdf417Params instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of Pdf417Params instances. - static List listFromJson(List json) { - return json.map((value) => Pdf417Params.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/postal_params.dart b/lib/src/model/postal_params.dart deleted file mode 100644 index 809e31b..0000000 --- a/lib/src/model/postal_params.dart +++ /dev/null @@ -1,34 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Postal parameters. Used for Postnet, Planet. -class PostalParams { - /// Short bar's height of Postal barcodes. - double? shortBarHeight; - - /// Constructor - PostalParams(); - - @override - String toString() { - return 'PostalParams[shortBarHeight=$shortBarHeight, ]'; - } - - /// Creates a PostalParams instance from a JSON representation. - PostalParams.fromJson(Map json) { - shortBarHeight = json['shortBarHeight']?.toDouble(); - } - - /// Returns a JSON representation of PostalParams. - Map toJson() { - return {'ShortBarHeight': shortBarHeight}; - } - - /// Converts a list of JSON objects to a list of PostalParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of PostalParams instances. - static List listFromJson(List json) { - return json.map((value) => PostalParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/preset_type.dart b/lib/src/model/preset_type.dart deleted file mode 100644 index f8673e5..0000000 --- a/lib/src/model/preset_type.dart +++ /dev/null @@ -1,69 +0,0 @@ -/// See QualitySettings allows to configure recognition quality and speed manually. -/// PresetType: [HighPerformance, NormalQuality, HighQualityDetection, MaxQualityDetection, HighQuality, MaxBarCodes] -class PresetType { - /// The underlying value of PresetType enum. - late final String _value; - - PresetType._internal(this._value); - - /// See QualitySettings allows to configure recognition quality and speed manually. - // ignore: non_constant_identifier_names - static final PresetType HighPerformance = - PresetType._internal("HighPerformance"); - - /// See QualitySettings allows to configure recognition quality and speed manually. - // ignore: non_constant_identifier_names - static final PresetType NormalQuality = PresetType._internal("NormalQuality"); - - /// See QualitySettings allows to configure recognition quality and speed manually. - // ignore: non_constant_identifier_names - static final PresetType HighQualityDetection = - PresetType._internal("HighQualityDetection"); - - /// See QualitySettings allows to configure recognition quality and speed manually. - // ignore: non_constant_identifier_names - static final PresetType MaxQualityDetection = - PresetType._internal("MaxQualityDetection"); - - /// See QualitySettings allows to configure recognition quality and speed manually. - // ignore: non_constant_identifier_names - static final PresetType HighQuality = PresetType._internal("HighQuality"); - - /// See QualitySettings allows to configure recognition quality and speed manually. - // ignore: non_constant_identifier_names - static final PresetType MaxBarCodes = PresetType._internal("MaxBarCodes"); - - /// Creates a PresetType instance from a JSON representation. - PresetType.fromJson(dynamic data) { - switch (data) { - case "HighPerformance": - case "NormalQuality": - case "HighQualityDetection": - case "MaxQualityDetection": - case "HighQuality": - case "MaxBarCodes": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of PresetType. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of PresetType instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of PresetType instances. - static List listFromJson(List json) { - return json.map((value) => PresetType.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/qr_encode_mode.dart b/lib/src/model/qr_encode_mode.dart deleted file mode 100644 index c6cbfe3..0000000 --- a/lib/src/model/qr_encode_mode.dart +++ /dev/null @@ -1,67 +0,0 @@ -/// -/// QREncodeMode: [Auto, Bytes, Utf8BOM, Utf16BEBOM, ECIEncoding, ExtendedCodetext] -class QREncodeMode { - /// The underlying value of QREncodeMode enum. - late final String _value; - - QREncodeMode._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final QREncodeMode Auto = QREncodeMode._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final QREncodeMode Bytes = QREncodeMode._internal("Bytes"); - - /// - // ignore: non_constant_identifier_names - static final QREncodeMode Utf8BOM = QREncodeMode._internal("Utf8BOM"); - - /// - // ignore: non_constant_identifier_names - static final QREncodeMode Utf16BEBOM = QREncodeMode._internal("Utf16BEBOM"); - - /// - // ignore: non_constant_identifier_names - static final QREncodeMode ECIEncoding = QREncodeMode._internal("ECIEncoding"); - - /// - // ignore: non_constant_identifier_names - static final QREncodeMode ExtendedCodetext = - QREncodeMode._internal("ExtendedCodetext"); - - /// Creates a QREncodeMode instance from a JSON representation. - QREncodeMode.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Bytes": - case "Utf8BOM": - case "Utf16BEBOM": - case "ECIEncoding": - case "ExtendedCodetext": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of QREncodeMode. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of QREncodeMode instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of QREncodeMode instances. - static List listFromJson(List json) { - return json.map((value) => QREncodeMode.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/qr_encode_type.dart b/lib/src/model/qr_encode_type.dart deleted file mode 100644 index 0d86fab..0000000 --- a/lib/src/model/qr_encode_type.dart +++ /dev/null @@ -1,52 +0,0 @@ -/// -/// QREncodeType: [Auto, ForceQR, ForceMicroQR] -class QREncodeType { - /// The underlying value of QREncodeType enum. - late final String _value; - - QREncodeType._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final QREncodeType Auto = QREncodeType._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final QREncodeType ForceQR = QREncodeType._internal("ForceQR"); - - /// - // ignore: non_constant_identifier_names - static final QREncodeType ForceMicroQR = - QREncodeType._internal("ForceMicroQR"); - - /// Creates a QREncodeType instance from a JSON representation. - QREncodeType.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "ForceQR": - case "ForceMicroQR": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of QREncodeType. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of QREncodeType instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of QREncodeType instances. - static List listFromJson(List json) { - return json.map((value) => QREncodeType.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/qr_error_level.dart b/lib/src/model/qr_error_level.dart deleted file mode 100644 index 55af849..0000000 --- a/lib/src/model/qr_error_level.dart +++ /dev/null @@ -1,56 +0,0 @@ -/// -/// QRErrorLevel: [LevelL, LevelM, LevelQ, LevelH] -class QRErrorLevel { - /// The underlying value of QRErrorLevel enum. - late final String _value; - - QRErrorLevel._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final QRErrorLevel LevelL = QRErrorLevel._internal("LevelL"); - - /// - // ignore: non_constant_identifier_names - static final QRErrorLevel LevelM = QRErrorLevel._internal("LevelM"); - - /// - // ignore: non_constant_identifier_names - static final QRErrorLevel LevelQ = QRErrorLevel._internal("LevelQ"); - - /// - // ignore: non_constant_identifier_names - static final QRErrorLevel LevelH = QRErrorLevel._internal("LevelH"); - - /// Creates a QRErrorLevel instance from a JSON representation. - QRErrorLevel.fromJson(dynamic data) { - switch (data) { - case "LevelL": - case "LevelM": - case "LevelQ": - case "LevelH": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of QRErrorLevel. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of QRErrorLevel instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of QRErrorLevel instances. - static List listFromJson(List json) { - return json.map((value) => QRErrorLevel.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/qr_params.dart b/lib/src/model/qr_params.dart deleted file mode 100644 index 47c66d6..0000000 --- a/lib/src/model/qr_params.dart +++ /dev/null @@ -1,72 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// QR parameters. -class QrParams { - /// Height/Width ratio of 2D BarCode module. - double? aspectRatio; - - /// DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. - String? textEncoding; - - /// QR / MicroQR selector mode. Select ForceQR for standard QR symbols, Auto for MicroQR. - QREncodeType? encodeType; - - /// Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. - ECIEncodings? eCIEncoding; - - /// QR symbology type of BarCode's encoding mode. Default value: QREncodeMode.Auto. - QREncodeMode? encodeMode; - - /// Level of Reed-Solomon error correction for QR barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. see QRErrorLevel. - QRErrorLevel? errorLevel; - - /// Version of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr. Default value is QRVersion.Auto. - QRVersion? version; - - /// QR structured append parameters. - StructuredAppend? structuredAppend; - - /// Constructor - QrParams(); - - @override - String toString() { - return 'QrParams[aspectRatio=$aspectRatio, textEncoding=$textEncoding, encodeType=$encodeType, eCIEncoding=$eCIEncoding, encodeMode=$encodeMode, errorLevel=$errorLevel, version=$version, structuredAppend=$structuredAppend, ]'; - } - - /// Creates a QrParams instance from a JSON representation. - QrParams.fromJson(Map json) { - aspectRatio = json['aspectRatio']?.toDouble(); - textEncoding = json['textEncoding']; - encodeType = QREncodeType.fromJson(json['encodeType']); - eCIEncoding = ECIEncodings.fromJson(json['eCIEncoding']); - encodeMode = QREncodeMode.fromJson(json['encodeMode']); - errorLevel = QRErrorLevel.fromJson(json['errorLevel']); - version = QRVersion.fromJson(json['version']); - structuredAppend = StructuredAppend.fromJson(json['structuredAppend']); - } - - /// Returns a JSON representation of QrParams. - Map toJson() { - return { - 'AspectRatio': aspectRatio, - 'TextEncoding': textEncoding, - 'EncodeType': encodeType, - 'ECIEncoding': eCIEncoding, - 'EncodeMode': encodeMode, - 'ErrorLevel': errorLevel, - 'Version': version, - 'StructuredAppend': structuredAppend - }; - } - - /// Converts a list of JSON objects to a list of QrParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of QrParams instances. - static List listFromJson(List json) { - return json.map((value) => QrParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/qr_version.dart b/lib/src/model/qr_version.dart deleted file mode 100644 index 16cce03..0000000 --- a/lib/src/model/qr_version.dart +++ /dev/null @@ -1,261 +0,0 @@ -/// -/// QRVersion: [Auto, Version01, Version02, Version03, Version04, Version05, Version06, Version07, Version08, Version09, Version10, Version11, Version12, Version13, Version14, Version15, Version16, Version17, Version18, Version19, Version20, Version21, Version22, Version23, Version24, Version25, Version26, Version27, Version28, Version29, Version30, Version31, Version32, Version33, Version34, Version35, Version36, Version37, Version38, Version39, Version40, VersionM1, VersionM2, VersionM3, VersionM4] -class QRVersion { - /// The underlying value of QRVersion enum. - late final String _value; - - QRVersion._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Auto = QRVersion._internal("Auto"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version01 = QRVersion._internal("Version01"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version02 = QRVersion._internal("Version02"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version03 = QRVersion._internal("Version03"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version04 = QRVersion._internal("Version04"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version05 = QRVersion._internal("Version05"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version06 = QRVersion._internal("Version06"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version07 = QRVersion._internal("Version07"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version08 = QRVersion._internal("Version08"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version09 = QRVersion._internal("Version09"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version10 = QRVersion._internal("Version10"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version11 = QRVersion._internal("Version11"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version12 = QRVersion._internal("Version12"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version13 = QRVersion._internal("Version13"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version14 = QRVersion._internal("Version14"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version15 = QRVersion._internal("Version15"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version16 = QRVersion._internal("Version16"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version17 = QRVersion._internal("Version17"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version18 = QRVersion._internal("Version18"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version19 = QRVersion._internal("Version19"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version20 = QRVersion._internal("Version20"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version21 = QRVersion._internal("Version21"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version22 = QRVersion._internal("Version22"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version23 = QRVersion._internal("Version23"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version24 = QRVersion._internal("Version24"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version25 = QRVersion._internal("Version25"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version26 = QRVersion._internal("Version26"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version27 = QRVersion._internal("Version27"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version28 = QRVersion._internal("Version28"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version29 = QRVersion._internal("Version29"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version30 = QRVersion._internal("Version30"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version31 = QRVersion._internal("Version31"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version32 = QRVersion._internal("Version32"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version33 = QRVersion._internal("Version33"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version34 = QRVersion._internal("Version34"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version35 = QRVersion._internal("Version35"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version36 = QRVersion._internal("Version36"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version37 = QRVersion._internal("Version37"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version38 = QRVersion._internal("Version38"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version39 = QRVersion._internal("Version39"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion Version40 = QRVersion._internal("Version40"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion VersionM1 = QRVersion._internal("VersionM1"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion VersionM2 = QRVersion._internal("VersionM2"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion VersionM3 = QRVersion._internal("VersionM3"); - - /// - // ignore: non_constant_identifier_names - static final QRVersion VersionM4 = QRVersion._internal("VersionM4"); - - /// Creates a QRVersion instance from a JSON representation. - QRVersion.fromJson(dynamic data) { - switch (data) { - case "Auto": - case "Version01": - case "Version02": - case "Version03": - case "Version04": - case "Version05": - case "Version06": - case "Version07": - case "Version08": - case "Version09": - case "Version10": - case "Version11": - case "Version12": - case "Version13": - case "Version14": - case "Version15": - case "Version16": - case "Version17": - case "Version18": - case "Version19": - case "Version20": - case "Version21": - case "Version22": - case "Version23": - case "Version24": - case "Version25": - case "Version26": - case "Version27": - case "Version28": - case "Version29": - case "Version30": - case "Version31": - case "Version32": - case "Version33": - case "Version34": - case "Version35": - case "Version36": - case "Version37": - case "Version38": - case "Version39": - case "Version40": - case "VersionM1": - case "VersionM2": - case "VersionM3": - case "VersionM4": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of QRVersion. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of QRVersion instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of QRVersion instances. - static List listFromJson(List json) { - return json.map((value) => QRVersion.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/reader_params.dart b/lib/src/model/reader_params.dart deleted file mode 100644 index 371de19..0000000 --- a/lib/src/model/reader_params.dart +++ /dev/null @@ -1,219 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package -import '../../aspose_barcode_cloud.dart'; - -/// Represents BarcodeReader object. -class ReaderParams { - /// The type of barcode to read. - DecodeBarcodeType? type; - - /// Multiple barcode types to read. - List? types = []; - - /// Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies - ChecksumValidation? checksumValidation; - - /// A flag which force engine to detect codetext encoding for Unicode. - bool? detectEncoding; - - /// Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. - PresetType? preset; - - /// Set X of top left corner of area for recognition. - int? rectX; - - /// Set Y of top left corner of area for recognition. - int? rectY; - - /// Set Width of area for recognition. - int? rectWidth; - - /// Set Height of area for recognition. - int? rectHeight; - - /// Value indicating whether FNC symbol strip must be done. - bool? stripFNC; - - /// Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. - int? timeout; - - /// Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. - int? medianSmoothingWindowSize; - - /// Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. - bool? allowMedianSmoothing; - - /// Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. - bool? allowComplexBackground; - - /// Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes. Slow mode which helps only for dashed barcodes which consist from spots. - bool? allowDatamatrixIndustrialBarcodes; - - /// Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms. Mode helps to recognize barcodes which are noised and blurred but captured with high resolution. - bool? allowDecreasedImage; - - /// Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes. - bool? allowDetectScanGap; - - /// Allows engine to recognize barcodes which has incorrect checksum or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text. - bool? allowIncorrectBarcodes; - - /// Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background. - bool? allowInvertImage; - - /// Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize slightly damaged Postal barcodes. - bool? allowMicroWhiteSpotsRemoving; - - /// Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image. Mode helps to quickly recognize generated barcodes from Internet. - bool? allowOneDFastBarcodesDetector; - - /// Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern. - bool? allowOneDWipedBarsRestoration; - - /// Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes. - bool? allowQRMicroQrRestoration; - - /// Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is. - bool? allowRegularImage; - - /// Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots. - bool? allowSaltAndPepperFiltering; - - /// Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. - bool? allowWhiteSpotsRemoving; - - /// Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. - bool? checkMore1DVariants; - - /// Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. - bool? fastScanOnly; - - /// Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. - bool? allowAdditionalRestorations; - - /// Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. - double? regionLikelihoodThresholdPercent; - - /// Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. - List? scanWindowSizes = []; - - /// Similarity coefficient depends on how homogeneous barcodes are. Use high value for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] - double? similarity; - - /// Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time. - bool? skipDiagonalSearch; - - /// Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. - bool? readTinyBarcodes; - - /// Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. - CustomerInformationInterpretingType? australianPostEncodingTable; - - /// The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequence \"333\" of filling patterns is decoded as letter \"z\". - bool? ignoreEndingFillingPatternsForCTable; - - /// Constructor - ReaderParams(); - - @override - String toString() { - return 'ReaderParams[type=$type, types=$types, checksumValidation=$checksumValidation, detectEncoding=$detectEncoding, preset=$preset, rectX=$rectX, rectY=$rectY, rectWidth=$rectWidth, rectHeight=$rectHeight, stripFNC=$stripFNC, timeout=$timeout, medianSmoothingWindowSize=$medianSmoothingWindowSize, allowMedianSmoothing=$allowMedianSmoothing, allowComplexBackground=$allowComplexBackground, allowDatamatrixIndustrialBarcodes=$allowDatamatrixIndustrialBarcodes, allowDecreasedImage=$allowDecreasedImage, allowDetectScanGap=$allowDetectScanGap, allowIncorrectBarcodes=$allowIncorrectBarcodes, allowInvertImage=$allowInvertImage, allowMicroWhiteSpotsRemoving=$allowMicroWhiteSpotsRemoving, allowOneDFastBarcodesDetector=$allowOneDFastBarcodesDetector, allowOneDWipedBarsRestoration=$allowOneDWipedBarsRestoration, allowQRMicroQrRestoration=$allowQRMicroQrRestoration, allowRegularImage=$allowRegularImage, allowSaltAndPepperFiltering=$allowSaltAndPepperFiltering, allowWhiteSpotsRemoving=$allowWhiteSpotsRemoving, checkMore1DVariants=$checkMore1DVariants, fastScanOnly=$fastScanOnly, allowAdditionalRestorations=$allowAdditionalRestorations, regionLikelihoodThresholdPercent=$regionLikelihoodThresholdPercent, scanWindowSizes=$scanWindowSizes, similarity=$similarity, skipDiagonalSearch=$skipDiagonalSearch, readTinyBarcodes=$readTinyBarcodes, australianPostEncodingTable=$australianPostEncodingTable, ignoreEndingFillingPatternsForCTable=$ignoreEndingFillingPatternsForCTable, ]'; - } - - /// Creates a ReaderParams instance from a JSON representation. - ReaderParams.fromJson(Map json) { - type = DecodeBarcodeType.fromJson(json['type']); - types = DecodeBarcodeType.listFromJson(json['types']); - checksumValidation = - ChecksumValidation.fromJson(json['checksumValidation']); - detectEncoding = json['detectEncoding']; - preset = PresetType.fromJson(json['preset']); - rectX = json['rectX']; - rectY = json['rectY']; - rectWidth = json['rectWidth']; - rectHeight = json['rectHeight']; - stripFNC = json['stripFNC']; - timeout = json['timeout']; - medianSmoothingWindowSize = json['medianSmoothingWindowSize']; - allowMedianSmoothing = json['allowMedianSmoothing']; - allowComplexBackground = json['allowComplexBackground']; - allowDatamatrixIndustrialBarcodes = - json['allowDatamatrixIndustrialBarcodes']; - allowDecreasedImage = json['allowDecreasedImage']; - allowDetectScanGap = json['allowDetectScanGap']; - allowIncorrectBarcodes = json['allowIncorrectBarcodes']; - allowInvertImage = json['allowInvertImage']; - allowMicroWhiteSpotsRemoving = json['allowMicroWhiteSpotsRemoving']; - allowOneDFastBarcodesDetector = json['allowOneDFastBarcodesDetector']; - allowOneDWipedBarsRestoration = json['allowOneDWipedBarsRestoration']; - allowQRMicroQrRestoration = json['allowQRMicroQrRestoration']; - allowRegularImage = json['allowRegularImage']; - allowSaltAndPepperFiltering = json['allowSaltAndPepperFiltering']; - allowWhiteSpotsRemoving = json['allowWhiteSpotsRemoving']; - checkMore1DVariants = json['checkMore1DVariants']; - fastScanOnly = json['fastScanOnly']; - allowAdditionalRestorations = json['allowAdditionalRestorations']; - regionLikelihoodThresholdPercent = - json['regionLikelihoodThresholdPercent']?.toDouble(); - scanWindowSizes = - (json['scanWindowSizes'] as List).map((item) => item as int).toList(); - similarity = json['similarity']?.toDouble(); - skipDiagonalSearch = json['skipDiagonalSearch']; - readTinyBarcodes = json['readTinyBarcodes']; - australianPostEncodingTable = CustomerInformationInterpretingType.fromJson( - json['australianPostEncodingTable']); - ignoreEndingFillingPatternsForCTable = - json['ignoreEndingFillingPatternsForCTable']; - } - - /// Returns a JSON representation of ReaderParams. - Map toJson() { - return { - 'Type': type, - 'Types': types, - 'ChecksumValidation': checksumValidation, - 'DetectEncoding': detectEncoding, - 'Preset': preset, - 'RectX': rectX, - 'RectY': rectY, - 'RectWidth': rectWidth, - 'RectHeight': rectHeight, - 'StripFNC': stripFNC, - 'Timeout': timeout, - 'MedianSmoothingWindowSize': medianSmoothingWindowSize, - 'AllowMedianSmoothing': allowMedianSmoothing, - 'AllowComplexBackground': allowComplexBackground, - 'AllowDatamatrixIndustrialBarcodes': allowDatamatrixIndustrialBarcodes, - 'AllowDecreasedImage': allowDecreasedImage, - 'AllowDetectScanGap': allowDetectScanGap, - 'AllowIncorrectBarcodes': allowIncorrectBarcodes, - 'AllowInvertImage': allowInvertImage, - 'AllowMicroWhiteSpotsRemoving': allowMicroWhiteSpotsRemoving, - 'AllowOneDFastBarcodesDetector': allowOneDFastBarcodesDetector, - 'AllowOneDWipedBarsRestoration': allowOneDWipedBarsRestoration, - 'AllowQRMicroQrRestoration': allowQRMicroQrRestoration, - 'AllowRegularImage': allowRegularImage, - 'AllowSaltAndPepperFiltering': allowSaltAndPepperFiltering, - 'AllowWhiteSpotsRemoving': allowWhiteSpotsRemoving, - 'CheckMore1DVariants': checkMore1DVariants, - 'FastScanOnly': fastScanOnly, - 'AllowAdditionalRestorations': allowAdditionalRestorations, - 'RegionLikelihoodThresholdPercent': regionLikelihoodThresholdPercent, - 'ScanWindowSizes': scanWindowSizes, - 'Similarity': similarity, - 'SkipDiagonalSearch': skipDiagonalSearch, - 'ReadTinyBarcodes': readTinyBarcodes, - 'AustralianPostEncodingTable': australianPostEncodingTable, - 'IgnoreEndingFillingPatternsForCTable': - ignoreEndingFillingPatternsForCTable - }; - } - - /// Converts a list of JSON objects to a list of ReaderParams instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of ReaderParams instances. - static List listFromJson(List json) { - return json.map((value) => ReaderParams.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/recognition_image_kind.dart b/lib/src/model/recognition_image_kind.dart new file mode 100644 index 0000000..e782589 --- /dev/null +++ b/lib/src/model/recognition_image_kind.dart @@ -0,0 +1,54 @@ +/// Kind of image to recognize +/// RecognitionImageKind: [Photo, ScannedDocument, ClearImage] +class RecognitionImageKind { + /// The underlying value of RecognitionImageKind enum. + late final String _value; + + RecognitionImageKind._internal(this._value); + + /// Kind of image to recognize + // ignore: non_constant_identifier_names + static final RecognitionImageKind Photo = + RecognitionImageKind._internal("Photo"); + + /// Kind of image to recognize + // ignore: non_constant_identifier_names + static final RecognitionImageKind ScannedDocument = + RecognitionImageKind._internal("ScannedDocument"); + + /// Kind of image to recognize + // ignore: non_constant_identifier_names + static final RecognitionImageKind ClearImage = + RecognitionImageKind._internal("ClearImage"); + + /// Creates a RecognitionImageKind instance from a JSON representation. + RecognitionImageKind.fromJson(dynamic data) { + switch (data) { + case 'Photo': + case 'ScannedDocument': + case 'ClearImage': + _value = data; + break; + default: + throw Exception('Unknown enum value to decode: $data'); + } + } + + /// Returns a JSON representation of RecognitionImageKind. + String? toJson() { + return _value; + } + + @override + String toString() { + return _value.toString(); + } + + /// Converts a list of JSON objects to a list of RecognitionImageKind instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of RecognitionImageKind instances. + static List listFromJson(List json) { + return json.map((value) => RecognitionImageKind.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/recognition_mode.dart b/lib/src/model/recognition_mode.dart new file mode 100644 index 0000000..2c0bf6a --- /dev/null +++ b/lib/src/model/recognition_mode.dart @@ -0,0 +1,52 @@ +/// Recognition mode. +/// RecognitionMode: [Fast, Normal, Excellent] +class RecognitionMode { + /// The underlying value of RecognitionMode enum. + late final String _value; + + RecognitionMode._internal(this._value); + + /// Recognition mode. + // ignore: non_constant_identifier_names + static final RecognitionMode Fast = RecognitionMode._internal("Fast"); + + /// Recognition mode. + // ignore: non_constant_identifier_names + static final RecognitionMode Normal = RecognitionMode._internal("Normal"); + + /// Recognition mode. + // ignore: non_constant_identifier_names + static final RecognitionMode Excellent = + RecognitionMode._internal("Excellent"); + + /// Creates a RecognitionMode instance from a JSON representation. + RecognitionMode.fromJson(dynamic data) { + switch (data) { + case 'Fast': + case 'Normal': + case 'Excellent': + _value = data; + break; + default: + throw Exception('Unknown enum value to decode: $data'); + } + } + + /// Returns a JSON representation of RecognitionMode. + String? toJson() { + return _value; + } + + @override + String toString() { + return _value.toString(); + } + + /// Converts a list of JSON objects to a list of RecognitionMode instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of RecognitionMode instances. + static List listFromJson(List json) { + return json.map((value) => RecognitionMode.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/recognize_base64_request.dart b/lib/src/model/recognize_base64_request.dart new file mode 100644 index 0000000..6948b58 --- /dev/null +++ b/lib/src/model/recognize_base64_request.dart @@ -0,0 +1,61 @@ +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: deprecated_member_use_from_same_package +import '../../aspose_barcode_cloud.dart'; + +/// Barcode recognize request +class RecognizeBase64Request { + /// Array of decode types to find on barcode + + late List barcodeTypes; + + /// Barcode image bytes encoded as base-64. + + late String fileBase64; + + /// recognitionMode + //enum recognitionModeEnum { Fast, Normal, Excellent, }; + RecognitionMode? recognitionMode; + + /// recognitionImageKind + //enum recognitionImageKindEnum { Photo, ScannedDocument, ClearImage, }; + RecognitionImageKind? recognitionImageKind; + + /// Constructor + RecognizeBase64Request(this.barcodeTypes, this.fileBase64, + [this.recognitionMode, this.recognitionImageKind]); + + @override + String toString() { + return 'RecognizeBase64Request[barcodeTypes=$barcodeTypes, fileBase64=$fileBase64, recognitionMode=$recognitionMode, recognitionImageKind=$recognitionImageKind, ]'; + } + + /// Creates a RecognizeBase64Request instance from a JSON representation. + RecognizeBase64Request.fromJson(Map json) { + barcodeTypes = DecodeBarcodeType.listFromJson(json['barcodeTypes']); + fileBase64 = json['fileBase64']; + recognitionMode = json['recognitionMode'] == null + ? null + : RecognitionMode.fromJson(json['recognitionMode']); + recognitionImageKind = json['recognitionImageKind'] == null + ? null + : RecognitionImageKind.fromJson(json['recognitionImageKind']); + } + + /// Returns a JSON representation of RecognizeBase64Request. + Map toJson() { + return { + 'barcodeTypes': barcodeTypes, + 'fileBase64': fileBase64, + 'recognitionMode': recognitionMode, + 'recognitionImageKind': recognitionImageKind + }; + } + + /// Converts a list of JSON objects to a list of RecognizeBase64Request instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of RecognizeBase64Request instances. + static List listFromJson(List json) { + return json.map((value) => RecognizeBase64Request.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/region_point.dart b/lib/src/model/region_point.dart index d1fca1b..ebfe2e4 100644 --- a/lib/src/model/region_point.dart +++ b/lib/src/model/region_point.dart @@ -4,28 +4,30 @@ /// Wrapper around Drawing.Point for proper specification. class RegionPoint { /// X-coordinate - int? X; + + int? x; /// Y-coordinate - int? Y; + + int? y; /// Constructor - RegionPoint(); + RegionPoint([this.x, this.y]); @override String toString() { - return 'RegionPoint[X=$X, Y=$Y, ]'; + return 'RegionPoint[x=$x, y=$y, ]'; } /// Creates a RegionPoint instance from a JSON representation. RegionPoint.fromJson(Map json) { - X = json['X']; - Y = json['Y']; + x = json['x']; + y = json['y']; } /// Returns a JSON representation of RegionPoint. Map toJson() { - return {'X': X, 'Y': Y}; + return {'x': x, 'y': y}; } /// Converts a list of JSON objects to a list of RegionPoint instances. diff --git a/lib/src/model/result_image_info.dart b/lib/src/model/result_image_info.dart deleted file mode 100644 index ac80208..0000000 --- a/lib/src/model/result_image_info.dart +++ /dev/null @@ -1,46 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Created image info. -class ResultImageInfo { - /// Result file size. - int? fileSize; - - /// Result image width. - int? imageWidth; - - /// Result image height. - int? imageHeight; - - /// Constructor - ResultImageInfo(); - - @override - String toString() { - return 'ResultImageInfo[fileSize=$fileSize, imageWidth=$imageWidth, imageHeight=$imageHeight, ]'; - } - - /// Creates a ResultImageInfo instance from a JSON representation. - ResultImageInfo.fromJson(Map json) { - fileSize = json['fileSize']; - imageWidth = json['imageWidth']; - imageHeight = json['imageHeight']; - } - - /// Returns a JSON representation of ResultImageInfo. - Map toJson() { - return { - 'FileSize': fileSize, - 'ImageWidth': imageWidth, - 'ImageHeight': imageHeight - }; - } - - /// Converts a list of JSON objects to a list of ResultImageInfo instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of ResultImageInfo instances. - static List listFromJson(List json) { - return json.map((value) => ResultImageInfo.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/scan_base64_request.dart b/lib/src/model/scan_base64_request.dart new file mode 100644 index 0000000..32d1603 --- /dev/null +++ b/lib/src/model/scan_base64_request.dart @@ -0,0 +1,37 @@ +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: deprecated_member_use_from_same_package + +/// Scan barcode request. +class ScanBase64Request { + /// Barcode image bytes encoded as base-64. + + late String fileBase64; + + /// Constructor + ScanBase64Request( + this.fileBase64, + ); + + @override + String toString() { + return 'ScanBase64Request[fileBase64=$fileBase64, ]'; + } + + /// Creates a ScanBase64Request instance from a JSON representation. + ScanBase64Request.fromJson(Map json) { + fileBase64 = json['fileBase64']; + } + + /// Returns a JSON representation of ScanBase64Request. + Map toJson() { + return {'fileBase64': fileBase64}; + } + + /// Converts a list of JSON objects to a list of ScanBase64Request instances. + /// + /// @param json The list of JSON objects to convert. + /// @return A list of ScanBase64Request instances. + static List listFromJson(List json) { + return json.map((value) => ScanBase64Request.fromJson(value)).toList(); + } +} diff --git a/lib/src/model/storage_exist.dart b/lib/src/model/storage_exist.dart deleted file mode 100644 index 9315c94..0000000 --- a/lib/src/model/storage_exist.dart +++ /dev/null @@ -1,34 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// Storage exists -class StorageExist { - /// Shows that the storage exists. - bool? exists; - - /// Constructor - StorageExist(); - - @override - String toString() { - return 'StorageExist[exists=$exists, ]'; - } - - /// Creates a StorageExist instance from a JSON representation. - StorageExist.fromJson(Map json) { - exists = json['exists']; - } - - /// Returns a JSON representation of StorageExist. - Map toJson() { - return {'Exists': exists}; - } - - /// Converts a list of JSON objects to a list of StorageExist instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of StorageExist instances. - static List listFromJson(List json) { - return json.map((value) => StorageExist.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/storage_file.dart b/lib/src/model/storage_file.dart deleted file mode 100644 index 7361175..0000000 --- a/lib/src/model/storage_file.dart +++ /dev/null @@ -1,59 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// File or folder information -class StorageFile { - /// File or folder name. - String? name; - - /// True if it is a folder. - bool? isFolder; - - /// File or folder last modified DateTime. - DateTime? modifiedDate; - - /// File or folder size. - int? size; - - /// File or folder path. - String? path; - - /// Constructor - StorageFile(); - - @override - String toString() { - return 'StorageFile[name=$name, isFolder=$isFolder, modifiedDate=$modifiedDate, size=$size, path=$path, ]'; - } - - /// Creates a StorageFile instance from a JSON representation. - StorageFile.fromJson(Map json) { - name = json['name']; - isFolder = json['isFolder']; - modifiedDate = json['modifiedDate'] == null - ? null - : DateTime.parse(json['modifiedDate']); - size = json['size']; - path = json['path']; - } - - /// Returns a JSON representation of StorageFile. - Map toJson() { - return { - 'Name': name, - 'IsFolder': isFolder, - 'ModifiedDate': - modifiedDate == null ? '' : modifiedDate!.toUtc().toIso8601String(), - 'Size': size, - 'Path': path - }; - } - - /// Converts a list of JSON objects to a list of StorageFile instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of StorageFile instances. - static List listFromJson(List json) { - return json.map((value) => StorageFile.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/structured_append.dart b/lib/src/model/structured_append.dart deleted file mode 100644 index 1f62a5a..0000000 --- a/lib/src/model/structured_append.dart +++ /dev/null @@ -1,46 +0,0 @@ -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package - -/// QR structured append parameters. -class StructuredAppend { - /// The index of the QR structured append mode barcode. Index starts from 0. - int? sequenceIndicator; - - /// QR structured append mode barcodes quantity. Max value is 16. - int? totalCount; - - /// QR structured append mode parity data. - int? parityByte; - - /// Constructor - StructuredAppend(); - - @override - String toString() { - return 'StructuredAppend[sequenceIndicator=$sequenceIndicator, totalCount=$totalCount, parityByte=$parityByte, ]'; - } - - /// Creates a StructuredAppend instance from a JSON representation. - StructuredAppend.fromJson(Map json) { - sequenceIndicator = json['sequenceIndicator']; - totalCount = json['totalCount']; - parityByte = json['parityByte']; - } - - /// Returns a JSON representation of StructuredAppend. - Map toJson() { - return { - 'SequenceIndicator': sequenceIndicator, - 'TotalCount': totalCount, - 'ParityByte': parityByte - }; - } - - /// Converts a list of JSON objects to a list of StructuredAppend instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of StructuredAppend instances. - static List listFromJson(List json) { - return json.map((value) => StructuredAppend.fromJson(value)).toList(); - } -} diff --git a/lib/src/model/text_alignment.dart b/lib/src/model/text_alignment.dart deleted file mode 100644 index f30431e..0000000 --- a/lib/src/model/text_alignment.dart +++ /dev/null @@ -1,51 +0,0 @@ -/// -/// TextAlignment: [Left, Center, Right] -class TextAlignment { - /// The underlying value of TextAlignment enum. - late final String _value; - - TextAlignment._internal(this._value); - - /// - // ignore: non_constant_identifier_names - static final TextAlignment Left = TextAlignment._internal("Left"); - - /// - // ignore: non_constant_identifier_names - static final TextAlignment Center = TextAlignment._internal("Center"); - - /// - // ignore: non_constant_identifier_names - static final TextAlignment Right = TextAlignment._internal("Right"); - - /// Creates a TextAlignment instance from a JSON representation. - TextAlignment.fromJson(dynamic data) { - switch (data) { - case "Left": - case "Center": - case "Right": - _value = data; - break; - default: - throw Exception('Unknown enum value to decode: $data'); - } - } - - /// Returns a JSON representation of TextAlignment. - String? toJson() { - return _value; - } - - @override - String toString() { - return _value.toString(); - } - - /// Converts a list of JSON objects to a list of TextAlignment instances. - /// - /// @param json The list of JSON objects to convert. - /// @return A list of TextAlignment instances. - static List listFromJson(List json) { - return json.map((value) => TextAlignment.fromJson(value)).toList(); - } -} diff --git a/pubspec.yaml b/pubspec.yaml index 322dbd4..1aea87e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: aspose_barcode_cloud description: This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily -version: 1.24.12 +version: 4.25.1 homepage: https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dart platforms: diff --git a/qr.png b/qr.png index e14dff06538a9a917d7bb902f4697b9cf5cc6be9..c04b484cd45251f2c84dac979ac0d53b1bc8e860 100644 GIT binary patch delta 454 zcmV;%0XhDo1JVN_iBL{Q4GJ0x0000DNk~Le0000#0000#2nGNE09RiS-;p60e{xAg zK~#90?37CqgFpyGz5k_?ed44)phjt`T<8oz@G)*r5E^rhhODYzX$$ocoeER zR7ZtT{RbW;s}F15eRur?o`vrYe|7xTF_--uro30|PVlT*dd!;O)OA?uFhv3{j4S$% z>Y(p!brn;AH^y4cM|o)iG7ae^+f@*SZ8A z!B?YuJyv=4Imuzgt>LRjFt w{L~l?{{{d6|Nod)SLgr$8~_GML_t&o0A)kJ$F3W?q5uE@07*qoM6N<$f~D%&J^%m! delta 406 zcmV;H0crly1ET{WiBL{Q4GJ0x0000DNk~Le0000t0000t2nGNE0I1v2Mv);He^p6D zK~#90?UO-{!!Qg3^Z!q~rxXRd%usP#tP>63gG@>?fn*yOW+TJObhuUNaI13PaND+> zIy8^!>Tz_qlv)35|C?@=!OhC7f42Wkx5~&r8}hqancb&!IIYhvQ>cG-Ux(AWx{T(e zKJqIaE``FmM^e9o{2i`(w7*(ce~;t7;bx&Q-{z~E{&hI|4Cr&AaO77=S2`TsQ>~Cc z?MI(g#>K z82rOmA4C0BzoWyQg&s+My)VzR$_FSv=9l4gXnI_~oA01`*l(3_lW-~SY%#7@NH6;i z#c;?Dg`s(*mwks~@w51p-}TeI(&4nGrRkisR!D#P4#f_aKa%>KPV*ccE`^r65UJ12 zb#%Duas7Hvdz94o^jl?IJlyJZxK-(Jt8(dZ50T_?iGE+>CIA2c07*qoM6N<$f<4&H AQvd(} diff --git a/scripts/insert-credentials.py b/scripts/insert-credentials.py new file mode 100644 index 0000000..ef04943 --- /dev/null +++ b/scripts/insert-credentials.py @@ -0,0 +1,65 @@ +import sys +import json +import os + +def replace_values_in_file(text_file_path, json_file_path, output_folder_path): + """ + Replace placeholder values in a text file with values from a JSON file and save the updated file to an output folder. + + Args: + text_file_path (str): Path to the input text file. + json_file_path (str): Path to the JSON file containing replacement values. + output_folder_path (str): Path to the folder where the updated file will be saved. + """ + # Check if the JSON file exists + if not os.path.exists(json_file_path): + print(f"JSON file '{json_file_path}' does not exist. Writing input file as is.") + # Ensure the output folder exists + os.makedirs(output_folder_path, exist_ok=True) + + # Generate the output file path + output_file_path = os.path.join(output_folder_path, os.path.basename(text_file_path)) + + # Write the original content to the output file + with open(text_file_path, 'r') as text_file, open(output_file_path, 'w') as output_file: + output_file.write(text_file.read()) + return + + # Read the JSON file + with open(json_file_path, 'r') as json_file: + replacement_values = json.load(json_file) + + # Read the text file + with open(text_file_path, 'r') as text_file: + content = text_file.read() + + # Define default placeholder values + values_dict = { + "clientId": "Client Id from https://dashboard.aspose.cloud/applications", + "clientSecret": "Client Secret from https://dashboard.aspose.cloud/applications", + } + + # Replace the old values with the new values + for new_value_key, old_value in values_dict.items(): + if new_value_key in replacement_values: + content = content.replace(old_value, replacement_values[new_value_key]) + + # Ensure the output folder exists + os.makedirs(output_folder_path, exist_ok=True) + + # Generate the output file path + output_file_path = os.path.join(output_folder_path, os.path.basename(text_file_path)) + + # Write the updated content to the output file + with open(output_file_path, 'w') as output_file: + output_file.write(content) + + +if __name__ == "__main__": + if len(sys.argv) != 4: + print("Usage: python replace_values.py ") + else: + text_file_path = sys.argv[1] + json_file_path = sys.argv[2] + output_folder_path = sys.argv[3] + replace_values_in_file(text_file_path, json_file_path, output_folder_path) diff --git a/scripts/run_snippet.sh b/scripts/run_snippet.sh new file mode 100644 index 0000000..d61835f --- /dev/null +++ b/scripts/run_snippet.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -euo pipefail + +FILE_PATH=$1; +RUN_DIR=$2 +SCRIPT_DIR=$3 +CONFIG_FILE_PATH=$4 +echo "Run snippet file: $FILE_PATH" + +python ${SCRIPT_DIR}/insert-credentials.py $FILE_PATH $CONFIG_FILE_PATH $RUN_DIR + +dart ./$RUN_DIR/"${FILE_PATH##*/}" || exit 1 \ No newline at end of file diff --git a/scripts/run_snippets.sh b/scripts/run_snippets.sh new file mode 100644 index 0000000..f087c4c --- /dev/null +++ b/scripts/run_snippets.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -euo pipefail + +RUN_DIR="snippets_test" +SNIPPETS_DIR="snippets" +SCRIPT_DIR="scripts" +CONFIG_FILE_PATH="test/configuration.json" + +rm -rf "${RUN_DIR}" || true +mkdir -p "${RUN_DIR}" + +for file in $(find "${SNIPPETS_DIR}" -name "*.dart"); do + ${SCRIPT_DIR}/run_snippet.sh "$file" $RUN_DIR $SCRIPT_DIR $CONFIG_FILE_PATH || { echo "Error processing $file"; exit 1; } +done + +rm -rf "${RUN_DIR}" || true diff --git a/snippets/generate/appearance/generate_body.dart b/snippets/generate/appearance/generate_body.dart new file mode 100644 index 0000000..5bcaa02 --- /dev/null +++ b/snippets/generate/appearance/generate_body.dart @@ -0,0 +1,42 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final file = File( + "${Directory.current.path}${Platform.pathSeparator}Code39.jpeg", + ); + + final imageParams = BarcodeImageParams() + ..foregroundColor = "#FF0000" + ..backgroundColor = "#FFFF00" + ..imageFormat = BarcodeImageFormat.Jpeg + ..rotationAngle = 90; + + final generateParams = GenerateParams(EncodeBarcodeType.Code39, + EncodeData("Aspose", EncodeDataType.StringData), imageParams); + + final Uint8List response = await generateApi.generateBody(generateParams); + + file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/appearance/generate_get.dart b/snippets/generate/appearance/generate_get.dart new file mode 100644 index 0000000..7eb34e5 --- /dev/null +++ b/snippets/generate/appearance/generate_get.dart @@ -0,0 +1,39 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final fileName = '${Directory.current.path}${Platform.pathSeparator}qr.png'; + + final Uint8List response = await generateApi.generate( + EncodeBarcodeType.QR, "Aspose.BarCode.Cloud", + imageFormat: BarcodeImageFormat.Png, + foregroundColor: "Black", + backgroundColor: "White", + resolution: 300, + imageHeight: 200, + imageWidth: 200, + textLocation: CodeLocation.Below); + + await File(fileName).writeAsBytes(response); + + print("File '$fileName' generated."); +} diff --git a/snippets/generate/appearance/generate_multipart.dart b/snippets/generate/appearance/generate_multipart.dart new file mode 100644 index 0000000..695b814 --- /dev/null +++ b/snippets/generate/appearance/generate_multipart.dart @@ -0,0 +1,38 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final file = File( + "${Directory.current.path}${Platform.pathSeparator}Pdf417.svg", + ); + + final Uint8List barcodeStream = await generateApi.generateMultipart( + EncodeBarcodeType.Pdf417, + "Aspose.BarCode.Cloud", + textLocation: CodeLocation.Above, + imageFormat: BarcodeImageFormat.Svg, + ); + + file.writeAsBytes(barcodeStream); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/save/generate_body.dart b/snippets/generate/save/generate_body.dart new file mode 100644 index 0000000..98841f3 --- /dev/null +++ b/snippets/generate/save/generate_body.dart @@ -0,0 +1,42 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final fileName = + "${Directory.current.path}${Platform.pathSeparator}Pdf417.png"; + + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final generateParams = GenerateParams( + EncodeBarcodeType.Pdf417, + EncodeData("Aspose.BarCode.Cloud", EncodeDataType.StringData), + BarcodeImageParams() + ..foregroundColor = "#FF5733" + ..backgroundColor = "#FFFFFF" + ..imageFormat = BarcodeImageFormat.Jpeg, + ); + + final Uint8List response = await generateApi.generateBody(generateParams); + + final file = File(fileName); + file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/save/generate_get.dart b/snippets/generate/save/generate_get.dart new file mode 100644 index 0000000..9786d05 --- /dev/null +++ b/snippets/generate/save/generate_get.dart @@ -0,0 +1,33 @@ +import 'dart:io'; +import 'dart:typed_data'; +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final fileName = + "${Directory.current.path}${Platform.pathSeparator}Code128.jpeg"; + + final Uint8List response = await generateApi.generate( + EncodeBarcodeType.Code128, "Aspose.BarCode.Cloud"); + + final file = File(fileName); + file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/save/generate_multipart.dart b/snippets/generate/save/generate_multipart.dart new file mode 100644 index 0000000..2ae8a14 --- /dev/null +++ b/snippets/generate/save/generate_multipart.dart @@ -0,0 +1,33 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final fileName = + "${Directory.current.path}${Platform.pathSeparator}Pdf417.png"; + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final Uint8List response = await generateApi.generateMultipart( + EncodeBarcodeType.Pdf417, "Aspose.BarCode.Cloud"); + + final file = File(fileName); + file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/set_colorscheme/generate_body.dart b/snippets/generate/set_colorscheme/generate_body.dart new file mode 100644 index 0000000..82947af --- /dev/null +++ b/snippets/generate/set_colorscheme/generate_body.dart @@ -0,0 +1,44 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final file = File( + "${Directory.current.path}${Platform.pathSeparator}Pdf417.png", + ); + + final imageParams = BarcodeImageParams(); + imageParams.foregroundColor = "#FF5733"; + imageParams.backgroundColor = "#FFFFFF"; + imageParams.imageFormat = BarcodeImageFormat.Jpeg; + + final generateParams = GenerateParams( + EncodeBarcodeType.Pdf417, + EncodeData("Aspose.BarCode.Cloud", EncodeDataType.StringData), + imageParams, + ); + + final Uint8List response = await generateApi.generateBody(generateParams); + + file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/set_colorscheme/generate_get.dart b/snippets/generate/set_colorscheme/generate_get.dart new file mode 100644 index 0000000..530db5f --- /dev/null +++ b/snippets/generate/set_colorscheme/generate_get.dart @@ -0,0 +1,36 @@ +import 'dart:io'; +import 'dart:typed_data'; +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final fileName = "${Directory.current.path}${Platform.pathSeparator}qr.png"; + + final Uint8List response = await generateApi.generate( + EncodeBarcodeType.QR, + "https://products.aspose.cloud/barcode/family/", + foregroundColor: "DarkBlue", + backgroundColor: "LightGray", + imageFormat: BarcodeImageFormat.Png, + ); + + await File(fileName).writeAsBytes(response); + + print("File '$fileName' generated."); +} diff --git a/snippets/generate/set_colorscheme/generate_multipart.dart b/snippets/generate/set_colorscheme/generate_multipart.dart new file mode 100644 index 0000000..8d85e16 --- /dev/null +++ b/snippets/generate/set_colorscheme/generate_multipart.dart @@ -0,0 +1,36 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final fileName = + '${Directory.current.path}${Platform.pathSeparator}Code39.png'; + + final Uint8List response = await generateApi.generateMultipart( + EncodeBarcodeType.Code39, "Aspose", + foregroundColor: "Green", + backgroundColor: "Yellow", + imageFormat: BarcodeImageFormat.Gif); + + await File(fileName).writeAsBytes(response); + + print("File '$fileName' generated."); +} diff --git a/snippets/generate/set_size/generate_body.dart b/snippets/generate/set_size/generate_body.dart new file mode 100644 index 0000000..b26526c --- /dev/null +++ b/snippets/generate/set_size/generate_body.dart @@ -0,0 +1,44 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final file = File( + "${Directory.current.path}${Platform.pathSeparator}Pdf417.png", + ); + + final generateParams = GenerateParams( + EncodeBarcodeType.Pdf417, + EncodeData("Aspose.BarCode.Cloud", EncodeDataType.StringData), + BarcodeImageParams() + ..imageFormat = BarcodeImageFormat.Png + ..imageHeight = 2 + ..imageWidth = 3 + ..resolution = 96 + ..units = GraphicsUnit.Inch, + ); + + final Uint8List response = await generateApi.generateBody(generateParams); + + file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/set_size/generate_get.dart b/snippets/generate/set_size/generate_get.dart new file mode 100644 index 0000000..d1e550e --- /dev/null +++ b/snippets/generate/set_size/generate_get.dart @@ -0,0 +1,40 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final fileName = '${Directory.current.path}${Platform.pathSeparator}qr.png'; + + final Uint8List response = await generateApi.generate( + EncodeBarcodeType.QR, + "Aspose.BarCode.Cloud", + foregroundColor: "Black", + backgroundColor: "White", + resolution: 300, + imageHeight: 200, + imageWidth: 200, + ); + + final file = File(fileName); + file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/set_size/generate_multipart.dart b/snippets/generate/set_size/generate_multipart.dart new file mode 100644 index 0000000..1b06e6e --- /dev/null +++ b/snippets/generate/set_size/generate_multipart.dart @@ -0,0 +1,37 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final fileName = + '${Directory.current.path}${Platform.pathSeparator}aztec.png'; + + final Uint8List response = await generateApi.generateMultipart( + EncodeBarcodeType.Aztec, "Aspose.BarCode.Cloud", + imageHeight: 200, + imageWidth: 200, + resolution: 150, + units: GraphicsUnit.Point); + + await File(fileName).writeAsBytes(response); + + print("File '$fileName' generated."); +} diff --git a/snippets/generate/set_text/generate_body.dart b/snippets/generate/set_text/generate_body.dart new file mode 100644 index 0000000..223a71c --- /dev/null +++ b/snippets/generate/set_text/generate_body.dart @@ -0,0 +1,38 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final fileName = + "${Directory.current.path}${Platform.pathSeparator}Pdf417.png"; + + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final postParams = GenerateParams( + EncodeBarcodeType.Pdf417, + EncodeData("QXNwb3NlLkJhckNvZGUuQ2xvdWQ=", EncodeDataType.Base64Bytes), + ); + + final Uint8List response = await generateApi.generateBody(postParams); + + final file = File(fileName); + file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/set_text/generate_get.dart b/snippets/generate/set_text/generate_get.dart new file mode 100644 index 0000000..3824743 --- /dev/null +++ b/snippets/generate/set_text/generate_get.dart @@ -0,0 +1,30 @@ +import 'dart:io'; +import 'dart:typed_data'; +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final fileName = "${Directory.current.path}${Platform.pathSeparator}qr.png"; + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final Uint8List response = + await generateApi.generate(EncodeBarcodeType.QR, "Aspose.BarCode.Cloud"); + final file = File(fileName); + file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/generate/set_text/generate_multipart.dart b/snippets/generate/set_text/generate_multipart.dart new file mode 100644 index 0000000..1787706 --- /dev/null +++ b/snippets/generate/set_text/generate_multipart.dart @@ -0,0 +1,34 @@ +import 'dart:io'; +import 'dart:typed_data'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (envToken != null) { + return Configuration(accessToken: envToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final fileName = + "${Directory.current.path}${Platform.pathSeparator}Code128.png"; + final configuration = makeConfiguration(); + final apiClient = ApiClient(configuration); + final generateApi = GenerateApi(apiClient); + + final Uint8List response = await generateApi.generateMultipart( + EncodeBarcodeType.Code128, "4173706F73652E426172436F64652E436C6F7564", + dataType: EncodeDataType.HexBytes); + + final file = File(fileName); + await file.writeAsBytes(response); + + print("File '${file.path}' generated."); +} diff --git a/snippets/manual_fetch_token.dart b/snippets/manual_fetch_token.dart new file mode 100644 index 0000000..15fb264 --- /dev/null +++ b/snippets/manual_fetch_token.dart @@ -0,0 +1,32 @@ +import 'dart:convert'; +import 'package:http/http.dart' as http; + +void main() async { + final clientId = "Client Id from https://dashboard.aspose.cloud/applications"; + final clientSecret = + "Client Secret from https://dashboard.aspose.cloud/applications"; + + final baseUrl = "https://id.aspose.cloud/"; + final endpoint = "connect/token"; + + final payload = { + "grant_type": "client_credentials", + "client_id": clientId, + "client_secret": clientSecret, + }; + + final response = await http.post( + Uri.parse(baseUrl + endpoint), + body: payload, + ); + + if (response.statusCode == 200) { + final token = jsonDecode(response.body)['access_token']; + print("Token recieved successfully"); + //Uncomment next line to view token. + //print(token); + } else { + throw Exception( + "HTTP error occurred: ${response.statusCode} - ${response.reasonPhrase}"); + } +} diff --git a/snippets/read/set_image_kind/recognize_body.dart b/snippets/read/set_image_kind/recognize_body.dart new file mode 100644 index 0000000..7c281f4 --- /dev/null +++ b/snippets/read/set_image_kind/recognize_body.dart @@ -0,0 +1,45 @@ +import 'dart:convert'; +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final fileName = + File("${Directory.current.path}${Platform.pathSeparator}aztec.png") + .absolute + .path; + final fileBytes = File(fileName).readAsBytesSync(); + final imageBase64 = base64Encode(fileBytes); + + final recognizeBase64Request = RecognizeBase64Request( + [DecodeBarcodeType.Aztec, DecodeBarcodeType.QR], + imageBase64, + )..recognitionImageKind = RecognitionImageKind.ScannedDocument; + + final BarcodeResponseList result = + await recognizeApi.recognizeBase64(recognizeBase64Request); + + if (result.barcodes.isNotEmpty) { + final barcode = result.barcodes[0]; + print( + "File '$fileName' recognized, results: value: '${barcode.barcodeValue}', type: ${barcode.type}"); + } else { + print("File '$fileName' recognized, but no barcodes found."); + } +} diff --git a/snippets/read/set_image_kind/recognize_get.dart b/snippets/read/set_image_kind/recognize_get.dart new file mode 100644 index 0000000..b75b1a4 --- /dev/null +++ b/snippets/read/set_image_kind/recognize_get.dart @@ -0,0 +1,29 @@ +import 'dart:io'; +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final imageUrl = + "https://products.aspose.app/barcode/scan/img/how-to/scan/step2.png"; + + final BarcodeResponseList result = + await recognizeApi.recognize(DecodeBarcodeType.QR, imageUrl); + + print( + "File '$imageUrl' recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/snippets/read/set_image_kind/recognize_multipart.dart b/snippets/read/set_image_kind/recognize_multipart.dart new file mode 100644 index 0000000..49e52c6 --- /dev/null +++ b/snippets/read/set_image_kind/recognize_multipart.dart @@ -0,0 +1,29 @@ +import 'dart:io'; +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final file = + await File("${Directory.current.path}${Platform.pathSeparator}Pdf417.png") + .readAsBytes(); + + final BarcodeResponseList result = await recognizeApi.recognizeMultipart( + DecodeBarcodeType.MostCommonlyUsed, file); + + print("File recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/snippets/read/set_quality/recognize_body.dart b/snippets/read/set_quality/recognize_body.dart new file mode 100644 index 0000000..0a7bfe8 --- /dev/null +++ b/snippets/read/set_quality/recognize_body.dart @@ -0,0 +1,40 @@ +import 'dart:convert'; +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final fileName = + File("${Directory.current.path}${Platform.pathSeparator}Pdf417.png") + .absolute + .path; + final fileBytes = File(fileName).readAsBytesSync(); + final imageBase64 = base64Encode(fileBytes); + + final recognizeBase64Request = RecognizeBase64Request( + [DecodeBarcodeType.Pdf417], + imageBase64, + ); + + final BarcodeResponseList result = + await recognizeApi.recognizeBase64(recognizeBase64Request); + + print( + "File '$fileName' recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/snippets/read/set_quality/recognize_get.dart b/snippets/read/set_quality/recognize_get.dart new file mode 100644 index 0000000..f1f3b8f --- /dev/null +++ b/snippets/read/set_quality/recognize_get.dart @@ -0,0 +1,30 @@ +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final result = await recognizeApi.recognize( + DecodeBarcodeType.QR, + "https://products.aspose.app/barcode/scan/img/how-to/scan/step2.png", + recognitionMode: RecognitionMode.Fast, + recognitionImageKind: RecognitionImageKind.Photo, + ); + + print("File recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/snippets/read/set_quality/recognize_multipart.dart b/snippets/read/set_quality/recognize_multipart.dart new file mode 100644 index 0000000..bf62868 --- /dev/null +++ b/snippets/read/set_quality/recognize_multipart.dart @@ -0,0 +1,30 @@ +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final file = + await File("${Directory.current.path}${Platform.pathSeparator}aztec.png") + .readAsBytes(); + + final BarcodeResponseList result = + await recognizeApi.recognizeMultipart(DecodeBarcodeType.Aztec, file); + + print("File recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/snippets/read/set_source/recognize_body.dart b/snippets/read/set_source/recognize_body.dart new file mode 100644 index 0000000..0e1a5bd --- /dev/null +++ b/snippets/read/set_source/recognize_body.dart @@ -0,0 +1,40 @@ +import 'dart:convert'; +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final fileName = + File("${Directory.current.path}${Platform.pathSeparator}qr.png") + .absolute + .path; + final fileBytes = File(fileName).readAsBytesSync(); + final imageBase64 = base64Encode(fileBytes); + + final recognizeBase64Request = RecognizeBase64Request( + [DecodeBarcodeType.QR], + imageBase64, + ); + + final BarcodeResponseList result = + await recognizeApi.recognizeBase64(recognizeBase64Request); + + print( + "File '$fileName' recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/snippets/read/set_source/recognize_get.dart b/snippets/read/set_source/recognize_get.dart new file mode 100644 index 0000000..f92e9ca --- /dev/null +++ b/snippets/read/set_source/recognize_get.dart @@ -0,0 +1,25 @@ +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final result = await recognizeApi.recognize( + DecodeBarcodeType.QR, + "https://products.aspose.app/barcode/scan/img/how-to/scan/step2.png", + ); + + if (result.barcodes.isNotEmpty) { + print("File recognized, result: '${result.barcodes[0].barcodeValue}'"); + } else { + print("No barcodes were recognized."); + } +} diff --git a/snippets/read/set_source/recognize_multipart.dart b/snippets/read/set_source/recognize_multipart.dart new file mode 100644 index 0000000..baef6df --- /dev/null +++ b/snippets/read/set_source/recognize_multipart.dart @@ -0,0 +1,36 @@ +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final file = + await File('${Directory.current.path}${Platform.pathSeparator}qr.png') + .readAsBytes(); + + final BarcodeResponseList result = + await recognizeApi.recognizeMultipart(DecodeBarcodeType.QR, file); + + if (result.barcodes.isNotEmpty) { + final barcode = result.barcodes[0]; + print( + "File recognized, results: value: '${barcode.barcodeValue}', type: ${barcode.type}"); + } else { + print("File recognized, but no barcodes found."); + } +} diff --git a/snippets/read/set_source/scan_body.dart b/snippets/read/set_source/scan_body.dart new file mode 100644 index 0000000..2ee8421 --- /dev/null +++ b/snippets/read/set_source/scan_body.dart @@ -0,0 +1,34 @@ +import 'dart:convert'; +import 'dart:io'; +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final scanApi = ScanApi(ApiClient(config)); + + final fileName = + File("${Directory.current.path}${Platform.pathSeparator}qr.png") + .absolute + .path; + final fileBytes = File(fileName).readAsBytesSync(); + final imageBase64 = base64Encode(fileBytes); + + final scanBase64Request = ScanBase64Request(imageBase64); + final result = await scanApi.scanBase64(scanBase64Request); + + print( + "File '$fileName' recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/snippets/read/set_source/scan_get.dart b/snippets/read/set_source/scan_get.dart new file mode 100644 index 0000000..2fb8ee0 --- /dev/null +++ b/snippets/read/set_source/scan_get.dart @@ -0,0 +1,34 @@ +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final scanApi = ScanApi(ApiClient(config)); + + final barcodeImageUrl = + "https://products.aspose.app/barcode/scan/img/how-to/scan/step2.png"; + + final BarcodeResponseList result = await scanApi.scan(barcodeImageUrl); + + if (result.barcodes.isNotEmpty) { + final barcode = result.barcodes[0]; + print( + "File '$barcodeImageUrl' recognized, results: value: '${barcode.barcodeValue}', type: ${barcode.type}"); + } else { + print("File '$barcodeImageUrl' recognized, but no barcodes found."); + } +} diff --git a/snippets/read/set_source/scan_multipart.dart b/snippets/read/set_source/scan_multipart.dart new file mode 100644 index 0000000..0acd3bf --- /dev/null +++ b/snippets/read/set_source/scan_multipart.dart @@ -0,0 +1,29 @@ +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final scanApi = ScanApi(ApiClient(config)); + + final file = + await File("${Directory.current.path}${Platform.pathSeparator}qr.png") + .readAsBytes(); + + final BarcodeResponseList result = await scanApi.scanMultipart(file); + + print("File recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/snippets/read/set_target_types/recognize_body.dart b/snippets/read/set_target_types/recognize_body.dart new file mode 100644 index 0000000..e106220 --- /dev/null +++ b/snippets/read/set_target_types/recognize_body.dart @@ -0,0 +1,42 @@ +import 'dart:convert'; +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final fileName = File( + "${Directory.current.path}${Platform.pathSeparator}qr_and_code128.png") + .absolute + .path; + final fileBytes = File(fileName).readAsBytesSync(); + final imageBase64 = base64Encode(fileBytes); + + final recognizeBase64Request = RecognizeBase64Request( + [DecodeBarcodeType.QR, DecodeBarcodeType.Code128], + imageBase64, + ); + + final BarcodeResponseList result = + await recognizeApi.recognizeBase64(recognizeBase64Request); + + print("File '$fileName' recognized, results: "); + for (final barcode in result.barcodes) { + print("Value: '${barcode.barcodeValue}', type: ${barcode.type}"); + } +} diff --git a/snippets/read/set_target_types/recognize_get.dart b/snippets/read/set_target_types/recognize_get.dart new file mode 100644 index 0000000..733f600 --- /dev/null +++ b/snippets/read/set_target_types/recognize_get.dart @@ -0,0 +1,29 @@ +import 'dart:io'; +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final fileUrl = + "https://products.aspose.app/barcode/scan/img/how-to/scan/step2.png"; + + final BarcodeResponseList result = + await recognizeApi.recognize(DecodeBarcodeType.MostCommonlyUsed, fileUrl); + + print( + "File '$fileUrl' recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/snippets/read/set_target_types/recognize_multipart.dart b/snippets/read/set_target_types/recognize_multipart.dart new file mode 100644 index 0000000..4844180 --- /dev/null +++ b/snippets/read/set_target_types/recognize_multipart.dart @@ -0,0 +1,30 @@ +import 'dart:io'; + +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; + +Configuration makeConfiguration() { + final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } +} + +Future main() async { + final config = makeConfiguration(); + final recognizeApi = RecognizeApi(ApiClient(config)); + + final file = + await File("${Directory.current.path}${Platform.pathSeparator}Pdf417.png") + .readAsBytes(); + + final BarcodeResponseList result = + await recognizeApi.recognizeMultipart(DecodeBarcodeType.Pdf417, file); + + print("File recognized, result: '${result.barcodes[0].barcodeValue}'"); +} diff --git a/test/barcode_api_test.dart b/test/barcode_api_test.dart deleted file mode 100644 index 7d050e0..0000000 --- a/test/barcode_api_test.dart +++ /dev/null @@ -1,35 +0,0 @@ -import 'dart:typed_data'; - -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -import 'package:http/http.dart' show MultipartFile; -import 'package:test/test.dart'; - -import 'test_config.dart'; - -void main() { - test( - '.getBarcodeGenerate generates and then .postBarcodeRecognizeFromUrlOrContent recognizes it', - () async { - // Generate image with barcode - final Uint8List generated = - await TestConfig.barcodeApi.getBarcodeGenerate('QR', 'text'); - - expect(generated, isNotNull); - expect(generated, isNotEmpty); - - // Recognize generated image - final barcode = MultipartFile.fromBytes('image', generated.toList(), - filename: 'barcode.png'); - final BarcodeResponseList recognized = - await TestConfig.barcodeApi.postBarcodeRecognizeFromUrlOrContent( - image: barcode, - preset: PresetType.HighPerformance.toString(), - ); - - expect(recognized, isNotNull); - expect(recognized.barcodes, isNotEmpty); - expect(recognized.barcodes![0].type, equals('QR')); - expect(recognized.barcodes![0].barcodeValue, equals('text')); - }, - ); -} diff --git a/test/configuration.example.json b/test/configuration.example.json index 66df825..1ae074a 100644 --- a/test/configuration.example.json +++ b/test/configuration.example.json @@ -1,6 +1,6 @@ { "clientId": "Client Id from https://dashboard.aspose.cloud/applications", "clientSecret": "Client Secret from https://dashboard.aspose.cloud/applications", - "basePath": "https://api.aspose.cloud/v3.0", - "tokenUrl": "https://api.aspose.cloud/connect/token" + "basePath": "https://api.aspose.cloud/v4.0", + "tokenUrl": "https://id.aspose.cloud/connect/token" } \ No newline at end of file diff --git a/test/configuration_test.dart b/test/configuration_test.dart index 1a5ff04..1336a92 100644 --- a/test/configuration_test.dart +++ b/test/configuration_test.dart @@ -26,8 +26,8 @@ void main() { "Client Id from https://dashboard.aspose.cloud/applications"); expect(config.clientSecret, "Client Secret from https://dashboard.aspose.cloud/applications"); - expect(config.basePath, "https://api.aspose.cloud/v3.0"); - expect(config.tokenUrl, "https://api.aspose.cloud/connect/token"); + expect(config.basePath, "https://api.aspose.cloud/v4.0"); + expect(config.tokenUrl, "https://id.aspose.cloud/connect/token"); expect(config.accessToken, isNull); }); } diff --git a/test/exception_test.dart b/test/exception_test.dart new file mode 100644 index 0000000..ea27bcb --- /dev/null +++ b/test/exception_test.dart @@ -0,0 +1,33 @@ +import 'package:test/test.dart'; +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +import 'test_config.dart'; + +void main() { + test('ExceptionMessageParsed', () async { + bool thrown = false; + + try { + // This should throw an ApiException + await TestConfig.generateApi.generate(EncodeBarcodeType.QR, ''); + } on ApiException catch (e) { + // Set thrown to true since we expect an exception to be thrown + thrown = true; + print(e); + // Verify the HTTP response code is 400 + expect(e.code, equals(400)); + // Verify the message is "Bad Request" + expect(e.message, equals("Bad Request")); + // Verify the exception type and message format + expect(e.toString(), equals("ApiException 400: Bad Request")); + //Check details of the error message, replacing any carriage returns + expect( + e.getDetails().replaceAll("\r", ""), + equals( + "errorInvalidInputData: Error: Field name: 'Data' errors: The Data field is required." + "Operation Failed. The input data is not valid.")); + } + + // Ensure that an exception was indeed thrown + expect(thrown, isTrue); + }); +} diff --git a/test/generate_api_test.dart b/test/generate_api_test.dart new file mode 100644 index 0000000..8ebc068 --- /dev/null +++ b/test/generate_api_test.dart @@ -0,0 +1,41 @@ +import 'package:test/test.dart'; +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +import 'test_config.dart'; + +void main() { + group('barcodeGenerateApiTests', () { + test('should generate image with generate', () async { + final generated = await TestConfig.generateApi.generate( + EncodeBarcodeType.QR, 'Testing generator', + foregroundColor: '#001100'); + + final imageSize = generated.length; + expect(imageSize, greaterThan(0), reason: 'ImageSize=$imageSize'); + }); + + test('should generate image with generateBody', () async { + final imageParams = BarcodeImageParams(); + imageParams.backgroundColor = '#ffddff'; + + final encodeData = EncodeData("Testing generator"); + + final generateParams = + GenerateParams(EncodeBarcodeType.Pdf417, encodeData, imageParams); + + final generated = + await TestConfig.generateApi.generateBody(generateParams); + + final imageSize = generated.length; + expect(imageSize, greaterThan(0), reason: 'ImageSize=$imageSize'); + }); + + test('should generate image with generateMultipart', () async { + final generated = await TestConfig.generateApi.generateMultipart( + EncodeBarcodeType.QR, 'Testing generator', + dataType: EncodeDataType.StringData, rotationAngle: 90); + + final imageSize = generated.lengthInBytes; + expect(imageSize, greaterThan(0), reason: 'ImageSize=$imageSize'); + }); + }); +} diff --git a/test/post_generate_multiple_test.dart b/test/post_generate_multiple_test.dart deleted file mode 100644 index bc16c2a..0000000 --- a/test/post_generate_multiple_test.dart +++ /dev/null @@ -1,31 +0,0 @@ -import 'dart:io'; -import 'dart:typed_data'; - -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -import 'package:test/test.dart'; - -import 'test_config.dart'; - -void main() { - test('.postGenerateMultiple', () async { - final qrCode = GeneratorParams() - ..typeOfBarcode = EncodeBarcodeType.QR - ..text = "QR text" - ..textLocation = CodeLocation.None; - final code128 = GeneratorParams() - ..typeOfBarcode = EncodeBarcodeType.Code128 - ..text = "Code128 text"; - - final generatorParamsList = GeneratorParamsList() - ..barcodeBuilders!.add(qrCode) - ..barcodeBuilders!.add(code128); - - final Uint8List generated = - await TestConfig.barcodeApi.postGenerateMultiple(generatorParamsList); - - expect(generated, isNotNull); - expect(generated, isNotEmpty); - expect(generated.length, greaterThan(0)); - File("qr_and_code128.png").writeAsBytesSync(generated); - }); -} diff --git a/test/put_barcode_generate_file_put_barcode_recognize_from_body_test.dart b/test/put_barcode_generate_file_put_barcode_recognize_from_body_test.dart deleted file mode 100644 index afa9138..0000000 --- a/test/put_barcode_generate_file_put_barcode_recognize_from_body_test.dart +++ /dev/null @@ -1,40 +0,0 @@ -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -import 'package:test/test.dart'; - -import 'test_config.dart'; - -void main() { - final remoteFileName = "${TestConfig.generateRandomString(16)}.png"; - - test('.putBarcodeGenerateFile', () async { - final ResultImageInfo generated = await TestConfig.barcodeApi - .putBarcodeGenerateFile( - remoteFileName, EncodeBarcodeType.QR.toString(), remoteFileName, - folder: TestConfig.folder); - - expect(generated, isNotNull); - expect(generated.fileSize, greaterThan(0)); - expect(generated.imageHeight, greaterThan(0)); - expect(generated.imageWidth, greaterThan(0)); - }); - - test('.putBarcodeRecognizeFromBody', () async { - final params = ReaderParams(); - params.preset = PresetType.HighPerformance; - params.types = [DecodeBarcodeType.QR, DecodeBarcodeType.DataMatrix]; - - final BarcodeResponseList recognized = - await TestConfig.barcodeApi.putBarcodeRecognizeFromBody( - remoteFileName, - params, - folder: TestConfig.folder, - ); - - expect(recognized.barcodes, isNotNull); - expect(recognized.barcodes, isNotEmpty); - - final first = recognized.barcodes![0]; - expect(first.type, equals("QR")); - expect(first.barcodeValue, equals(remoteFileName)); - }); -} diff --git a/test/put_generate_multiple_get_barcode_recognize_test.dart b/test/put_generate_multiple_get_barcode_recognize_test.dart deleted file mode 100644 index 3ed0312..0000000 --- a/test/put_generate_multiple_get_barcode_recognize_test.dart +++ /dev/null @@ -1,43 +0,0 @@ -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -import 'package:test/test.dart'; - -import 'test_config.dart'; - -void main() { - final remoteFileName = "${TestConfig.generateRandomString(16)}.png"; - - test('.putGenerateMultiple', () async { - final barcode = GeneratorParams() - ..typeOfBarcode = EncodeBarcodeType.QR - ..text = "test"; - - final generatorParamsList = GeneratorParamsList() - ..barcodeBuilders!.add(barcode); - - final ResultImageInfo generated = await TestConfig.barcodeApi - .putGenerateMultiple(remoteFileName, generatorParamsList, - folder: TestConfig.folder); - - expect(generated, isNotNull); - expect(generated.fileSize, greaterThan(0)); - expect(generated.imageHeight, greaterThan(0)); - expect(generated.imageWidth, greaterThan(0)); - }); - - test('.getBarcodeRecognize', () async { - final BarcodeResponseList recognized = - await TestConfig.barcodeApi.getBarcodeRecognize( - remoteFileName, - folder: TestConfig.folder, - preset: PresetType.HighPerformance.toString(), - types: [DecodeBarcodeType.QR, DecodeBarcodeType.DataMatrix], - ); - - expect(recognized.barcodes, isNotNull); - expect(recognized.barcodes, isNotEmpty); - - final first = recognized.barcodes![0]; - expect(first.type, equals(DecodeBarcodeType.QR.toString())); - expect(first.barcodeValue, "test"); - }); -} diff --git a/test/recognize_api_test.dart b/test/recognize_api_test.dart new file mode 100644 index 0000000..a43639c --- /dev/null +++ b/test/recognize_api_test.dart @@ -0,0 +1,57 @@ +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +import 'package:test/test.dart'; +import 'dart:io'; +import 'dart:convert'; + +import 'test_config.dart'; + +void main() { + final fileToRecognize = "qr.png"; + + test('.recognizeMultipart', () async { + final barcode = await File(fileToRecognize).readAsBytes(); + final BarcodeResponseList recognized = await TestConfig.recognizeApi + .recognizeMultipart(DecodeBarcodeType.QR, barcode, + recognitionMode: RecognitionMode.Fast, + recognitionImageKind: RecognitionImageKind.ClearImage); + + expect(recognized, isNotNull); + expect(recognized.barcodes, isNotEmpty); + expect(recognized.barcodes[0].type, equals('QR')); + expect(recognized.barcodes[0].barcodeValue, equals('Aspose.BarCode.Cloud')); + }); + + test("Barcode Recognize Barcode Type Get", () async { + // Test case for barcode_recognize_barcode_type_get + var response = await TestConfig.recognizeApi.recognize( + DecodeBarcodeType.QR, + 'https://products.aspose.app/barcode/scan/img/how-to/scan/step2.png', + recognitionMode: RecognitionMode.Fast, + recognitionImageKind: RecognitionImageKind.ClearImage, + ); + + expect(response.barcodes.length, equals(1)); + var barcode = response.barcodes[0]; + expect(barcode.type, equals('QR')); + expect(barcode.barcodeValue, equals('http://en.m.wikipedia.org')); + }); + + test("Barcode Recognize Body Post", () async { + // Test case for barcode_recognize_body_post + var imageBytes = await File(fileToRecognize).readAsBytes(); + var encodedString = base64Encode(imageBytes); + var response = await TestConfig.recognizeApi.recognizeBase64( + RecognizeBase64Request( + [DecodeBarcodeType.QR], + encodedString, + ), + ); + expect(response.barcodes, isNotNull); + expect(response.barcodes.length, equals(1)); + var barcode = response.barcodes[0]; + expect(barcode.type, equals('QR')); + expect(barcode.barcodeValue, equals('Aspose.BarCode.Cloud')); + expect(barcode.region![0].x, greaterThan(0)); + expect(barcode.region![0].y, greaterThan(0)); + }); +} diff --git a/test/recognize_test.dart b/test/recognize_test.dart deleted file mode 100644 index 806706a..0000000 --- a/test/recognize_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -import 'package:http/http.dart' show MultipartFile; -import 'package:test/test.dart'; - -import 'test_config.dart'; - -void main() { - final fileToRecognize = "qr.png"; - - test('.postBarcodeRecognizeFromUrlOrContent', () async { - final barcode = await MultipartFile.fromPath("image", fileToRecognize); - final BarcodeResponseList recognized = - await TestConfig.barcodeApi.postBarcodeRecognizeFromUrlOrContent( - image: barcode, - preset: PresetType.HighPerformance.toString(), - types: [DecodeBarcodeType.QR, DecodeBarcodeType.DataMatrix], - ); - - expect(recognized, isNotNull); - expect(recognized.barcodes, isNotEmpty); - expect(recognized.barcodes![0].type, equals('QR')); - expect(recognized.barcodes![0].barcodeValue, equals('text')); - }); - - test('.postBarcodeRecognizeFromUrlOrContent with Timeout', () async { - final barcode = await MultipartFile.fromPath("image", fileToRecognize); - expect( - () async => { - await TestConfig.barcodeApi.postBarcodeRecognizeFromUrlOrContent( - image: barcode, - timeout: 1, - ) - }, - throwsA(predicate((e) => e is ApiException && e.code == 408)), - ); - }); -} diff --git a/test/scan_api_test.dart b/test/scan_api_test.dart new file mode 100644 index 0000000..8f93f0c --- /dev/null +++ b/test/scan_api_test.dart @@ -0,0 +1,58 @@ +import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; +import 'package:test/test.dart'; +import 'dart:io'; +import 'dart:convert'; + +import 'test_config.dart'; + +void main() { + final fileToRecognize = "qr_and_code128.png"; + + test( + '.scanBarcodes can scan 2 type', + () async { + final barcode = await File(fileToRecognize).readAsBytes(); + final BarcodeResponseList recognized = + await TestConfig.scanApi.scanMultipart(barcode); + + expect(recognized, isNotNull); + expect(recognized.barcodes, isNotEmpty); + expect(recognized.barcodes.length, equals(2)); + + expect(recognized.barcodes[0].type, equals('QR')); + expect(recognized.barcodes[0].barcodeValue, equals('QR text')); + + expect(recognized.barcodes[1].type, equals('Code128')); + expect(recognized.barcodes[1].barcodeValue, equals('Code128 text')); + }, + ); + + test("Barcode Scan Get", () async { + // Test case for barcode_scan_get + var response = await TestConfig.scanApi.scan( + 'https://products.aspose.app/barcode/scan/img/how-to/scan/step2.png'); + + expect(response.barcodes.length, equals(1)); + expect(response.barcodes[0].type, equals('QR')); + expect( + response.barcodes[0].barcodeValue, equals('http://en.m.wikipedia.org')); + }); + + test("Barcode Scan Body Post", () async { + // Test case for barcode_scan_body_post + var imageBytes = await File(fileToRecognize).readAsBytes(); + var encodedString = base64Encode(imageBytes); + + var response = + await TestConfig.scanApi.scanBase64(ScanBase64Request(encodedString)); + + expect(response.barcodes, isNotNull); + expect(response.barcodes.length, equals(2)); + + expect(response.barcodes[0].type, equals('QR')); + expect(response.barcodes[0].barcodeValue, equals('QR text')); + + expect(response.barcodes[1].type, equals('Code128')); + expect(response.barcodes[1].barcodeValue, equals('Code128 text')); + }); +} diff --git a/test/scan_test.dart b/test/scan_test.dart deleted file mode 100644 index 5117b9d..0000000 --- a/test/scan_test.dart +++ /dev/null @@ -1,53 +0,0 @@ -import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; -import 'package:http/http.dart' show MultipartFile; -import 'package:test/test.dart'; - -import 'test_config.dart'; - -void main() { - final fileToRecognize = "qr_and_code128.png"; - - test( - '.scanBarcodes can scan 2 type', - () async { - // TODO: Fix that field in MultipartFile can be any - final barcode = - await MultipartFile.fromPath("ImageFile", fileToRecognize); - final BarcodeResponseList recognized = - await TestConfig.barcodeApi.scanBarcode( - barcode, - decodeTypes: [DecodeBarcodeType.Code128, DecodeBarcodeType.QR], - ); - - expect(recognized, isNotNull); - expect(recognized.barcodes, isNotEmpty); - expect(recognized.barcodes!.length, equals(2)); - - expect(recognized.barcodes![0].type, equals('QR')); - expect(recognized.barcodes![0].barcodeValue, equals('QR text')); - - expect(recognized.barcodes![1].type, equals('Code128')); - expect(recognized.barcodes![1].barcodeValue, equals('Code128 text')); - }, - ); - - test( - '.scanBarcodes can scan Code39', - () async { - final barcode = await MultipartFile.fromPath("ImageFile", "Code39.jpg"); - final BarcodeResponseList recognized = - await TestConfig.barcodeApi.scanBarcode( - barcode, - decodeTypes: [DecodeBarcodeType.Code39Extended], - checksumValidation: ChecksumValidation.Off.toString(), - ); - - expect(recognized, isNotNull); - expect(recognized.barcodes, isNotEmpty); - expect(recognized.barcodes!.length, equals(1)); - - expect(recognized.barcodes![0].type, equals('Code39Extended')); - expect(recognized.barcodes![0].barcodeValue, equals('8M93')); - }, - ); -} diff --git a/test/test_config.dart b/test/test_config.dart index 3499cba..29da6f7 100644 --- a/test/test_config.dart +++ b/test/test_config.dart @@ -9,8 +9,9 @@ class TestConfig { Configuration.fromEnv(prefix: "TEST_CONFIGURATION_"); static final apiClient = ApiClient(configuration); - static final barcodeApi = BarcodeApi(apiClient); - + static final scanApi = ScanApi(apiClient); + static final generateApi = GenerateApi(apiClient); + static final recognizeApi = RecognizeApi(apiClient); static String folder = "BarcodeTests"; static String generateRandomString(int len) { From 2e186971fc801d5cb876da6da34927b96f165484 Mon Sep 17 00:00:00 2001 From: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Date: Thu, 23 Jan 2025 11:15:09 +0500 Subject: [PATCH 2/6] Added snippets test to ci Env var name unification --- .github/workflows/dart.yml | 5 ++++- snippets/generate/appearance/generate_body.dart | 2 +- snippets/generate/appearance/generate_get.dart | 2 +- snippets/generate/appearance/generate_multipart.dart | 2 +- snippets/generate/save/generate_body.dart | 2 +- snippets/generate/save/generate_get.dart | 2 +- snippets/generate/save/generate_multipart.dart | 2 +- snippets/generate/set_colorscheme/generate_body.dart | 2 +- snippets/generate/set_colorscheme/generate_get.dart | 2 +- snippets/generate/set_colorscheme/generate_multipart.dart | 2 +- snippets/generate/set_size/generate_body.dart | 2 +- snippets/generate/set_size/generate_get.dart | 2 +- snippets/generate/set_size/generate_multipart.dart | 2 +- snippets/generate/set_text/generate_body.dart | 2 +- snippets/generate/set_text/generate_get.dart | 2 +- snippets/generate/set_text/generate_multipart.dart | 2 +- snippets/manual_fetch_token.dart | 6 ++++++ snippets/read/set_image_kind/recognize_body.dart | 2 +- snippets/read/set_image_kind/recognize_get.dart | 2 +- snippets/read/set_image_kind/recognize_multipart.dart | 2 +- snippets/read/set_quality/recognize_body.dart | 2 +- snippets/read/set_quality/recognize_get.dart | 2 +- snippets/read/set_quality/recognize_multipart.dart | 2 +- snippets/read/set_source/recognize_body.dart | 2 +- snippets/read/set_source/recognize_multipart.dart | 2 +- snippets/read/set_source/scan_body.dart | 2 +- snippets/read/set_source/scan_get.dart | 2 +- snippets/read/set_source/scan_multipart.dart | 2 +- snippets/read/set_target_types/recognize_body.dart | 2 +- snippets/read/set_target_types/recognize_get.dart | 2 +- snippets/read/set_target_types/recognize_multipart.dart | 2 +- 31 files changed, 39 insertions(+), 30 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 9fee240..1dca4c0 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -18,7 +18,10 @@ jobs: run: dart pub get - name: Dart test - run: dart test + run: | + dart test + chmod +x scripts/* + ./scripts/run_snippets.sh env: TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }} diff --git a/snippets/generate/appearance/generate_body.dart b/snippets/generate/appearance/generate_body.dart index 5bcaa02..021ee0d 100644 --- a/snippets/generate/appearance/generate_body.dart +++ b/snippets/generate/appearance/generate_body.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/appearance/generate_get.dart b/snippets/generate/appearance/generate_get.dart index 7eb34e5..24e1085 100644 --- a/snippets/generate/appearance/generate_get.dart +++ b/snippets/generate/appearance/generate_get.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/appearance/generate_multipart.dart b/snippets/generate/appearance/generate_multipart.dart index 695b814..3231718 100644 --- a/snippets/generate/appearance/generate_multipart.dart +++ b/snippets/generate/appearance/generate_multipart.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/save/generate_body.dart b/snippets/generate/save/generate_body.dart index 98841f3..7405fd5 100644 --- a/snippets/generate/save/generate_body.dart +++ b/snippets/generate/save/generate_body.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/save/generate_get.dart b/snippets/generate/save/generate_get.dart index 9786d05..7e9d1aa 100644 --- a/snippets/generate/save/generate_get.dart +++ b/snippets/generate/save/generate_get.dart @@ -3,7 +3,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/save/generate_multipart.dart b/snippets/generate/save/generate_multipart.dart index 2ae8a14..4980441 100644 --- a/snippets/generate/save/generate_multipart.dart +++ b/snippets/generate/save/generate_multipart.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/set_colorscheme/generate_body.dart b/snippets/generate/set_colorscheme/generate_body.dart index 82947af..e35b135 100644 --- a/snippets/generate/set_colorscheme/generate_body.dart +++ b/snippets/generate/set_colorscheme/generate_body.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/set_colorscheme/generate_get.dart b/snippets/generate/set_colorscheme/generate_get.dart index 530db5f..41f8382 100644 --- a/snippets/generate/set_colorscheme/generate_get.dart +++ b/snippets/generate/set_colorscheme/generate_get.dart @@ -3,7 +3,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/set_colorscheme/generate_multipart.dart b/snippets/generate/set_colorscheme/generate_multipart.dart index 8d85e16..181977b 100644 --- a/snippets/generate/set_colorscheme/generate_multipart.dart +++ b/snippets/generate/set_colorscheme/generate_multipart.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/set_size/generate_body.dart b/snippets/generate/set_size/generate_body.dart index b26526c..97cd1b5 100644 --- a/snippets/generate/set_size/generate_body.dart +++ b/snippets/generate/set_size/generate_body.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/set_size/generate_get.dart b/snippets/generate/set_size/generate_get.dart index d1e550e..b2de806 100644 --- a/snippets/generate/set_size/generate_get.dart +++ b/snippets/generate/set_size/generate_get.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/set_size/generate_multipart.dart b/snippets/generate/set_size/generate_multipart.dart index 1b06e6e..7ad6dae 100644 --- a/snippets/generate/set_size/generate_multipart.dart +++ b/snippets/generate/set_size/generate_multipart.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/set_text/generate_body.dart b/snippets/generate/set_text/generate_body.dart index 223a71c..8d3f856 100644 --- a/snippets/generate/set_text/generate_body.dart +++ b/snippets/generate/set_text/generate_body.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/set_text/generate_get.dart b/snippets/generate/set_text/generate_get.dart index 3824743..399c5c9 100644 --- a/snippets/generate/set_text/generate_get.dart +++ b/snippets/generate/set_text/generate_get.dart @@ -3,7 +3,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/generate/set_text/generate_multipart.dart b/snippets/generate/set_text/generate_multipart.dart index 1787706..94922d4 100644 --- a/snippets/generate/set_text/generate_multipart.dart +++ b/snippets/generate/set_text/generate_multipart.dart @@ -4,7 +4,7 @@ import 'dart:typed_data'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final envToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final envToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (envToken != null) { return Configuration(accessToken: envToken); } else { diff --git a/snippets/manual_fetch_token.dart b/snippets/manual_fetch_token.dart index 15fb264..2c8451b 100644 --- a/snippets/manual_fetch_token.dart +++ b/snippets/manual_fetch_token.dart @@ -9,6 +9,12 @@ void main() async { final baseUrl = "https://id.aspose.cloud/"; final endpoint = "connect/token"; + // Check the client_id is changed to not break github CI pipeline + if (clientId.startsWith("Client Id")) { + print("client_id not configured. Skip this snippet test"); + return; + } + final payload = { "grant_type": "client_credentials", "client_id": clientId, diff --git a/snippets/read/set_image_kind/recognize_body.dart b/snippets/read/set_image_kind/recognize_body.dart index 7c281f4..11f75c6 100644 --- a/snippets/read/set_image_kind/recognize_body.dart +++ b/snippets/read/set_image_kind/recognize_body.dart @@ -4,7 +4,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_image_kind/recognize_get.dart b/snippets/read/set_image_kind/recognize_get.dart index b75b1a4..092d2e8 100644 --- a/snippets/read/set_image_kind/recognize_get.dart +++ b/snippets/read/set_image_kind/recognize_get.dart @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_image_kind/recognize_multipart.dart b/snippets/read/set_image_kind/recognize_multipart.dart index 49e52c6..33c365f 100644 --- a/snippets/read/set_image_kind/recognize_multipart.dart +++ b/snippets/read/set_image_kind/recognize_multipart.dart @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_quality/recognize_body.dart b/snippets/read/set_quality/recognize_body.dart index 0a7bfe8..38e9beb 100644 --- a/snippets/read/set_quality/recognize_body.dart +++ b/snippets/read/set_quality/recognize_body.dart @@ -4,7 +4,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_quality/recognize_get.dart b/snippets/read/set_quality/recognize_get.dart index f1f3b8f..ec2472b 100644 --- a/snippets/read/set_quality/recognize_get.dart +++ b/snippets/read/set_quality/recognize_get.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_quality/recognize_multipart.dart b/snippets/read/set_quality/recognize_multipart.dart index bf62868..163d5fa 100644 --- a/snippets/read/set_quality/recognize_multipart.dart +++ b/snippets/read/set_quality/recognize_multipart.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_source/recognize_body.dart b/snippets/read/set_source/recognize_body.dart index 0e1a5bd..805a5c1 100644 --- a/snippets/read/set_source/recognize_body.dart +++ b/snippets/read/set_source/recognize_body.dart @@ -4,7 +4,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_source/recognize_multipart.dart b/snippets/read/set_source/recognize_multipart.dart index baef6df..9ddf201 100644 --- a/snippets/read/set_source/recognize_multipart.dart +++ b/snippets/read/set_source/recognize_multipart.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_source/scan_body.dart b/snippets/read/set_source/scan_body.dart index 2ee8421..1e6ca94 100644 --- a/snippets/read/set_source/scan_body.dart +++ b/snippets/read/set_source/scan_body.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_source/scan_get.dart b/snippets/read/set_source/scan_get.dart index 2fb8ee0..65de51f 100644 --- a/snippets/read/set_source/scan_get.dart +++ b/snippets/read/set_source/scan_get.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_source/scan_multipart.dart b/snippets/read/set_source/scan_multipart.dart index 0acd3bf..e58a864 100644 --- a/snippets/read/set_source/scan_multipart.dart +++ b/snippets/read/set_source/scan_multipart.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_target_types/recognize_body.dart b/snippets/read/set_target_types/recognize_body.dart index e106220..b5abaa3 100644 --- a/snippets/read/set_target_types/recognize_body.dart +++ b/snippets/read/set_target_types/recognize_body.dart @@ -4,7 +4,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_target_types/recognize_get.dart b/snippets/read/set_target_types/recognize_get.dart index 733f600..825b92d 100644 --- a/snippets/read/set_target_types/recognize_get.dart +++ b/snippets/read/set_target_types/recognize_get.dart @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { diff --git a/snippets/read/set_target_types/recognize_multipart.dart b/snippets/read/set_target_types/recognize_multipart.dart index 4844180..d617385 100644 --- a/snippets/read/set_target_types/recognize_multipart.dart +++ b/snippets/read/set_target_types/recognize_multipart.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - final jwtToken = Platform.environment['TEST_CONFIGURATION_JWT_TOKEN']; + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; if (jwtToken != null) { return Configuration(accessToken: jwtToken); } else { From 5c0058a2527116ece9bff2e3ba0545e247552ce9 Mon Sep 17 00:00:00 2001 From: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Date: Thu, 23 Jan 2025 11:22:51 +0500 Subject: [PATCH 3/6] Snippets fixed to run with token in env var --- snippets/read/set_source/recognize_get.dart | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/snippets/read/set_source/recognize_get.dart b/snippets/read/set_source/recognize_get.dart index f92e9ca..75f5ff0 100644 --- a/snippets/read/set_source/recognize_get.dart +++ b/snippets/read/set_source/recognize_get.dart @@ -1,11 +1,18 @@ +import 'dart:io'; + import 'package:aspose_barcode_cloud/aspose_barcode_cloud.dart'; Configuration makeConfiguration() { - return Configuration( - clientId: "Client Id from https://dashboard.aspose.cloud/applications", - clientSecret: - "Client Secret from https://dashboard.aspose.cloud/applications", - ); + final jwtToken = Platform.environment['TEST_CONFIGURATION_ACCESS_TOKEN']; + if (jwtToken != null) { + return Configuration(accessToken: jwtToken); + } else { + return Configuration( + clientId: "Client Id from https://dashboard.aspose.cloud/applications", + clientSecret: + "Client Secret from https://dashboard.aspose.cloud/applications", + ); + } } Future main() async { From b0fdd563ab6b9748436b9abff1c21e889f7adaaf Mon Sep 17 00:00:00 2001 From: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Date: Thu, 23 Jan 2025 11:42:02 +0500 Subject: [PATCH 4/6] Fix lint errors --- lib/src/api_client.dart | 2 +- lib/src/model/code_location.dart | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/api_client.dart b/lib/src/api_client.dart index d195227..ff9bbb8 100644 --- a/lib/src/api_client.dart +++ b/lib/src/api_client.dart @@ -146,7 +146,7 @@ class ApiClient { } /// Invoke HTTP request - /// We don't use a Map for queryParams. + /// We don't use a `Map` for queryParams. /// If collectionFormat is 'multi' a key might appear multiple times. Future invokeAPI( String path, diff --git a/lib/src/model/code_location.dart b/lib/src/model/code_location.dart index 987858d..86adbc2 100644 --- a/lib/src/model/code_location.dart +++ b/lib/src/model/code_location.dart @@ -6,11 +6,11 @@ class CodeLocation { CodeLocation._internal(this._value); - // ignore: non_constant_identifier_names + // ignore: non_constant_identifier_names, public_member_api_docs static final CodeLocation Below = CodeLocation._internal("Below"); - // ignore: non_constant_identifier_names + // ignore: non_constant_identifier_names, public_member_api_docs static final CodeLocation Above = CodeLocation._internal("Above"); - // ignore: non_constant_identifier_names + // ignore: non_constant_identifier_names, public_member_api_docs static final CodeLocation None = CodeLocation._internal("None"); /// Creates a CodeLocation instance from a JSON representation. From c0df8f80ab44d3c2bae605bb5791c1e1f0d51bc0 Mon Sep 17 00:00:00 2001 From: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Date: Thu, 23 Jan 2025 12:07:47 +0500 Subject: [PATCH 5/6] Added CHANGELOG Clean git after test for dry run publish without warning --- .github/workflows/dart.yml | 3 ++- CHANGELOG.md | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 1dca4c0..6ad4121 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -21,7 +21,8 @@ jobs: run: | dart test chmod +x scripts/* - ./scripts/run_snippets.sh + ./scripts/run_snippets.sh + git clean -df env: TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index bd559e9..667366c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # CHANGELOG +## 4.25.1 + +* [Aspose.BarCode.Cloud API](https://api.aspose.cloud/v4.0/barcode/swagger/spec) version changed to v4.0. + +* Breaking changes of all methods and models. + +* For Aspose.BarCode.Cloud v3.0 API use package 1.24.x version. + ## 1.24.12 * December 2024 Release From 60c8768b751457ca756a871bc239703018798ddf Mon Sep 17 00:00:00 2001 From: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Date: Mon, 27 Jan 2025 15:28:37 +0500 Subject: [PATCH 6/6] README updated --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6658cf8..1fb88ce 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,11 @@ - API version: 4.0 - SDK version: 4.25.1 +## SDK and API Version Compatibility: + +- SDK Version 4.25.1 and Later: Starting from SDK version 25.1, all subsequent versions are compatible with API Version v4.0. +- SDK Version 1.24.12 and Earlier: These versions are compatible with API Version v3.0. + This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily ## Demo applications