Skip to content

Commit f66a956

Browse files
SDK version 20.5.0.69 generated
1 parent 2d02005 commit f66a956

File tree

12 files changed

+169
-169
lines changed

12 files changed

+169
-169
lines changed

docs/DeleteEmailThreadAccountRq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**folderId** | **String** | Specifies account folder to get thread from (required for some account types, such as EWS). Use folder Id from ListEmailFolders (MailServerFolder.Id). For IMAP folder Id is always same as folder name. | [optional]
7+
**folder** | **String** | Specifies account folder to get thread from | [optional]
88

99

1010
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to API README]](README.md)

docs/EmailApi.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,38 @@ Name | Type | Description | Notes
12541254

12551255
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to API README]](README.md)
12561256

1257+
<a name="fetchEmailThreadMessages"></a>
1258+
## **fetchEmailThreadMessages**
1259+
> [ListResponseOfEmailDto](ListResponseOfEmailDto.md) fetchEmailThreadMessages(FetchEmailThreadMessagesRequestData request)
1260+
1261+
Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
1262+
1263+
### **FetchEmailThreadMessagesRequestData** Parameters
1264+
```java
1265+
public FetchEmailThreadMessagesRequestData(
1266+
String threadId,
1267+
String firstAccount,
1268+
String secondAccount,
1269+
String folder,
1270+
String storage,
1271+
String storageFolder)
1272+
```
1273+
1274+
Name | Type | Description | Notes
1275+
------------- | ------------- | ------------- | -------------
1276+
**threadId** | **String**| Thread identifier |
1277+
**firstAccount** | **String**| Email account |
1278+
**secondAccount** | **String**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
1279+
**folder** | **String**| Specifies account folder to get thread from | [optional]
1280+
**storage** | **String**| Storage name where account file(s) located | [optional]
1281+
**storageFolder** | **String**| Folder in storage where account file(s) located | [optional]
1282+
1283+
### Return type
1284+
1285+
[**ListResponseOfEmailDto**](ListResponseOfEmailDto.md)
1286+
1287+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to API README]](README.md)
1288+
12571289
<a name="getCalendar"></a>
12581290
## **getCalendar**
12591291
> [HierarchicalObject](HierarchicalObject.md) getCalendar(GetCalendarRequestData request)
@@ -1808,38 +1840,6 @@ Name | Type | Description | Notes
18081840

18091841
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to API README]](README.md)
18101842

