Skip to content

Commit 1d70f24

Browse files
committed
consolidate add/remove participants wording
1 parent d5d4bdb commit 1d70f24

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ CommunicationRoom roomResult = roomsClient.updateRoom(roomId, request);
129129

130130
### Add new participants
131131

132-
To add new participants to a `room`, issue an update request on the room's `Participants`:
132+
To add new participants to a `room`, use the `addParticipants` method exposed on the client.
133133

134134
```java
135135
RoomParticipant user1 = new RoomParticipant().setCommunicationIdentifier(new CommunicationUserIdentifier("<ACS User MRI identity 1>")).setRole(RoleType.ATTENDEE);
@@ -151,7 +151,7 @@ Participants that have been added to a `room` become eligible to join calls.
151151

152152
### Remove participants
153153

154-
To remove a participant from a `room` and revoke their access, update the `Participants` list:
154+
To remove a participant from a `room` and revoke their access, use the `removeParticipants` method.
155155

156156
```java
157157
RoomParticipant user1 = new RoomParticipant().setCommunicationIdentifier(new CommunicationUserIdentifier("<ACS User MRI identity 1>")).setRole(RoleType.ATTENDEE);

articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Participants that have been added to a `room` become eligible to join calls.
130130

131131
### Remove participants
132132

133-
To remove a participant from a `room` and revoke their access, update the `Participants` list:
133+
To remove a participant from a `room` and revoke their access, use the `removeParticipants` method.
134134

135135
```javascript
136136
// request payload to delete both users from the room

articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-net.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ CommunicationRoom updateCommunicationRoom = updateRoomResponse.Value;
9494

9595
### Add new participants
9696

97-
To add new participants to a `room`, issue an update request on the room's `Participants`:
97+
To add new participants to a `room`, use the `AddParticipantsAsync` method exposed on the client.
9898

9999
```csharp
100100
var communicationUser1 = "<CommunicationUserId1>";
@@ -114,7 +114,7 @@ Participants that have been added to a `room` become eligible to join calls.
114114

115115
### Remove participants
116116

117-
To remove a participant from a `room` and revoke their access, update the `Participants` list:
117+
To remove a participant from a `room` and revoke their access, use the `RemoveParticipantsAsync` method.
118118

119119
```csharp
120120
var communicationUser = "<CommunicationUserId1>";

articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-python.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,22 +116,25 @@ except HttpResponseError as ex:
116116

117117
### Add new participants
118118

119-
To add new participants to a `room`, issue an update request on the room's `Participants`:
120-
121-
```csharp
122-
participants = [RoomParticipant(CommunicationUserIdentifier("<ACS User MRI identity 4>"))]
119+
To add new participants to a `room`, use the `add_participants` method exposed on the client.
123120

121+
```python
124122
try:
125-
add_participants_response = self.rooms_client.add_participants(room_id=room_id, participants=participants)
126-
except HttpResponseError as ex:
127-
print(ex)
123+
participants = []
124+
for p in participants_list:
125+
participants.append(RoomParticipant(CommunicationUserIdentifier(p), RoleType.ATTENDEE))
126+
self.rooms_client.add_participants(room_id, participants)
127+
128+
print(str(len(participants)) + ' new participants added to the room : ' + str(room_id))
129+
except Exception as ex:
130+
print('Error in adding participants to room.',ex)
128131
```
129132

130133
Participants that have been added to a `room` become eligible to join calls.
131134

132135
### Remove participants
133136

134-
To remove a participant from a `room` and revoke their access, update the `Participants` list:
137+
To remove a participant from a `room` and revoke their access, use the `remove_participants` method.
135138

136139
```python
137140
participants = [CommunicationUserIdentifier("<ACS User MRI identity 2>")]

0 commit comments

Comments
 (0)