-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into release
- Loading branch information
Showing
23 changed files
with
820 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* -------------------------------------------------------------------------------- | ||
* <copyright company="Aspose" file="base_entry.dart"> | ||
* Copyright (c) 2022 Aspose.Words for Cloud | ||
* </copyright> | ||
* <summary> | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* </summary> | ||
* -------------------------------------------------------------------------------- | ||
*/ | ||
|
||
library aspose_words_cloud; | ||
|
||
import '../../aspose_words_cloud.dart'; | ||
|
||
/// Represents a entry which will be appended to the original resource document. | ||
class BaseEntry implements ModelBase { | ||
/// Gets or sets the path to entry to append at the server. | ||
String _href; | ||
|
||
String get href => _href; | ||
set href(String val) => _href = val; | ||
|
||
|
||
@override | ||
void deserialize(Map<String, dynamic> json) { | ||
if (json == null) { | ||
throw ApiException(400, 'Failed to deserialize BaseEntry data model.'); | ||
} | ||
|
||
if (json.containsKey('Href')) { | ||
href = json['Href'] as String; | ||
} else { | ||
href = null; | ||
} | ||
} | ||
|
||
@override | ||
Map<String, dynamic> serialize() { | ||
var _result = <String, dynamic>{}; | ||
if (href != null) { | ||
_result['Href'] = href; | ||
} | ||
return _result; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* -------------------------------------------------------------------------------- | ||
* <copyright company="Aspose" file="base_entry_list.dart"> | ||
* Copyright (c) 2022 Aspose.Words for Cloud | ||
* </copyright> | ||
* <summary> | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* </summary> | ||
* -------------------------------------------------------------------------------- | ||
*/ | ||
|
||
library aspose_words_cloud; | ||
|
||
import '../../aspose_words_cloud.dart'; | ||
|
||
/// Represents a list of entries which will be appended to the original resource entry. | ||
abstract class BaseEntryList implements ModelBase { | ||
|
||
@override | ||
void deserialize(Map<String, dynamic> json) { | ||
if (json == null) { | ||
throw ApiException(400, 'Failed to deserialize BaseEntryList data model.'); | ||
} | ||
|
||
} | ||
|
||
@override | ||
Map<String, dynamic> serialize() { | ||
var _result = <String, dynamic>{}; | ||
return _result; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* | ||
* -------------------------------------------------------------------------------- | ||
* <copyright company="Aspose" file="compress_options.dart"> | ||
* Copyright (c) 2022 Aspose.Words for Cloud | ||
* </copyright> | ||
* <summary> | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* </summary> | ||
* -------------------------------------------------------------------------------- | ||
*/ | ||
|
||
library aspose_words_cloud; | ||
|
||
import '../../aspose_words_cloud.dart'; | ||
|
||
/// Options of document compress. | ||
class CompressOptions implements ModelBase { | ||
/// Gets or sets the quality level of images from 0 to 100. Default value is 75. | ||
int _imagesQuality; | ||
|
||
int get imagesQuality => _imagesQuality; | ||
set imagesQuality(int val) => _imagesQuality = val; | ||
|
||
|
||
/// Gets or sets the resize factor of images. | ||
/// This value determines how many times the size of the images in the document will be reduced. | ||
/// The parameter value must be greater than 1 for resizing. Default value is 1 and has no effect on images size. | ||
int _imagesReduceSizeFactor; | ||
|
||
int get imagesReduceSizeFactor => _imagesReduceSizeFactor; | ||
set imagesReduceSizeFactor(int val) => _imagesReduceSizeFactor = val; | ||
|
||
|
||
@override | ||
void deserialize(Map<String, dynamic> json) { | ||
if (json == null) { | ||
throw ApiException(400, 'Failed to deserialize CompressOptions data model.'); | ||
} | ||
|
||
if (json.containsKey('ImagesQuality')) { | ||
imagesQuality = json['ImagesQuality'] as int; | ||
} else { | ||
imagesQuality = null; | ||
} | ||
|
||
if (json.containsKey('ImagesReduceSizeFactor')) { | ||
imagesReduceSizeFactor = json['ImagesReduceSizeFactor'] as int; | ||
} else { | ||
imagesReduceSizeFactor = null; | ||
} | ||
} | ||
|
||
@override | ||
Map<String, dynamic> serialize() { | ||
var _result = <String, dynamic>{}; | ||
if (imagesQuality != null) { | ||
_result['ImagesQuality'] = imagesQuality; | ||
} | ||
|
||
if (imagesReduceSizeFactor != null) { | ||
_result['ImagesReduceSizeFactor'] = imagesReduceSizeFactor; | ||
} | ||
return _result; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
* -------------------------------------------------------------------------------- | ||
* <copyright company="Aspose" file="compress_response.dart"> | ||
* Copyright (c) 2022 Aspose.Words for Cloud | ||
* </copyright> | ||
* <summary> | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* </summary> | ||
* -------------------------------------------------------------------------------- | ||
*/ | ||
|
||
library aspose_words_cloud; | ||
|
||
import '../../aspose_words_cloud.dart'; | ||
|
||
/// The REST response of compressed document. | ||
class CompressResponse extends WordsResponse { | ||
/// Gets or sets the destination document info. | ||
Document _document; | ||
|
||
Document get document => _document; | ||
set document(Document val) => _document = val; | ||
|
||
|
||
@override | ||
void deserialize(Map<String, dynamic> json) { | ||
if (json == null) { | ||
throw ApiException(400, 'Failed to deserialize CompressResponse data model.'); | ||
} | ||
|
||
super.deserialize(json); | ||
if (json.containsKey('RequestId')) { | ||
requestId = json['RequestId'] as String; | ||
} else { | ||
requestId = null; | ||
} | ||
|
||
if (json.containsKey('Document')) { | ||
document = Document(); | ||
document.deserialize(json['Document'] as Map<String, dynamic>); | ||
} else { | ||
document = null; | ||
} | ||
} | ||
|
||
@override | ||
Map<String, dynamic> serialize() { | ||
var _result = <String, dynamic>{}; | ||
_result.addAll(super.serialize()); | ||
if (document != null) { | ||
_result['Document'] = document.serialize(); | ||
} | ||
return _result; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.