Skip to content

Commit ff51a2d

Browse files
SDK regenerated by CI server [ci skip]
1 parent c7b77bb commit ff51a2d

Some content is hidden

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

51 files changed

+1874
-1857
lines changed

AsposeWordsCloud.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'AsposeWordsCloud'
3-
s.version = '23.5'
3+
s.version = '23.6'
44
s.summary = 'Aspose Words for Cloud.'
55
s.homepage = 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git'
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ This repository contains Aspose.Words Cloud SDK for Swift source code. This SDK
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 23.6
17+
18+
19+
1620
## Enhancements in Version 23.5
1721

1822
- Added InsertSection method.
@@ -278,7 +282,7 @@ Add link to this repository as dependency to your Package.swift:
278282

279283
dependencies: [
280284
// Dependencies declare other packages that this package depends on.
281-
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "23.5"),
285+
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "23.6"),
282286
],
283287
targets: [
284288
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -296,7 +300,7 @@ targets: [
296300
Add link to git repository as dependency to your Podfile:
297301

298302
```ruby
299-
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '23.5'
303+
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '23.6'
300304
```
301305

302306
## Getting Started

Sources/AsposeWordsCloud/Api/Configuration.swift

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

189189
// Returns SDK version for using in statistics headers
190190
public func getSdkVersion() -> String {
191-
return "23.5";
191+
return "23.6";
192192
}
193193
}

Sources/AsposeWordsCloud/Model/Comment.swift

Lines changed: 85 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -30,39 +30,39 @@ import Foundation
3030
// DTO container with a comment.
3131
@available(macOS 10.12, iOS 10.3, watchOS 3.3, tvOS 12.0, *)
3232
public class Comment : CommentLink {
33-
// Field of author. DTO container with a comment.
34-
private var _author : String? = nil;
33+
// Field of rangeStart. DTO container with a comment.
34+
private var _rangeStart : DocumentPosition? = nil;
3535

36-
public var author : String? {
36+
public var rangeStart : DocumentPosition? {
3737
get {
38-
return self._author;
38+
return self._rangeStart;
3939
}
4040
set {
41-
self._author = newValue;
41+
self._rangeStart = newValue;
4242
}
4343
}
4444

45-
// Field of content. DTO container with a comment.
46-
private var _content : StoryChildNodes? = nil;
45+
// Field of rangeEnd. DTO container with a comment.
46+
private var _rangeEnd : DocumentPosition? = nil;
4747

48-
public var content : StoryChildNodes? {
48+
public var rangeEnd : DocumentPosition? {
4949
get {
50-
return self._content;
50+
return self._rangeEnd;
5151
}
5252
set {
53-
self._content = newValue;
53+
self._rangeEnd = newValue;
5454
}
5555
}
5656

57-
// Field of dateTime. DTO container with a comment.
58-
private var _dateTime : Date? = nil;
57+
// Field of author. DTO container with a comment.
58+
private var _author : String? = nil;
5959

60-
public var dateTime : Date? {
60+
public var author : String? {
6161
get {
62-
return self._dateTime;
62+
return self._author;
6363
}
6464
set {
65-
self._dateTime = newValue;
65+
self._author = newValue;
6666
}
6767
}
6868

@@ -78,50 +78,50 @@ public class Comment : CommentLink {
7878
}
7979
}
8080

81-
// Field of rangeEnd. DTO container with a comment.
82-
private var _rangeEnd : DocumentPosition? = nil;
81+
// Field of dateTime. DTO container with a comment.
82+
private var _dateTime : Date? = nil;
8383

84-
public var rangeEnd : DocumentPosition? {
84+
public var dateTime : Date? {
8585
get {
86-
return self._rangeEnd;
86+
return self._dateTime;
8787
}
8888
set {
89-
self._rangeEnd = newValue;
89+
self._dateTime = newValue;
9090
}
9191
}
9292

93-
// Field of rangeStart. DTO container with a comment.
94-
private var _rangeStart : DocumentPosition? = nil;
93+
// Field of text. DTO container with a comment.
94+
private var _text : String? = nil;
9595

96-
public var rangeStart : DocumentPosition? {
96+
public var text : String? {
9797
get {
98-
return self._rangeStart;
98+
return self._text;
9999
}
100100
set {
101-
self._rangeStart = newValue;
101+
self._text = newValue;
102102
}
103103
}
104104

105-
// Field of text. DTO container with a comment.
106-
private var _text : String? = nil;
105+
// Field of content. DTO container with a comment.
106+
private var _content : StoryChildNodes? = nil;
107107

108-
public var text : String? {
108+
public var content : StoryChildNodes? {
109109
get {
110-
return self._text;
110+
return self._content;
111111
}
112112
set {
113-
self._text = newValue;
113+
self._content = newValue;
114114
}
115115
}
116116

117117
private enum CodingKeys: String, CodingKey {
118+
case rangeStart = "RangeStart";
119+
case rangeEnd = "RangeEnd";
118120
case author = "Author";
119-
case content = "Content";
120-
case dateTime = "DateTime";
121121
case initial = "Initial";
122-
case rangeEnd = "RangeEnd";
123-
case rangeStart = "RangeStart";
122+
case dateTime = "DateTime";
124123
case text = "Text";
124+
case content = "Content";
125125
case invalidCodingKey;
126126
}
127127

@@ -132,82 +132,82 @@ public class Comment : CommentLink {
132132
public required init(from decoder: Decoder) throws {
133133
try super.init(from: decoder);
134134
let container = try decoder.container(keyedBy: CodingKeys.self);
135+
self.rangeStart = try container.decodeIfPresent(DocumentPosition.self, forKey: .rangeStart);
136+
self.rangeEnd = try container.decodeIfPresent(DocumentPosition.self, forKey: .rangeEnd);
135137
self.author = try container.decodeIfPresent(String.self, forKey: .author);
136-
self.content = try container.decodeIfPresent(StoryChildNodes.self, forKey: .content);
138+
self.initial = try container.decodeIfPresent(String.self, forKey: .initial);
137139
var raw_dateTime = try container.decodeIfPresent(String.self, forKey: .dateTime);
138140
if (raw_dateTime != nil) {
139141
raw_dateTime = raw_dateTime!.replacingOccurrences(of: "\\.\\d+", with: "", options: .regularExpression);
140142
self.dateTime = ObjectSerializer.customIso8601.date(from: raw_dateTime!)!;
141143
}
142144

143-
self.initial = try container.decodeIfPresent(String.self, forKey: .initial);
144-
self.rangeEnd = try container.decodeIfPresent(DocumentPosition.self, forKey: .rangeEnd);
145-
self.rangeStart = try container.decodeIfPresent(DocumentPosition.self, forKey: .rangeStart);
146145
self.text = try container.decodeIfPresent(String.self, forKey: .text);
146+
self.content = try container.decodeIfPresent(StoryChildNodes.self, forKey: .content);
147147
}
148148

149149
public override func encode(to encoder: Encoder) throws {
150150
try super.encode(to: encoder);
151151
var container = encoder.container(keyedBy: CodingKeys.self);
152-
if (self.author != nil) {
153-
try container.encode(self.author, forKey: .author);
152+
if (self.rangeStart != nil) {
153+
try container.encode(self.rangeStart, forKey: .rangeStart);
154154
}
155-
if (self.content != nil) {
156-
try container.encode(self.content, forKey: .content);
155+
if (self.rangeEnd != nil) {
156+
try container.encode(self.rangeEnd, forKey: .rangeEnd);
157157
}
158-
if (self.dateTime != nil) {
159-
try container.encode(self.dateTime, forKey: .dateTime);
158+
if (self.author != nil) {
159+
try container.encode(self.author, forKey: .author);
160160
}
161161
if (self.initial != nil) {
162162
try container.encode(self.initial, forKey: .initial);
163163
}
164-
if (self.rangeEnd != nil) {
165-
try container.encode(self.rangeEnd, forKey: .rangeEnd);
166-
}
167-
if (self.rangeStart != nil) {
168-
try container.encode(self.rangeStart, forKey: .rangeStart);
164+
if (self.dateTime != nil) {
165+
try container.encode(self.dateTime, forKey: .dateTime);
169166
}
170167
if (self.text != nil) {
171168
try container.encode(self.text, forKey: .text);
172169
}
170+
if (self.content != nil) {
171+
try container.encode(self.content, forKey: .content);
172+
}
173173
}
174174

175175
public override func collectFilesContent(_ resultFilesContent : inout [FileReference]) {
176176
}
177177

178-
// Sets author. Gets or sets the author name for a comment.
179-
public func setAuthor(author : String?) -> Comment {
180-
self.author = author;
178+
// Sets rangeStart. Gets or sets the link to comment range start node.
179+
public func setRangeStart(rangeStart : DocumentPosition?) -> Comment {
180+
self.rangeStart = rangeStart;
181181
return self;
182182
}
183183

184-
// Gets author. Gets or sets the author name for a comment.
185-
public func getAuthor() -> String? {
186-
return self.author;
184+
// Gets rangeStart. Gets or sets the link to comment range start node.
185+
public func getRangeStart() -> DocumentPosition? {
186+
return self.rangeStart;
187187
}
188188

189189

190-
// Sets content. Gets or sets the content of the comment.
191-
public func setContent(content : StoryChildNodes?) -> Comment {
192-
self.content = content;
190+
// Sets rangeEnd. Gets or sets the link to comment range end node.
191+
public func setRangeEnd(rangeEnd : DocumentPosition?) -> Comment {
192+
self.rangeEnd = rangeEnd;
193193
return self;
194194
}
195195

196-
// Gets content. Gets or sets the content of the comment.
197-
public func getContent() -> StoryChildNodes? {
198-
return self.content;
196+
// Gets rangeEnd. Gets or sets the link to comment range end node.
197+
public func getRangeEnd() -> DocumentPosition? {
198+
return self.rangeEnd;
199199
}
200200

201201

202-
// Sets dateTime. Gets or sets the date and time that the comment was made.
203-
public func setDateTime(dateTime : Date?) -> Comment {
204-
self.dateTime = dateTime;
202+
// Sets author. Gets or sets the author name for a comment.
203+
public func setAuthor(author : String?) -> Comment {
204+
self.author = author;
205205
return self;
206206
}
207207

208-
// Gets dateTime. Gets or sets the date and time that the comment was made.
209-
public func getDateTime() -> Date? {
210-
return self.dateTime;
208+
// Gets author. Gets or sets the author name for a comment.
209+
public func getAuthor() -> String? {
210+
return self.author;
211211
}
212212

213213

@@ -223,27 +223,15 @@ public class Comment : CommentLink {
223223
}
224224

225225

226-
// Sets rangeEnd. Gets or sets the link to comment range end node.
227-
public func setRangeEnd(rangeEnd : DocumentPosition?) -> Comment {
228-
self.rangeEnd = rangeEnd;
229-
return self;
230-
}
231-
232-
// Gets rangeEnd. Gets or sets the link to comment range end node.
233-
public func getRangeEnd() -> DocumentPosition? {
234-
return self.rangeEnd;
235-
}
236-
237-
238-
// Sets rangeStart. Gets or sets the link to comment range start node.
239-
public func setRangeStart(rangeStart : DocumentPosition?) -> Comment {
240-
self.rangeStart = rangeStart;
226+
// Sets dateTime. Gets or sets the date and time that the comment was made.
227+
public func setDateTime(dateTime : Date?) -> Comment {
228+
self.dateTime = dateTime;
241229
return self;
242230
}
243231

244-
// Gets rangeStart. Gets or sets the link to comment range start node.
245-
public func getRangeStart() -> DocumentPosition? {
246-
return self.rangeStart;
232+
// Gets dateTime. Gets or sets the date and time that the comment was made.
233+
public func getDateTime() -> Date? {
234+
return self.dateTime;
247235
}
248236

249237

@@ -257,4 +245,16 @@ public class Comment : CommentLink {
257245
public func getText() -> String? {
258246
return self.text;
259247
}
248+
249+
250+
// Sets content. Gets or sets the content of the comment.
251+
public func setContent(content : StoryChildNodes?) -> Comment {
252+
self.content = content;
253+
return self;
254+
}
255+
256+
// Gets content. Gets or sets the content of the comment.
257+
public func getContent() -> StoryChildNodes? {
258+
return self.content;
259+
}
260260
}

0 commit comments

Comments
 (0)