RoomsClient Class
- java.
lang. Object - com.
azure. communication. rooms. RoomsClient
- com.
public final class RoomsClient
Client for Rooms operations of Azure Communication Room Service
Instantiating a Room Client
RoomsClient roomsClient = new RoomsClientBuilder()
.endpoint(endpoint)
.credential(azureKeyCredential)
.buildClient();
Method Summary
Methods inherited from java.lang.Object
Method Details
addOrUpdateParticipants
public AddOrUpdateParticipantsResult addOrUpdateParticipants(String roomId, Iterable<RoomParticipant> participants)
addOrUpdate participants to an existing Room.
Parameters:
Returns:
addOrUpdateParticipantsWithResponse
public Response<AddOrUpdateParticipantsResult> addOrUpdateParticipantsWithResponse(String roomId, Iterable<RoomParticipant> participants, Context context)
addOrUpdate participants to an existing Room with response
Parameters:
Returns:
createRoom
public CommunicationRoom createRoom(CreateRoomOptions createRoomOptions)
Create a new room. Input field is nullable.
Parameters:
Returns:
createRoomWithResponse
public Response<CommunicationRoom> createRoomWithResponse(CreateRoomOptions createRoomOptions, Context context)
Create a new Room with response.
Parameters:
Returns:
deleteRoom
public void deleteRoom(String roomId)
Delete an existing room.
Parameters:
deleteRoomWithResponse
public Response<Void> deleteRoomWithResponse(String roomId, Context context)
Delete an existing room.
Parameters:
Returns:
getRoom
public CommunicationRoom getRoom(String roomId)
Get an existing room.
Parameters:
Returns:
getRoomWithResponse
public Response<CommunicationRoom> getRoomWithResponse(String roomId, Context context)
Get an existing room with response.
Parameters:
Returns:
listParticipants
public PagedIterable<RoomParticipant> listParticipants(String roomId)
List Room participants.
Parameters:
Returns:
listParticipants
public PagedIterable<RoomParticipant> listParticipants(String roomId, Context context)
List Room participants.
Parameters:
Returns:
listRooms
public PagedIterable<CommunicationRoom> listRooms()
Lists all rooms.
Returns:
listRooms
public PagedIterable<CommunicationRoom> listRooms(Context context)
Lists all rooms.
Parameters:
Returns:
removeParticipants
public RemoveParticipantsResult removeParticipants(String roomId, Iterable<CommunicationIdentifier> identifiers)
Remove participants to an existing Room.
Parameters:
Returns:
removeParticipantsWithResponse
public Response<RemoveParticipantsResult> removeParticipantsWithResponse(String roomId, Iterable<CommunicationIdentifier> identifiers, Context context)
Remove participants to an existing Room with response
Parameters:
Returns:
updateRoom
public CommunicationRoom updateRoom(String roomId, UpdateRoomOptions updateRoomOptions)
Update an existing Room.
Parameters:
Returns:
updateRoomWithResponse
public Response<CommunicationRoom> updateRoomWithResponse(String roomId, UpdateRoomOptions updateRoomOptions, Context context)
Update an existing Room with response.
Parameters:
Returns: