You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/tutorials/includes/twilio-to-acs-chat-android-tutorial.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,10 @@ ms.custom: mode-other
13
13
14
14
## Prerequisites
15
15
16
-
1. Create an Azure account with an active subscription. For details, see [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
16
+
1. Create an Azure account with an active subscription. For more information, see [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
3. Create an Azure Communication Services resource. For details, see [Create an Azure Communication Services resource](../../quickstarts/create-communication-resource.md). Record your resource **endpoint and connection string**.
19
-
4. A [User Access Token](../../quickstarts/identity/access-tokens.md). Be sure to set the scope to **chat**, and **note the token string and user_id string**. You can also use the Azure CLI and run the command below with your connection string to create a user and an access token.
18
+
3. Create an Azure Communication Services resource. For more information, see [Create an Azure Communication Services resource](../../quickstarts/create-communication-resource.md). Record your resource **endpoint and connection string**.
19
+
4. A [User Access Token](../../quickstarts/identity/access-tokens.md). Be sure to set the scope to **chat**, and **note the token string and user_id string**. You can also use the Azure CLI and run the following command with your connection string to create a user and an access token.
20
20
21
21
```azurecli-interactive
22
22
az communication identity token issue --scope chat --connection-string "yourConnectionString"
@@ -54,7 +54,7 @@ The following classes handle some of the major features of the Azure Communicati
|`ChatClient`| This class is needed for the Chat functionality. You instantiate it with your subscription information, and use it to create, get and delete threads. |
57
+
|`ChatClient`| This class is needed for the Chat functionality. You instantiate it with your subscription information, and use it to create, get, and delete threads. |
58
58
|`ChatThreadClient`| This class is needed for the Chat Thread functionality. You obtain an instance via the ChatClient, and use it to send/receive/update/delete messages, add/remove/get participants, send typing notifications and read receipts. |
59
59
60
60
## Create a chat client
@@ -95,7 +95,7 @@ var conversation = ConversationResource.Create(
95
95
96
96
In Azure Communication Services, you create a thread, which is equivalent to a conversation in Twilio.
97
97
98
-
Use the `createChatThread` method on the chatClient to create a chat thread
98
+
To create a chat thread, use the `createChatThread` method on the chatClient:
99
99
- Use `topic` to give a topic to this chat; you can update the `topic` after the chat thread is created using the `UpdateTopic` function.
100
100
- Use `participants` property to pass a list of `ChatParticipant` objects to be added to the chat thread. Initialize the `ChatParticipant` object with a `CommunicationIdentifier` object. `CommunicationIdentifier` could be of type `CommunicationUserIdentifier`, `MicrosoftTeamsUserIdentifier`, or `PhoneNumberIdentifier`. For example, to get a `CommunicationIdentifier` object, you need to pass an Access ID created following the instructions to [Create a user](../../quickstarts/identity/access-tokens.md#create-an-identity).
101
101
@@ -214,13 +214,13 @@ var message = MessageResource.Create(
214
214
215
215
#### Azure Communication Services
216
216
217
-
Unlike Twilio, Azure Communication Services does not have a separate function to send text messages or media.
217
+
Unlike Twilio, Azure Communication Services doesn't have a separate function to send text messages or media.
218
218
219
219
Use `SendMessage` to send a message to a thread.
220
-
- Use `content`to provide the content for the message, it's required.
220
+
- Use `content`, required, to provide the content for the message.
221
221
- Use `type` for the content type of the message such as `Text` or `Html`. If not specified, `Text` is the default.
222
222
- Use `senderDisplayName` to specify the display name of the sender. If not specified, empty string is the default.
223
-
- Use `metadata` optionally to include any additional data you want to send along with the message. This field provides a mechanism for developers to extend chat message function and add custom information for your use case. For example, when sharing a file link in the message, you might want to add `hasAttachment:true` in the metadata so that recipient's application can parse that and display accordingly.
223
+
- Use `metadata` optionally to include other data you want to send along with the message. This field provides a mechanism for developers to extend chat message function and add custom information for your use case. For example, when sharing a file link in the message, you might want to add `hasAttachment:true` in the metadata so that recipient's application can parse that and display accordingly.
@@ -268,7 +268,7 @@ The following code snippet shows how to receive a media file.
268
268
269
269
#### Azure Communication Services
270
270
271
-
Unlike Twilio, Azure Communication Services does not have a separate function to receive text messages or media.
271
+
Unlike Twilio, Azure Communication Services doesn't have a separate function to receive text messages or media.
272
272
273
273
Azure Communication Services Chat enables you to subscribe to events directly within the application.
274
274
@@ -282,11 +282,11 @@ await foreach (ChatMessage message in allMessages)
282
282
}
283
283
```
284
284
285
-
`GetMessages` takes an optional `DateTimeOffset` parameter. If that offset is specified, you receive messages that were received, updated, or deleted after it. Note that messages received before the offset time but edited or removed after it are also be returned.
285
+
`GetMessages` takes an optional `DateTimeOffset` parameter. If that offset is specified, you receive messages that were received, updated, or deleted after it. Messages received before the offset time but edited or removed after it are also returned.
286
286
287
287
`GetMessages` returns the latest version of the message, including any edits or deletes that happened to the message using `UpdateMessage` and `DeleteMessage`. For deleted messages, `chatMessage.DeletedOn` returns a datetime value indicating when that message was deleted. For edited messages, `chatMessage.EditedOn` returns a datetime indicating when the message was edited. You can access the original time of message creation using `chatMessage.CreatedOn`, and use it for ordering the messages.
288
288
289
-
`GetMessages` returns different types of messages which can be identified by `chatMessage.Type`. These types are:
289
+
`GetMessages` returns different types of messages, which you can identify by `chatMessage.Type`. These types are:
290
290
291
291
-`Text`: Regular chat message sent by a thread member.
292
292
@@ -390,7 +390,7 @@ await foreach (ChatParticipant participant in allParticipants)
390
390
```
391
391
392
392
#### Azure Communication Services
393
-
Use `SendReadReceipt` to notify other participants that the message is read by the user.
393
+
Use `SendReadReceipt` to notify other participants that the user read the message.
|`ChatClient`| This class is needed for the Chat functionality. You instantiate it with your subscription information, and use it to create, get and delete threads. |
57
+
|`ChatClient`| This class is needed for the Chat functionality. You instantiate it with your subscription information, and use it to create, get, and delete threads. |
58
58
|`ChatThreadClient`| This class is needed for the Chat Thread functionality. You obtain an instance via the ChatClient, and use it to send/receive/update/delete messages, add/remove/get participants, send typing notifications and read receipts. |
59
59
60
60
## Create a chat client
@@ -95,7 +95,7 @@ var conversation = ConversationResource.Create(
95
95
96
96
In Azure Communication Services, you create a thread, which is equivalent to a conversation in Twilio.
97
97
98
-
Use the `createChatThread` method on the chatClient to create a chat thread
98
+
To create a chat thread, use the `createChatThread` method on the `chatClient`:
99
99
- Use `topic` to give a topic to this chat; you can update the `topic` after the chat thread is created using the `UpdateTopic` function.
100
100
- Use `participants` property to pass a list of `ChatParticipant` objects to be added to the chat thread. Initialize the `ChatParticipant` object with a `CommunicationIdentifier` object. `CommunicationIdentifier` could be of type `CommunicationUserIdentifier`, `MicrosoftTeamsUserIdentifier`, or `PhoneNumberIdentifier`. For example, to get a `CommunicationIdentifier` object, you need to pass an Access ID created following the instructions to [Create a user](../../quickstarts/identity/access-tokens.md#create-an-identity).
101
101
@@ -214,13 +214,13 @@ var message = MessageResource.Create(
214
214
215
215
#### Azure Communication Services
216
216
217
-
Unlike Twilio, Azure Communication Services does not have a separate function to send text messages or media.
217
+
Unlike Twilio, Azure Communication Services doesn't have a separate function to send text messages or media.
218
218
219
219
Use `SendMessage` to send a message to a thread.
220
220
- Use `content` to provide the content for the message, it's required.
221
221
- Use `type` for the content type of the message such as `Text` or `Html`. If not specified, `Text` is the default.
222
222
- Use `senderDisplayName` to specify the display name of the sender. If not specified, empty string is the default.
223
-
- Use `metadata` optionally to include any additional data you want to send along with the message. This field provides a mechanism for developers to extend chat message function and add custom information for your use case. For example, when sharing a file link in the message, you might want to add `hasAttachment:true` in the metadata so that recipient's application can parse that and display accordingly.
223
+
- Use `metadata` optionally to include any other data you want to send along with the message. This field provides a mechanism for developers to extend chat message function and add custom information for your use case. For example, when sharing a file link in the message, you might want to add `hasAttachment:true` in the metadata so that recipient's application can parse that and display accordingly.
@@ -268,7 +268,7 @@ The following code snippet shows how to receive a media file.
268
268
269
269
#### Azure Communication Services
270
270
271
-
Unlike Twilio, Azure Communication Services does not have a separate function to receive text messages or media.
271
+
Unlike Twilio, Azure Communication Services doesn't have a separate function to receive text messages or media.
272
272
273
273
Azure Communication Services Chat enables you to subscribe to events directly within the application.
274
274
@@ -282,15 +282,15 @@ await foreach (ChatMessage message in allMessages)
282
282
}
283
283
```
284
284
285
-
`GetMessages` takes an optional `DateTimeOffset` parameter. If that offset is specified, you receive messages that were received, updated, or deleted after it. Note that messages received before the offset time but edited or removed after it are also be returned.
285
+
`GetMessages` takes an optional `DateTimeOffset` parameter. If that offset is specified, you receive messages that were received, updated, or deleted after it. Messages received before the offset time but edited or removed after it are also returned.
286
286
287
287
`GetMessages` returns the latest version of the message, including any edits or deletes that happened to the message using `UpdateMessage` and `DeleteMessage`. For deleted messages, `chatMessage.DeletedOn` returns a datetime value indicating when that message was deleted. For edited messages, `chatMessage.EditedOn` returns a datetime indicating when the message was edited. You can access the original time of message creation using `chatMessage.CreatedOn`, and use it for ordering the messages.
288
288
289
-
`GetMessages` returns different types of messages which can be identified by `chatMessage.Type`. These types are:
289
+
`GetMessages` returns different types of messages, which can be identified by `chatMessage.Type`. These types are:
290
290
291
291
-`Text`: Regular chat message sent by a thread member.
292
292
293
-
-`Html`: A formatted text message. Note that Communication Services users currently can't send `RichText` messages. This message type is supported by messages sent from Teams users to Communication Services users in Teams Interop scenarios.
293
+
-`Html`: A formatted text message. Communication Services users currently can't send `RichText` messages. This message type is supported by messages sent from Teams users to Communication Services users in Teams Interop scenarios.
294
294
295
295
-`TopicUpdated`: System message that indicates the topic has been updated. (readonly)
296
296
@@ -390,7 +390,7 @@ await foreach (ChatParticipant participant in allParticipants)
390
390
```
391
391
392
392
#### Azure Communication Services
393
-
Use `SendReadReceipt` to notify other participants that the message is read by the user.
393
+
Use `SendReadReceipt` to notify other participants that the user read the message.
Copy file name to clipboardExpand all lines: articles/communication-services/tutorials/includes/twilio-to-acs-chat-java-tutorial.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -412,7 +412,7 @@ Once a chat thread is created, you can then add and remove users from it. By add
412
412
413
413
Use the `addParticipants` method to add participants to the thread.
414
414
415
-
- `communicationIdentifier`, required, is the `CommunicationIdentifier` you created using `CommunicationIdentityClient` in the [User Access Token](../../quickstart/identity/access-tokens.md) quickstart.
415
+
- `communicationIdentifier`, required, is the `CommunicationIdentifier` you created using `CommunicationIdentityClient` in the [User Access Token](../../quickstarts/identity/access-tokens.md) quickstart.
416
416
- `displayName`, optional, is the display name for the thread participant.
417
417
- `shareHistoryTime`, optional, is the time from which the chat history is shared with the participant. To share history since the inception of the chat thread, set this property to any date equal to, or less than the thread creation time. To share no history previous to when the participant was added, set it to the current date. To share partial history, set it to the required date.
Unlike Twilio, Azure Communication Services doesn't have separate functions to receive text messages or media. Azure Communication Services uses Azure Event Grid to handle events. For more information, see [Event Handling](/azure/event-grid/event-schema-communication-services.md).
304
+
Unlike Twilio, Azure Communication Services doesn't have separate functions to receive text messages or media. Azure Communication Services uses Azure Event Grid to handle events. For more information, see [Event Handling](/azure/event-grid/event-schema-communication-services).
|Real-time notifications (enabled by proprietary signaling package**)| Chat clients can subscribe to get real-time updates for incoming messages and other operations occurring in a chat thread. To see a list of supported updates for real-time notifications, see [Chat concepts](concepts.md#real-time-notifications)| ❌ | ✔️ | ❌ | ❌ | ❌ | ✔️ | ✔️ |
93
-
|Mobile push notifications with Notification Hub | The Chat SDK provides APIs allowing clients to be notified for incoming messages and other operations occurring in a chat thread by connecting an Azure Notification Hub to your Communication Services resource. In situations where your mobile app is not running in the foreground, patterns are available to [fire pop-up notifications](../notifications.md) ("toasts") to inform end-users, see [Chat concepts](concepts.md#push-notifications).| ❌ | ❌ | ❌ | ❌ | ❌ | ✔️ | ✔️ |
93
+
|Real-time notifications (enabled by proprietary signaling package**)| Chat clients can subscribe to get real-time updates for incoming messages and other operations occurring in a chat thread. To see a list of supported updates for real-time notifications, see [Chat concepts](../concepts.md#real-time-notifications)| ❌ | ✔️ | ❌ | ❌ | ❌ | ✔️ | ✔️ |
94
+
|Mobile push notifications with Notification Hub | The Chat SDK provides APIs allowing clients to be notified for incoming messages and other operations occurring in a chat thread by connecting an Azure Notification Hub to your Communication Services resource. In situations where your mobile app is not running in the foreground, patterns are available to [fire pop-up notifications](../concepts/notifications.md) ("toasts") to inform end-users, see [Chat concepts](../concepts.md#push-notifications). | ❌ | ❌ | ❌ | ❌ | ❌ | ✔️ | ✔️ |
94
95
| Reporting </br>(This info is available under Monitoring tab for your Communication Services resource on Azure portal) | Understand API traffic from your chat app by monitoring the published metrics in Azure Metrics Explorer and set alerts to detect abnormalities | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
95
96
|| Monitor and debug your Communication Services solution by enabling diagnostic logging for your resource | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
0 commit comments