Skip to content

Commit 2d07a65

Browse files
authored
added Pivot group, validation fixes
1 parent ed97553 commit 2d07a65

6 files changed

+42
-26
lines changed

articles/communication-services/tutorials/includes/twilio-to-acs-chat-android-tutorial.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ ms.custom: mode-other
1313

1414
## Prerequisites
1515

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).
1717
2. Install [Visual Studio](https://visualstudio.microsoft.com/downloads/).
18-
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.
2020

2121
```azurecli-interactive
2222
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
5454

5555
| Name | Description |
5656
| ------------------------------------- | ------------------------------------------------------------ |
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. |
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. |
5858
| `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. |
5959

6060
## Create a chat client
@@ -95,7 +95,7 @@ var conversation = ConversationResource.Create(
9595

9696
In Azure Communication Services, you create a thread, which is equivalent to a conversation in Twilio.
9797

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:
9999
- Use `topic` to give a topic to this chat; you can update the `topic` after the chat thread is created using the `UpdateTopic` function.
100100
- 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).
101101

@@ -214,13 +214,13 @@ var message = MessageResource.Create(
214214

215215
#### Azure Communication Services
216216

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.
218218

219219
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.
221221
- Use `type` for the content type of the message such as `Text` or `Html`. If not specified, `Text` is the default.
222222
- 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.
224224

225225
```csharp
226226
SendChatMessageOptions sendChatMessageOptions = new SendChatMessageOptions()
@@ -268,7 +268,7 @@ The following code snippet shows how to receive a media file.
268268

269269
#### Azure Communication Services
270270

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.
272272

273273
Azure Communication Services Chat enables you to subscribe to events directly within the application.
274274

@@ -282,11 +282,11 @@ await foreach (ChatMessage message in allMessages)
282282
}
283283
```
284284

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.
286286

287287
`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.
288288

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:
290290

291291
- `Text`: Regular chat message sent by a thread member.
292292

@@ -390,7 +390,7 @@ await foreach (ChatParticipant participant in allParticipants)
390390
```
391391

392392
#### 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.
394394

395395
```csharp
396396
await chatThreadClient.SendReadReceiptAsync(messageId: messageId);

articles/communication-services/tutorials/includes/twilio-to-acs-chat-csharp-tutorial.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The following classes handle some of the major features of the Azure Communicati
5454

5555
| Name | Description |
5656
| ------------------------------------- | ------------------------------------------------------------ |
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. |
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. |
5858
| `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. |
5959

6060
## Create a chat client
@@ -95,7 +95,7 @@ var conversation = ConversationResource.Create(
9595

9696
In Azure Communication Services, you create a thread, which is equivalent to a conversation in Twilio.
9797

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`:
9999
- Use `topic` to give a topic to this chat; you can update the `topic` after the chat thread is created using the `UpdateTopic` function.
100100
- 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).
101101

@@ -214,13 +214,13 @@ var message = MessageResource.Create(
214214

215215
#### Azure Communication Services
216216

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.
218218

219219
Use `SendMessage` to send a message to a thread.
220220
- Use `content` to provide the content for the message, it's required.
221221
- Use `type` for the content type of the message such as `Text` or `Html`. If not specified, `Text` is the default.
222222
- 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.
224224

225225
```csharp
226226
SendChatMessageOptions sendChatMessageOptions = new SendChatMessageOptions()
@@ -268,7 +268,7 @@ The following code snippet shows how to receive a media file.
268268

269269
#### Azure Communication Services
270270

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.
272272

273273
Azure Communication Services Chat enables you to subscribe to events directly within the application.
274274

@@ -282,15 +282,15 @@ await foreach (ChatMessage message in allMessages)
282282
}
283283
```
284284

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.
286286

287287
`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.
288288

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:
290290

291291
- `Text`: Regular chat message sent by a thread member.
292292

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.
294294

295295
- `TopicUpdated`: System message that indicates the topic has been updated. (readonly)
296296

@@ -390,7 +390,7 @@ await foreach (ChatParticipant participant in allParticipants)
390390
```
391391

392392
#### 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.
394394

395395
```csharp
396396
await chatThreadClient.SendReadReceiptAsync(messageId: messageId);

articles/communication-services/tutorials/includes/twilio-to-acs-chat-java-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ Once a chat thread is created, you can then add and remove users from it. By add
412412
413413
Use the `addParticipants` method to add participants to the thread.
414414
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.
416416
- `displayName`, optional, is the display name for the thread participant.
417417
- `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.
418418

articles/communication-services/tutorials/includes/twilio-to-acs-chat-js-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ console.log(`Message sent!, message id:${messageId}`);
301301

302302
### Receive chat messages from a chat thread
303303

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.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).
305305

306306
#### Twilio
307307

articles/communication-services/tutorials/migrating-to-azure-communication-services-chat.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.topic: how-to
1111
ms.service: azure-communication-services
1212
ms.subservice: chat
1313
ms.custom: template-how-to
14-
zone_pivot_groups: acs-js-swift-android-
14+
zone_pivot_groups: acs-migrate-twilio
1515
---
1616

1717
# Migrate from Twilio Conversations Chat to Azure Communication Services
@@ -37,6 +37,7 @@ Migrating might involve not just replacing API calls but also rethinking how you
3737
## Key features available in Azure Communication Services Chat SDK
3838

3939
| **Feature** | **JavaScript SDK** | **iOS SDK** | **Android SDK** | **.NET SDK** | **Java SDK** | **Python SDK** |
40+
| --- | --- | --- | --- | --- | --- | --- |
4041
| **Install** | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
4142
| **Import** | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
4243
| **Auth** | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
@@ -89,8 +90,8 @@ Migrating might involve not just replacing API calls but also rethinking how you
8990
| | Send Unicode emojis as part of message content | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
9091
| | Add metadata to chat messages || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
9192
| | Add display name to typing indicator notification || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
92-
|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). |||||| ✔️ | ✔️ |
9495
| 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 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
9596
| | Monitor and debug your Communication Services solution by enabling diagnostic logging for your resource | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
9697

articles/zone-pivot-groups.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3452,3 +3452,18 @@ groups:
34523452
title: React
34533453
- id: vue
34543454
title: Vue
3455+
#Owner: ektrishi
3456+
- id: acs-migrate-twilio
3457+
title: Programming languages
3458+
prompt: Choose a programming language
3459+
pivots:
3460+
- id: programming-language-javascript
3461+
title: JavaScript
3462+
- id: programming-language-android
3463+
title: Android
3464+
- id: programming-language-swift
3465+
title: Swift
3466+
- id: programming-language-csharp
3467+
title: C#
3468+
- id: programming-language-java
3469+
title: Java

0 commit comments

Comments
 (0)