Skip to content

Commit 85d2ce7

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 43c7d5e + a8a58e5 commit 85d2ce7

File tree

71 files changed

+9779
-789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+9779
-789
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Add link to this repository as dependency to your Package.swift:
2626

2727
dependencies: [
2828
// Dependencies declare other packages that this package depends on.
29-
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "20.4"),
29+
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "20.5"),
3030
],
3131
targets: [
3232
// Targets are the basic building blocks of a package. A target can define a module or a test suite.

Sources/AsposeWordsCloud/Api/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ public class Configuration : Codable {
9191

9292
// Returns SDK version for using in statistics headers
9393
public func getSdkVersion() -> String {
94-
return "20.4";
94+
return "20.5";
9595
}
9696
}

Sources/AsposeWordsCloud/Api/WordsAPI.swift

Lines changed: 2516 additions & 784 deletions
Large diffs are not rendered by default.
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="CsvDataLoadOptions.swift">
4+
* Copyright (c) 2020 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
import Foundation
29+
30+
// Represents options for parsing CSV data.
31+
public class CsvDataLoadOptions : Codable, WordsApiModel {
32+
33+
// Field of hasHeaders. Gets or sets a value indicating whether the first record of CSV data contains column names.
34+
private var hasHeaders : Bool?;
35+
36+
// Field of delimiter. Gets or sets the character to be used as a column delimiter.
37+
private var delimiter : String?;
38+
39+
// Field of quoteChar. Gets or sets the character that is used to quote field values.
40+
private var quoteChar : String?;
41+
42+
// Field of commentChar. Gets or sets the character that is used to comment lines of CSV data.
43+
private var commentChar : String?;
44+
45+
private enum CodingKeys: String, CodingKey {
46+
case hasHeaders;
47+
case delimiter;
48+
case quoteChar;
49+
case commentChar;
50+
case invalidCodingKey;
51+
}
52+
53+
public init() {
54+
55+
}
56+
57+
public required init(from decoder: Decoder) throws {
58+
59+
let container = try decoder.container(keyedBy: CodingKeys.self);
60+
self.hasHeaders = try container.decodeIfPresent(Bool.self, forKey: .hasHeaders);
61+
self.delimiter = try container.decodeIfPresent(String.self, forKey: .delimiter);
62+
self.quoteChar = try container.decodeIfPresent(String.self, forKey: .quoteChar);
63+
self.commentChar = try container.decodeIfPresent(String.self, forKey: .commentChar);
64+
}
65+
66+
public func encode(to encoder: Encoder) throws {
67+
68+
var container = encoder.container(keyedBy: CodingKeys.self);
69+
if (self.hasHeaders != nil) {
70+
try container.encode(self.hasHeaders, forKey: .hasHeaders);
71+
}
72+
if (self.delimiter != nil) {
73+
try container.encode(self.delimiter, forKey: .delimiter);
74+
}
75+
if (self.quoteChar != nil) {
76+
try container.encode(self.quoteChar, forKey: .quoteChar);
77+
}
78+
if (self.commentChar != nil) {
79+
try container.encode(self.commentChar, forKey: .commentChar);
80+
}
81+
}
82+
83+
// Sets hasHeaders. Gets or sets a value indicating whether the first record of CSV data contains column names.
84+
public func setHasHeaders(hasHeaders : Bool?) {
85+
self.hasHeaders = hasHeaders;
86+
}
87+
88+
// Gets hasHeaders. Gets or sets a value indicating whether the first record of CSV data contains column names.
89+
public func getHasHeaders() -> Bool? {
90+
return self.hasHeaders;
91+
}
92+
93+
// Sets delimiter. Gets or sets the character to be used as a column delimiter.
94+
public func setDelimiter(delimiter : String?) {
95+
self.delimiter = delimiter;
96+
}
97+
98+
// Gets delimiter. Gets or sets the character to be used as a column delimiter.
99+
public func getDelimiter() -> String? {
100+
return self.delimiter;
101+
}
102+
103+
// Sets quoteChar. Gets or sets the character that is used to quote field values.
104+
public func setQuoteChar(quoteChar : String?) {
105+
self.quoteChar = quoteChar;
106+
}
107+
108+
// Gets quoteChar. Gets or sets the character that is used to quote field values.
109+
public func getQuoteChar() -> String? {
110+
return self.quoteChar;
111+
}
112+
113+
// Sets commentChar. Gets or sets the character that is used to comment lines of CSV data.
114+
public func setCommentChar(commentChar : String?) {
115+
self.commentChar = commentChar;
116+
}
117+
118+
// Gets commentChar. Gets or sets the character that is used to comment lines of CSV data.
119+
public func getCommentChar() -> String? {
120+
return self.commentChar;
121+
}
122+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="ListFormat.swift">
4+
* Copyright (c) 2020 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
import Foundation
29+
30+
// Paragraph list format element.
31+
public class ListFormat : LinkElement {
32+
33+
// Field of isListItem. Gets or sets a value indicating whether the paragraph has bulleted or numbered formatting applied to it.
34+
private var isListItem : Bool?;
35+
36+
// Field of listId. Gets or sets the list id of this paragraph.
37+
private var listId : Int?;
38+
39+
// Field of listLevelNumber. Gets or sets the list level number (0 to 8) for the paragraph.
40+
private var listLevelNumber : Int?;
41+
42+
private enum CodingKeys: String, CodingKey {
43+
case isListItem;
44+
case listId;
45+
case listLevelNumber;
46+
case invalidCodingKey;
47+
}
48+
49+
public override init() {
50+
super.init();
51+
}
52+
53+
public required init(from decoder: Decoder) throws {
54+
try super.init(from: decoder);
55+
let container = try decoder.container(keyedBy: CodingKeys.self);
56+
self.isListItem = try container.decodeIfPresent(Bool.self, forKey: .isListItem);
57+
self.listId = try container.decodeIfPresent(Int.self, forKey: .listId);
58+
self.listLevelNumber = try container.decodeIfPresent(Int.self, forKey: .listLevelNumber);
59+
}
60+
61+
public override func encode(to encoder: Encoder) throws {
62+
try super.encode(to: encoder);
63+
var container = encoder.container(keyedBy: CodingKeys.self);
64+
if (self.isListItem != nil) {
65+
try container.encode(self.isListItem, forKey: .isListItem);
66+
}
67+
if (self.listId != nil) {
68+
try container.encode(self.listId, forKey: .listId);
69+
}
70+
if (self.listLevelNumber != nil) {
71+
try container.encode(self.listLevelNumber, forKey: .listLevelNumber);
72+
}
73+
}
74+
75+
// Sets isListItem. Gets or sets a value indicating whether the paragraph has bulleted or numbered formatting applied to it.
76+
public func setIsListItem(isListItem : Bool?) {
77+
self.isListItem = isListItem;
78+
}
79+
80+
// Gets isListItem. Gets or sets a value indicating whether the paragraph has bulleted or numbered formatting applied to it.
81+
public func getIsListItem() -> Bool? {
82+
return self.isListItem;
83+
}
84+
85+
// Sets listId. Gets or sets the list id of this paragraph.
86+
public func setListId(listId : Int?) {
87+
self.listId = listId;
88+
}
89+
90+
// Gets listId. Gets or sets the list id of this paragraph.
91+
public func getListId() -> Int? {
92+
return self.listId;
93+
}
94+
95+
// Sets listLevelNumber. Gets or sets the list level number (0 to 8) for the paragraph.
96+
public func setListLevelNumber(listLevelNumber : Int?) {
97+
self.listLevelNumber = listLevelNumber;
98+
}
99+
100+
// Gets listLevelNumber. Gets or sets the list level number (0 to 8) for the paragraph.
101+
public func getListLevelNumber() -> Int? {
102+
return self.listLevelNumber;
103+
}
104+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="ListFormatUpdate.swift">
4+
* Copyright (c) 2020 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
import Foundation
29+
30+
// Paragraph list format element for update.
31+
public class ListFormatUpdate : Codable, WordsApiModel {
32+
33+
// Field of listLevelNumber. Gets or sets the list level number (0 to 8) for the paragraph.
34+
private var listLevelNumber : Int?;
35+
36+
// Field of listId. Gets or sets the list id of this paragraph.
37+
private var listId : Int?;
38+
39+
private enum CodingKeys: String, CodingKey {
40+
case listLevelNumber;
41+
case listId;
42+
case invalidCodingKey;
43+
}
44+
45+
public init() {
46+
47+
}
48+
49+
public required init(from decoder: Decoder) throws {
50+
51+
let container = try decoder.container(keyedBy: CodingKeys.self);
52+
self.listLevelNumber = try container.decodeIfPresent(Int.self, forKey: .listLevelNumber);
53+
self.listId = try container.decodeIfPresent(Int.self, forKey: .listId);
54+
}
55+
56+
public func encode(to encoder: Encoder) throws {
57+
58+
var container = encoder.container(keyedBy: CodingKeys.self);
59+
if (self.listLevelNumber != nil) {
60+
try container.encode(self.listLevelNumber, forKey: .listLevelNumber);
61+
}
62+
if (self.listId != nil) {
63+
try container.encode(self.listId, forKey: .listId);
64+
}
65+
}
66+
67+
// Sets listLevelNumber. Gets or sets the list level number (0 to 8) for the paragraph.
68+
public func setListLevelNumber(listLevelNumber : Int?) {
69+
self.listLevelNumber = listLevelNumber;
70+
}
71+
72+
// Gets listLevelNumber. Gets or sets the list level number (0 to 8) for the paragraph.
73+
public func getListLevelNumber() -> Int? {
74+
return self.listLevelNumber;
75+
}
76+
77+
// Sets listId. Gets or sets the list id of this paragraph.
78+
public func setListId(listId : Int?) {
79+
self.listId = listId;
80+
}
81+
82+
// Gets listId. Gets or sets the list id of this paragraph.
83+
public func getListId() -> Int? {
84+
return self.listId;
85+
}
86+
}

0 commit comments

Comments
 (0)