Skip to content

Commit 3eb43dd

Browse files
Merge branch 'develop' into master
2 parents 919a545 + 350fb78 commit 3eb43dd

File tree

6 files changed

+55
-32
lines changed

6 files changed

+55
-32
lines changed

README.md

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,12 @@ Aspose.Email Cloud is a REST API for creating email applications that work with
2323
- Email configuration discovery.
2424
- Disposable email address detection.
2525

26-
## Enhancements in Version 20.12
26+
## Enhancements in Version 21.3
2727

28-
Aspose.Email Cloud 20.12.0 comes with SDK breaking changes:
29-
- AppKey renamed to ClientSecret.
30-
- AppSID renamed to ClientId.
28+
- IMAP native threads support added to the built-in Email client.
29+
- New field ClientThreadMoveRequest.SourceFolder added to specify a folder to move a thread from.
3130

32-
Some [SDK reference documentation](https://docs.aspose.cloud/email/reference-api/) improvements were made.
33-
34-
## Enhancements in Version 20.10
35-
36-
- All SDK functions are divided into groups (Email, Calendar, Contact, Client, Ai, Mapi, etc.).
37-
- Unified file API provided for supported file types (Save, Get, Convert, AsFile, FromFile, AsMapi/AsDto).
38-
- HierarchicalObject based API is removed.
39-
- All models are stored in one folder/namespace.
40-
- The request models are simplified
41-
42-
## Enhancements in Version 20.9
43-
- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files.
44-
- Supports AI functions:
45-
- Business card recognition.
46-
- The Name API for parsing and handling personal names.
47-
- Has a built-in email client. This client provides:
48-
- Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav.
49-
- Virtual multi-account.
50-
- Message threads (POP3 accounts are also supported).
51-
- Email configuration discovery.
52-
- Disposable email address detection.
53-
54-
55-
See [Release notes](https://docs.aspose.cloud/email/release-notes/).
31+
See [Release notes](https://docs.aspose.cloud/email/aspose-email-cloud-21-3-release-notes/).
5632

5733
## How to use the SDK?
5834
The complete source code is available in the [GIT repository](https://github.com/aspose-email-cloud/aspose-email-cloud-java/tree/master/src/main/java/com/aspose/email/cloud/sdk).

docs/ClientThreadApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ See parameter model documentation at [ClientThreadMoveRequest](ClientThreadMoveR
304304
```java
305305
ClientThreadMoveRequest request = Models.clientThreadMoveRequest()
306306
.destinationFolder("INBOX/SubFolder")
307+
.sourceFolder("INBOX")
307308
.threadId("5")
308309
.accountLocation(Models.storageFileLocation()
309310
.fileName("email.account")
@@ -331,6 +332,7 @@ EmailCloud api = new EmailCloud(clientSecret, clientId);
331332
// Prepare parameters:
332333
ClientThreadMoveRequest request = Models.clientThreadMoveRequest()
333334
.destinationFolder("INBOX/SubFolder")
335+
.sourceFolder("INBOX")
334336
.threadId("5")
335337
.accountLocation(Models.storageFileLocation()
336338
.fileName("email.account")

docs/ClientThreadMoveRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Email client move thread request.
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**destinationFolder** | **String** | Email account folder to move thread to. |
9+
**sourceFolder** | **String** | Email account folder to move thread from. | [optional]
910

1011
## Parent class
1112

@@ -16,6 +17,7 @@ See: [ClientThreadBaseRequest](ClientThreadBaseRequest.md)
1617
```java
1718
ClientThreadMoveRequest clientThreadMoveRequest = Models.clientThreadMoveRequest()
1819
.destinationFolder("INBOX/SubFolder")
20+
.sourceFolder("INBOX")
1921
.threadId("5")
2022
.accountLocation(Models.storageFileLocation()
2123
.fileName("email.account")

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>aspose-email-cloud</artifactId>
55
<packaging>jar</packaging>
66
<name>aspose-email-cloud</name>
7-
<version>20.12.0</version>
7+
<version>21.3.0.132</version>
88
<url>https://github.com/aspose-email-cloud/aspose-email-cloud-java</url>
99
<description>Aspose.Email Cloud SDK</description>
1010
<licenses>
@@ -43,7 +43,7 @@
4343
</execution>
4444
</executions>
4545
</plugin>
46-
<plugin>
46+
<plugin>
4747
<artifactId>maven-dependency-plugin</artifactId>
4848
<executions>
4949
<execution>

src/main/java/com/aspose/email/cloud/sdk/model/ClientThreadMoveRequest.java

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
public class ClientThreadMoveRequest extends ClientThreadBaseRequest {
4646
@JsonProperty("destinationFolder")
4747
private String destinationFolder = null;
48+
@JsonProperty("sourceFolder")
49+
private String sourceFolder = null;
4850

4951
/**
5052
* Set destinationFolder and return this.
@@ -73,6 +75,33 @@ public void setDestinationFolder(String destinationFolder) {
7375
}
7476

7577

78+
/**
79+
* Set sourceFolder and return this.
80+
* @param sourceFolder Email account folder to move thread from.
81+
* @return this
82+
**/
83+
public ClientThreadMoveRequest sourceFolder(String sourceFolder) {
84+
this.sourceFolder = sourceFolder;
85+
return this;
86+
}
87+
88+
/**
89+
* Email account folder to move thread from.
90+
* @return sourceFolder
91+
**/
92+
public String getSourceFolder() {
93+
return sourceFolder;
94+
}
95+
96+
/**
97+
* Set sourceFolder.
98+
* @param sourceFolder Email account folder to move thread from.
99+
**/
100+
public void setSourceFolder(String sourceFolder) {
101+
this.sourceFolder = sourceFolder;
102+
}
103+
104+
76105
@Override
77106
public boolean equals(java.lang.Object o) {
78107
if (this == o) {
@@ -83,12 +112,13 @@ public boolean equals(java.lang.Object o) {
83112
}
84113
ClientThreadMoveRequest clientThreadMoveRequest = (ClientThreadMoveRequest) o;
85114
return ObjectUtils.equals(this.destinationFolder, clientThreadMoveRequest.destinationFolder) &&
115+
ObjectUtils.equals(this.sourceFolder, clientThreadMoveRequest.sourceFolder) &&
86116
super.equals(o);
87117
}
88118

89119
@Override
90120
public int hashCode() {
91-
return ObjectUtils.hashCodeMulti(destinationFolder, super.hashCode());
121+
return ObjectUtils.hashCodeMulti(destinationFolder, sourceFolder, super.hashCode());
92122
}
93123

94124

@@ -100,6 +130,7 @@ public String toString() {
100130
sb.append(" accountLocation: ").append(toIndentedString(getAccountLocation())).append("\n");
101131
sb.append(" threadId: ").append(toIndentedString(getThreadId())).append("\n");
102132
sb.append(" destinationFolder: ").append(toIndentedString(getDestinationFolder())).append("\n");
133+
sb.append(" sourceFolder: ").append(toIndentedString(getSourceFolder())).append("\n");
103134
sb.append("}");
104135
return sb.toString();
105136
}
@@ -124,16 +155,19 @@ public ClientThreadMoveRequest() {
124155
* @param accountLocation Email client account configuration location on storage.
125156
* @param threadId Thread identifier.
126157
* @param destinationFolder Email account folder to move thread to.
158+
* @param sourceFolder Email account folder to move thread from.
127159
*/
128160
public ClientThreadMoveRequest(
129161
StorageFileLocation accountLocation,
130162
String threadId,
131-
String destinationFolder
163+
String destinationFolder,
164+
String sourceFolder
132165
) {
133166
super();
134167
setAccountLocation(accountLocation);
135168
setThreadId(threadId);
136169
setDestinationFolder(destinationFolder);
170+
setSourceFolder(sourceFolder);
137171
}
138172

139173
}

src/main/java/com/aspose/email/cloud/sdk/model/ClientThreadMoveRequestBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,13 @@ public ClientThreadMoveRequestBuilder destinationFolder(String destinationFolder
8383
this.model.destinationFolder(destinationFolder);
8484
return this;
8585
}
86+
/**
87+
* Set ClientThreadMoveRequest.sourceFolder and return builder.
88+
* @param sourceFolder Email account folder to move thread from.
89+
* @return builder
90+
**/
91+
public ClientThreadMoveRequestBuilder sourceFolder(String sourceFolder) {
92+
this.model.sourceFolder(sourceFolder);
93+
return this;
94+
}
8695
}

0 commit comments

Comments
 (0)