Class RoomsAsyncClient

java.lang.Object
com.azure.communication.rooms.RoomsAsyncClient

public final class RoomsAsyncClient extends Object
The Async client for create, update, get, delete room of Azure Communication Room Service.
  • 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

      public Mono<CommunicationRoom> getRoom(String roomId)
      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

      public Mono<Void> deleteRoom(String roomId)
      Delete an existing room.
      Parameters:
      roomId - The room Id.
      Returns:
      The response with status code.
    • deleteRoomWithResponse

      public Mono<com.azure.core.http.rest.Response<Void>> deleteRoomWithResponse(String roomId)
      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

      public Mono<ParticipantsCollection> getParticipants(String roomId)
      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.