Skip to content

Commit be0e188

Browse files
author
PureCloud Jenkins
committed
2.0.0-UNKNOWN
1 parent 731d1b3 commit be0e188

367 files changed

Lines changed: 17330 additions & 3006 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ WebMessagingClient.SessionListener sessionListener = new WebMessagingClient.Sess
4343
}
4444
4545
@Override
46-
public void echoNotification(EchoNotification echoNotification, String rawResponse) {
46+
public void sendEchoRequest(SendEchoRequest sendEchoRequest, String rawResponse) {
4747
// Handle echo notification
4848
}
4949
@@ -92,18 +92,11 @@ WebMessagingClient client = new WebMessagingClient(webSocketHost);
9292
// Add the session listener
9393
client.addSessionListener(sessionListener);
9494
95-
// Set guest information
96-
GuestInformation guestInformation = new GuestInformation();
97-
guestInformation.setEmail("johndoe@hotmail.com");
98-
guestInformation.setPhoneNumber("+15551234567");
99-
guestInformation.setFirstName("John");
100-
guestInformation.setLastName("Doe");
101-
10295
// Connect to the websocket to join the conversation
10396
String deploymentId = "df2ad262-7fe2-4fb2-9a83-e34be463713a";
10497
String token = "31a7021f-5798-4b6f-9ca2-7303d91f3f73";
10598
String initialMessage = "Initial chat message";
106-
client.joinConversation(deploymentId, guestInformation, token, initialMessage);
99+
client.joinConversation(deploymentId, token, initialMessage);
107100
108101
// Send a message to the conversation
109102
System.out.println("Type a message to send it...");

build/README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ WebMessagingClient.SessionListener sessionListener = new WebMessagingClient.Sess
4343
}
4444
4545
@Override
46-
public void echoNotification(EchoNotification echoNotification, String rawResponse) {
46+
public void sendEchoRequest(SendEchoRequest sendEchoRequest, String rawResponse) {
4747
// Handle echo notification
4848
}
4949
@@ -92,18 +92,11 @@ WebMessagingClient client = new WebMessagingClient(webSocketHost);
9292
// Add the session listener
9393
client.addSessionListener(sessionListener);
9494
95-
// Set guest information
96-
GuestInformation guestInformation = new GuestInformation();
97-
guestInformation.setEmail("johndoe@hotmail.com");
98-
guestInformation.setPhoneNumber("+15551234567");
99-
guestInformation.setFirstName("John");
100-
guestInformation.setLastName("Doe");
101-
10295
// Connect to the websocket to join the conversation
10396
String deploymentId = "df2ad262-7fe2-4fb2-9a83-e34be463713a";
10497
String token = "31a7021f-5798-4b6f-9ca2-7303d91f3f73";
10598
String initialMessage = "Initial chat message";
106-
client.joinConversation(deploymentId, guestInformation, token, initialMessage);
99+
client.joinConversation(deploymentId, token, initialMessage);
107100
108101
// Send a message to the conversation
109102
System.out.println("Type a message to send it...");

build/docs/Action.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Action
3+
---
4+
## Action
5+
6+
7+
# Action
8+
9+
## Enum
10+
11+
12+
* `MESSAGE` (value: `"Message"`)
13+
14+
15+

build/docs/BaseContentAttachment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: BaseContentAttachment
1010
| ------------ | ------------- | ------------- | ------------- |
1111
| **id** | <!----><!---->**String**<!----> | | [optional] |
1212
| **filename** | <!----><!---->**String**<!----> | | [optional] |
13-
| **fileSize** | <!----><!---->**Double**<!----> | | [optional] |
13+
| **fileSize** | <!----><!---->**Integer**<!----> | | [optional] |
1414
| **mediaType** | <!----><!---->[**MediaType**](MediaType.html)<!----> | | |
1515
| **mime** | <!----><!---->**String**<!----> | | [optional] |
1616
| **sha256** | <!----><!---->**String**<!----> | | [optional] |

build/docs/ButtonResponseType.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: ButtonResponseType
3+
---
4+
## ButtonResponseType
5+
6+
7+
# ButtonResponseType
8+
9+
## Enum
10+
11+
12+
* `BUTTON` (value: `"Button"`)
13+
14+
* `QUICKREPLY` (value: `"QuickReply"`)
15+
16+
17+

build/docs/CleanMessageContent.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ title: CleanMessageContent
1010
| ------------ | ------------- | ------------- | ------------- |
1111
| **attachment** | <!----><!---->[**CleanContentAttachment**](CleanContentAttachment.html)<!----> | | [optional] |
1212
| **contentType** | <!----><!---->[**ContentType**](ContentType.html)<!----> | | |
13+
| **buttonResponse** | <!----><!---->[**ContentButtonResponse**](ContentButtonResponse.html)<!----> | | [optional] |
14+
| **quickReply** | <!----><!---->[**ContentQuickReply**](ContentQuickReply.html)<!----> | | [optional] |
1315
{: class="table table-striped"}
1416

1517

build/docs/CloseSessionRequest.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: CloseSessionRequest
3+
---
4+
## CloseSessionRequest
5+
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
| ------------ | ------------- | ------------- | ------------- |
11+
| **action** | <!----><!---->[**RequestTypeCloseSession**](RequestTypeCloseSession.html)<!----> | | |
12+
| **sessionId** | <!----><!---->**String**<!----> | | |
13+
| **token** | <!----><!---->**String**<!----> | | |
14+
{: class="table table-striped"}
15+
16+
17+

build/docs/ConfigureSessionRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ title: ConfigureSessionRequest
1111
| **action** | <!----><!---->[**RequestTypeConfigureSession**](RequestTypeConfigureSession.html)<!----> | | |
1212
| **deploymentId** | <!----><!---->**String**<!----> | | |
1313
| **token** | <!----><!---->**String**<!----> | | |
14-
| **guestInformation** | <!----><!---->[**GuestInformation**](GuestInformation.html)<!----> | | [optional] |
1514
| **journeyContext** | <!----><!---->[**JourneyContext**](JourneyContext.html)<!----> | | [optional] |
1615
{: class="table table-striped"}
1716

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: ContentButtonResponse
3+
---
4+
## ContentButtonResponse
5+
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
| ------------ | ------------- | ------------- | ------------- |
11+
| **id** | <!----><!---->**String**<!----> | An ID assigned to the button response. Each object inside the content array has a unique ID. | [optional] |
12+
| **payload** | <!----><!---->**String**<!----> | Content of the textback payload after clicking a button | [optional] |
13+
| **text** | <!----><!---->**String**<!----> | Text to show inside the Button reply. This is also used as the response text after clicking on the Button. | |
14+
| **type** | <!----><!---->[**ButtonResponseType**](ButtonResponseType.html)<!----> | Button response type that captures Button and QuickReply type responses | [optional] |
15+
{: class="table table-striped"}
16+
17+
18+

build/docs/ContentQuickReply.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: ContentQuickReply
3+
---
4+
## ContentQuickReply
5+
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
| ------------ | ------------- | ------------- | ------------- |
11+
| **action** | <!----><!---->[**Action**](Action.html)<!----> | Specifies the type of action that is triggered upon clicking the quick reply. Currently, the only supported action is \&quot;Message\&quot; which sends a message using the quick reply text. | [optional] |
12+
| **id** | <!----><!---->**String**<!----> | An ID assigned to the quick reply. Each object inside the content array has a unique ID. | [optional] |
13+
| **image** | <!----><!---->**String**<!----> | Image associated with quick reply | [optional] |
14+
| **payload** | <!----><!---->**String**<!----> | Content of the textback payload after clicking a quick reply | [optional] |
15+
| **text** | <!----><!---->**String**<!----> | Text to show inside the quick reply. This is also used as the response text after clicking on the quick reply. | |
16+
{: class="table table-striped"}
17+
18+
19+

0 commit comments

Comments
 (0)