Package com.azure.communication.rooms
Class RoomsAsyncClient
java.lang.Object
com.azure.communication.rooms.RoomsAsyncClient
The Async client for create, update, get, delete room of Azure Communication Room Service.
-
Method Summary
Modifier and TypeMethodDescriptionaddParticipants
(String roomId, List<RoomParticipant> participants) Add participants to an existing Room.Mono<com.azure.core.http.rest.Response<ParticipantsCollection>>
addParticipantsWithResponse
(String roomId, List<RoomParticipant> participants) Add participants to an existing room with response.createRoom
(OffsetDateTime validFrom, OffsetDateTime validUntil, RoomJoinPolicy roomJoinPolicy, List<RoomParticipant> participants) Create a new Room, input fields are nullable.Mono<com.azure.core.http.rest.Response<CommunicationRoom>>
createRoomWithResponse
(OffsetDateTime validFrom, OffsetDateTime validUntil, RoomJoinPolicy roomJoinPolicy, List<RoomParticipant> participants) Create a new Room, input fields are nullable.deleteRoom
(String roomId) Delete an existing room.deleteRoomWithResponse
(String roomId) Delete a existing room.getParticipants
(String roomId) Get a room participants.Mono<com.azure.core.http.rest.Response<ParticipantsCollection>>
getParticipantsWithResponse
(String roomId) Get an existing room participantsGet an existing room.Mono<com.azure.core.http.rest.Response<CommunicationRoom>>
getRoomWithResponse
(String roomId) Get an existing room with response.removeParticipants
(String roomId, List<RoomParticipant> participants) Remove participants from an existing Room.Mono<com.azure.core.http.rest.Response<ParticipantsCollection>>
removeParticipantsWithResponse
(String roomId, List<RoomParticipant> participants) Remove participants to an existing room with response.updateParticipants
(String roomId, List<RoomParticipant> participants) Update participants to an existing Room.Mono<com.azure.core.http.rest.Response<ParticipantsCollection>>
updateParticipantsWithResponse
(String roomId, List<RoomParticipant> participants) Update participants to an existing room with response.updateRoom
(String roomId, OffsetDateTime validFrom, OffsetDateTime validUntil, RoomJoinPolicy roomJoinPolicy, List<RoomParticipant> participants) Update an existing Room.Mono<com.azure.core.http.rest.Response<CommunicationRoom>>
updateRoomWithResponse
(String roomId, OffsetDateTime validFrom, OffsetDateTime validUntil, RoomJoinPolicy roomJoinPolicy, List<RoomParticipant> participants) Update an existing room with response.
-
Method Details
-
createRoom
public Mono<CommunicationRoom> createRoom(OffsetDateTime validFrom, OffsetDateTime validUntil, RoomJoinPolicy roomJoinPolicy, List<RoomParticipant> participants) Create a new Room, input fields are nullable.- Parameters:
validFrom
- the validFrom value to set.validUntil
- the validUntil value to set.roomJoinPolicy
- the roomJoinPolicy value to set.participants
- the participants value to set.- Returns:
- response for a successful create room request.
-
createRoomWithResponse
public Mono<com.azure.core.http.rest.Response<CommunicationRoom>> createRoomWithResponse(OffsetDateTime validFrom, OffsetDateTime validUntil, RoomJoinPolicy roomJoinPolicy, List<RoomParticipant> participants) Create a new Room, input fields are nullable.- Parameters:
validFrom
- the validFrom value to set.validUntil
- the validUntil value to set.roomJoinPolicy
- the roomJoinPolicy value to set.participants
- the participants value to set.- Returns:
- response for a successful create room request.
-
updateRoom
public Mono<CommunicationRoom> updateRoom(String roomId, OffsetDateTime validFrom, OffsetDateTime validUntil, RoomJoinPolicy roomJoinPolicy, List<RoomParticipant> participants) Update an existing Room.- Parameters:
roomId
- The room id.validFrom
- the validFrom value to set.validUntil
- the validUntil value to set.roomJoinPolicy
- the roomJoinPolicy value to set.participants
- the participants value to set.- Returns:
- response for a successful update room request.
-
updateRoomWithResponse
public Mono<com.azure.core.http.rest.Response<CommunicationRoom>> updateRoomWithResponse(String roomId, OffsetDateTime validFrom, OffsetDateTime validUntil, RoomJoinPolicy roomJoinPolicy, List<RoomParticipant> participants) Update an existing room with response.- Parameters:
roomId
- The room id.validFrom
- the validFrom value to set.validUntil
- the validUntil value to set.roomJoinPolicy
- the roomJoinPolicy value to set.participants
- the participants value to set.- Returns:
- response for a successful update room request.
-
getRoom
Get an existing room.- Parameters:
roomId
- The room Id.- Returns:
- The existing room.
-
getRoomWithResponse
public Mono<com.azure.core.http.rest.Response<CommunicationRoom>> getRoomWithResponse(String roomId) Get an existing room with response.- Parameters:
roomId
- The room Id.- Returns:
- The existing room.
-
deleteRoom
Delete an existing room.- Parameters:
roomId
- The room Id.- Returns:
- The response with status code.
-
deleteRoomWithResponse
Delete a existing room.- Parameters:
roomId
- The room Id.- Returns:
- The response with status code.
-
addParticipants
public Mono<ParticipantsCollection> addParticipants(String roomId, List<RoomParticipant> participants) Add participants to an existing Room.- Parameters:
roomId
- The room id.participants
- The participants list.- Returns:
- response for a successful add participants room request.
-
addParticipantsWithResponse
public Mono<com.azure.core.http.rest.Response<ParticipantsCollection>> addParticipantsWithResponse(String roomId, List<RoomParticipant> participants) Add participants to an existing room with response.- Parameters:
roomId
- The room id.participants
- The participant list.- Returns:
- response for a successful add participants to room request.
-
updateParticipants
public Mono<ParticipantsCollection> updateParticipants(String roomId, List<RoomParticipant> participants) Update participants to an existing Room.- Parameters:
roomId
- The room id.participants
- The participants list.- Returns:
- response for a successful add participants room request.
-
updateParticipantsWithResponse
public Mono<com.azure.core.http.rest.Response<ParticipantsCollection>> updateParticipantsWithResponse(String roomId, List<RoomParticipant> participants) Update participants to an existing room with response.- Parameters:
roomId
- The room id.participants
- The participant list.- Returns:
- response for a successful update participants request.
-
removeParticipants
public Mono<ParticipantsCollection> removeParticipants(String roomId, List<RoomParticipant> participants) Remove participants from an existing Room.- Parameters:
roomId
- The room id.participants
- The participants list.- Returns:
- response for a successful remove participants room request.
-
removeParticipantsWithResponse
public Mono<com.azure.core.http.rest.Response<ParticipantsCollection>> removeParticipantsWithResponse(String roomId, List<RoomParticipant> participants) Remove participants to an existing room with response.- Parameters:
roomId
- The room id.participants
- The participant list.- Returns:
- response for a successful remove participants request.
-
getParticipants
Get a room participants.- Parameters:
roomId
- The room Id.- Returns:
- The existing room.
-
getParticipantsWithResponse
public Mono<com.azure.core.http.rest.Response<ParticipantsCollection>> getParticipantsWithResponse(String roomId) Get an existing room participants- Parameters:
roomId
- The room Id.- Returns:
- The existing room.
-