1811-
<a name="getEmailThread"></a>
1812-
## **getEmailThread**
1813-
> [EmailThread](EmailThread.md) getEmailThread(GetEmailThreadRequestData request)
1814-
1815-
Get message thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
1816-
1817-
### **GetEmailThreadRequestData** Parameters
1818-
```java
1819-
public GetEmailThreadRequestData(
1820-
String threadId,
1821-
String firstAccount,
1822-
String secondAccount,
1823-
String folderId,
1824-
String storage,
1825-
String storageFolder)
1826-
```
1827-
1828-
Name | Type | Description | Notes
1829-
------------- | ------------- | ------------- | -------------
1830-
**threadId** | **String**| Thread identifier |
1831-
**firstAccount** | **String**| Email account |
1832-
**secondAccount** | **String**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
1833-
**folderId** | **String**| Specifies account folder to get thread from (required for some account types, such as EWS). Use folder Id from ListEmailFolders (MailServerFolder.Id). For IMAP folder Id is always same as folder name. | [optional]
1834-
**storage** | **String**| Storage name where account file(s) located | [optional]
1835-
**storageFolder** | **String**| Folder in storage where account file(s) located | [optional]
1836-
1837-
### Return type
1838-
1839-
[**EmailThread**](EmailThread.md)
1840-
1841-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to API README]](README.md)
1842-
18431843
<a name="getFileVersions"></a>
18441844
## **getFileVersions**
18451845
> [FileVersions](FileVersions.md) getFileVersions(GetFileVersionsRequestData request)
@@ -2129,7 +2129,7 @@ Get message threads from folder. All messages are partly fetched (without email
21292129
### **ListEmailThreadsRequestData** Parameters
21302130
```java
21312131
public ListEmailThreadsRequestData(
2132-
String folderId,
2132+
String folder,
21332133
String firstAccount,
21342134
String secondAccount,
21352135
String storage,
@@ -2140,7 +2140,7 @@ public ListEmailThreadsRequestData(
21402140

21412141
Name | Type | Description | Notes
21422142
------------- | ------------- | ------------- | -------------
2143-
**folderId** | **String**| A folder id in email account. Use folder Id from ListEmailFolders (MailServerFolder.Id). For IMAP folder Id is always same as folder name. |
2143+
**folder** | **String**| A folder in email account. |
21442144
**firstAccount** | **String**| Email account |
21452145
**secondAccount** | **String**| Additional email account (for example, firstAccount could be IMAP, and second one could be SMTP) | [optional]
21462146
**storage** | **String**| Storage name where account file(s) located | [optional]

docs/EmailThreadReadFlagRq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**isRead** | **Boolean** | Read flag to set. \&quot;true\&quot; by default |
8-
**folderId** | **String** | Specifies account folder to get thread from (required for some account types, such as EWS). Use folder Id from ListEmailFolders (MailServerFolder.Id). For IMAP folder Id is always same as folder name. | [optional]
8+
**folder** | **String** | Specifies account folder to get thread from | [optional]
99

1010

1111
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to API README]](README.md)

docs/MoveEmailThreadRq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**destinationFolderId** | **String** | Email account folder id to move thread to. Use folder Id from ListEmailFolders (MailServerFolder.Id). For IMAP folder Id is always same as folder name. | [optional]
7+
**destinationFolder** | **String** | Email account folder to move thread to | [optional]
88

99

1010
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to API README]](README.md)

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Class | Method | HTTP request | Description
5656
*EmailApi* | [**downloadFile**](EmailApi.md#downloadfile) | **GET** /email/storage/file/{path} | Download file
5757
*EmailApi* | [**fetchEmailMessage**](EmailApi.md#fetchemailmessage) | **GET** /email/client/Fetch | Fetch message mime from email account
5858
*EmailApi* | [**fetchEmailModel**](EmailApi.md#fetchemailmodel) | **GET** /email/client/FetchModel | Fetch message model from email account
59+
*EmailApi* | [**fetchEmailThreadMessages**](EmailApi.md#fetchemailthreadmessages) | **GET** /email/client/threads/{threadId}/messages | Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
5960
*EmailApi* | [**getCalendar**](EmailApi.md#getcalendar) | **GET** /email/Calendar/{name}/properties | Get calendar file properties
6061
*EmailApi* | [**getCalendarAttachment**](EmailApi.md#getcalendarattachment) | **GET** /email/Calendar/{name}/attachments/{attachment} | Get iCalendar document attachment by name
6162
*EmailApi* | [**getCalendarList**](EmailApi.md#getcalendarlist) | **GET** /email/Calendar | Get iCalendar files list in folder on storage
@@ -76,7 +77,6 @@ Class | Method | HTTP request | Description
7677
*EmailApi* | [**getEmailModel**](EmailApi.md#getemailmodel) | **GET** /email/model/{format}/{name} | Get email document.
7778
*EmailApi* | [**getEmailModelList**](EmailApi.md#getemailmodellist) | **GET** /email/model/{format} | Get email list from storage folder.
7879
*EmailApi* | [**getEmailProperty**](EmailApi.md#getemailproperty) | **GET** /email/{fileName}/properties/{propertyName} | Get an email document property by its name
79-
*EmailApi* | [**getEmailThread**](EmailApi.md#getemailthread) | **GET** /email/client/threads/{threadId} | Get message thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
8080
*EmailApi* | [**getFileVersions**](EmailApi.md#getfileversions) | **GET** /email/storage/version/{path} | Get file versions
8181
*EmailApi* | [**getFilesList**](EmailApi.md#getfileslist) | **GET** /email/storage/folder/{path} | Get all files and folders within a folder
8282
*EmailApi* | [**getMapiAttachment**](EmailApi.md#getmapiattachment) | **GET** /email/Mapi/{name}/attachments/{attachment} | Get document attachment as file stream

pom.xml

Lines changed: 1 addition & 1 deletion
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.4.0.80</version>
7+
<version>20.5.0.69</version>
88
<url>https://github.com/aspose-email-cloud/aspose-email-cloud-java</url>
99
<description>Aspose.Email Cloud SDK</description>
1010
<licenses>

src/main/java/com/aspose/email/cloud/sdk/api/EmailApi.java

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,6 +2441,58 @@ public EmailDto fetchEmailModel(FetchEmailModelRequestData request) throws ApiEx
24412441
}
24422442
}
24432443

2444+
/**
2445+
* Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
2446+
*
2447+
* @param request Holds parameters for this request invocation.
2448+
* @return ListResponseOfEmailDto
2449+
* @throws ApiException
2450+
*/
2451+
public ListResponseOfEmailDto fetchEmailThreadMessages(FetchEmailThreadMessagesRequestData request) throws ApiException
2452+
{
2453+
try {
2454+
// verify the required parameter 'request.threadId' is set
2455+
if (request.threadId== null) {
2456+
throw new ApiException(400, "Missing the required parameter 'request.threadId' when calling fetchEmailThreadMessages");
2457+
}
2458+
// verify the required parameter 'request.firstAccount' is set
2459+
if (request.firstAccount== null) {
2460+
throw new ApiException(400, "Missing the required parameter 'request.firstAccount' when calling fetchEmailThreadMessages");
2461+
}
2462+
// create path and map variables
2463+
String resourcePath = this.Configuration.getApiRootUrl() + "/email/client/threads/{threadId}/messages";
2464+
2465+
HashMap<String, Object> formParams = new HashMap<String, Object>();
2466+
resourcePath = UrlHelper.addPathParameter(resourcePath, "threadId", request.threadId);
2467+
2468+
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "firstAccount", request.firstAccount);
2469+
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "secondAccount", request.secondAccount);
2470+
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "folder", request.folder);
2471+
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "storage", request.storage);
2472+
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "storageFolder", request.storageFolder);
2473+
2474+
2475+
byte[] response = this.apiInvoker.invokeApi(
2476+
resourcePath,
2477+
"GET",
2478+
null,
2479+
null,
2480+
formParams);
2481+
2482+
2483+
if (response == null)
2484+
{
2485+
return null;
2486+
}
2487+
2488+
return SerializationHelper.deserialize(new String(response), ListResponseOfEmailDto.class);
2489+
} catch(ApiException exception) {
2490+
throw exception;
2491+
} catch(Exception exception) {
2492+
throw new ApiException(400, exception.getMessage());
2493+
}
2494+
}
2495+
24442496
/**
24452497
* Get calendar file properties
24462498
*
@@ -3398,58 +3450,6 @@ public EmailPropertyResponse getEmailProperty(GetEmailPropertyRequestData reques
33983450
}
33993451
}
34003452

3401-
/**
3402-
* Get message thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
3403-
*
3404-
* @param request Holds parameters for this request invocation.
3405-
* @return EmailThread
3406-
* @throws ApiException
3407-
*/
3408-
public EmailThread getEmailThread(GetEmailThreadRequestData request) throws ApiException
3409-
{
3410-
try {
3411-
// verify the required parameter 'request.threadId' is set
3412-
if (request.threadId== null) {
3413-
throw new ApiException(400, "Missing the required parameter 'request.threadId' when calling getEmailThread");
3414-
}
3415-
// verify the required parameter 'request.firstAccount' is set
3416-
if (request.firstAccount== null) {
3417-
throw new ApiException(400, "Missing the required parameter 'request.firstAccount' when calling getEmailThread");
3418-
}
3419-
// create path and map variables
3420-
String resourcePath = this.Configuration.getApiRootUrl() + "/email/client/threads/{threadId}";
3421-
3422-
HashMap<String, Object> formParams = new HashMap<String, Object>();
3423-
resourcePath = UrlHelper.addPathParameter(resourcePath, "threadId", request.threadId);
3424-
3425-
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "firstAccount", request.firstAccount);
3426-
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "secondAccount", request.secondAccount);
3427-
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "folderId", request.folderId);
3428-
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "storage", request.storage);
3429-
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "storageFolder", request.storageFolder);
3430-
3431-
3432-
byte[] response = this.apiInvoker.invokeApi(
3433-
resourcePath,
3434-
"GET",
3435-
null,
3436-
null,
3437-
formParams);
3438-
3439-
3440-
if (response == null)
3441-
{
3442-
return null;
3443-
}
3444-
3445-
return SerializationHelper.deserialize(new String(response), EmailThread.class);
3446-
} catch(ApiException exception) {
3447-
throw exception;
3448-
} catch(Exception exception) {
3449-
throw new ApiException(400, exception.getMessage());
3450-
}
3451-
}
3452-
34533453
/**
34543454
* Get file versions
34553455
*
@@ -3925,9 +3925,9 @@ public ListResponseOfEmailDto listEmailModels(ListEmailModelsRequestData request
39253925
public EmailThreadList listEmailThreads(ListEmailThreadsRequestData request) throws ApiException
39263926
{
39273927
try {
3928-
// verify the required parameter 'request.folderId' is set
3929-
if (request.folderId== null) {
3930-
throw new ApiException(400, "Missing the required parameter 'request.folderId' when calling listEmailThreads");
3928+
// verify the required parameter 'request.folder' is set
3929+
if (request.folder== null) {
3930+
throw new ApiException(400, "Missing the required parameter 'request.folder' when calling listEmailThreads");
39313931
}
39323932
// verify the required parameter 'request.firstAccount' is set
39333933
if (request.firstAccount== null) {
@@ -3938,7 +3938,7 @@ public EmailThreadList listEmailThreads(ListEmailThreadsRequestData request) thr
39383938

39393939
HashMap<String, Object> formParams = new HashMap<String, Object>();
39403940

3941-
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "folderId", request.folderId);
3941+
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "folder", request.folder);
39423942
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "firstAccount", request.firstAccount);
39433943
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "secondAccount", request.secondAccount);
39443944
resourcePath = UrlHelper.addQueryParameterToUrl(resourcePath, "storage", request.storage);

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,33 +43,33 @@
4343
* Delete thread request
4444
*/
4545
public class DeleteEmailThreadAccountRq extends AccountBaseRequest {
46-
@JsonProperty("folderId")
47-
private String folderId = null;
46+
@JsonProperty("folder")
47+
private String folder = null;
4848

4949
/**
50-
* Set folderId and return this.
51-
* @param folderId Specifies account folder to get thread from (required for some account types, such as EWS). Use folder Id from ListEmailFolders (MailServerFolder.Id). For IMAP folder Id is always same as folder name.
50+
* Set folder and return this.
51+
* @param folder Specifies account folder to get thread from
5252
* @return this
5353
**/
54-
public DeleteEmailThreadAccountRq folderId(String folderId) {
55-
this.folderId = folderId;
54+
public DeleteEmailThreadAccountRq folder(String folder) {
55+
this.folder = folder;
5656
return this;
5757
}
5858

5959
/**
60-
* Specifies account folder to get thread from (required for some account types, such as EWS). Use folder Id from ListEmailFolders (MailServerFolder.Id). For IMAP folder Id is always same as folder name.
61-
* @return folderId
60+
* Specifies account folder to get thread from
61+
* @return folder
6262
**/
63-
public String getFolderId() {
64-
return folderId;
63+
public String getFolder() {
64+
return folder;
6565
}
6666

6767
/**
68-
* Set folderId.
69-
* @param folderId Specifies account folder to get thread from (required for some account types, such as EWS). Use folder Id from ListEmailFolders (MailServerFolder.Id). For IMAP folder Id is always same as folder name.
68+
* Set folder.
69+
* @param folder Specifies account folder to get thread from
7070
**/
71-
public void setFolderId(String folderId) {
72-
this.folderId = folderId;
71+
public void setFolder(String folder) {
72+
this.folder = folder;
7373
}
7474

7575

@@ -82,13 +82,13 @@ public boolean equals(java.lang.Object o) {
8282
return false;
8383
}
8484
DeleteEmailThreadAccountRq deleteEmailThreadAccountRq = (DeleteEmailThreadAccountRq) o;
85-
return ObjectUtils.equals(this.folderId, deleteEmailThreadAccountRq.folderId) &&
85+
return ObjectUtils.equals(this.folder, deleteEmailThreadAccountRq.folder) &&
8686
super.equals(o);
8787
}
8888

8989
@Override
9090
public int hashCode() {
91-
return ObjectUtils.hashCodeMulti(folderId, super.hashCode());
91+
return ObjectUtils.hashCodeMulti(folder, super.hashCode());
9292
}
9393

9494

@@ -100,7 +100,7 @@ public String toString() {
100100
sb.append(" firstAccount: ").append(toIndentedString(getFirstAccount())).append("\n");
101101
sb.append(" secondAccount: ").append(toIndentedString(getSecondAccount())).append("\n");
102102
sb.append(" storageFolder: ").append(toIndentedString(getStorageFolder())).append("\n");
103-
sb.append(" folderId: ").append(toIndentedString(getFolderId())).append("\n");
103+
sb.append(" folder: ").append(toIndentedString(getFolder())).append("\n");
104104
sb.append("}");
105105
return sb.toString();
106106
}
@@ -125,14 +125,14 @@ public DeleteEmailThreadAccountRq() {
125125
* @param firstAccount First account storage file name
126126
* @param secondAccount Additional email account (for example, FirstAccount could be IMAP, and second one could be SMTP)
127127
* @param storageFolder Storage folder location of account files
128-
* @param folderId Specifies account folder to get thread from (required for some account types, such as EWS). Use folder Id from ListEmailFolders (MailServerFolder.Id). For IMAP folder Id is always same as folder name.
128+
* @param folder Specifies account folder to get thread from
129129
*/
130-
public DeleteEmailThreadAccountRq(String firstAccount, String secondAccount, StorageFolderLocation storageFolder, String folderId) {
130+
public DeleteEmailThreadAccountRq(String firstAccount, String secondAccount, StorageFolderLocation storageFolder, String folder) {
131131
super();
132132
setFirstAccount(firstAccount);
133133
setSecondAccount(secondAccount);
134134
setStorageFolder(storageFolder);
135-
setFolderId(folderId);
135+
setFolder(folder);
136136
}
137137

138138
}

0 commit comments

Comments
 (0)