Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.symphony.bdk.core.service.pagination.model.PaginationAttribute;
import com.symphony.bdk.core.service.pagination.model.StreamPaginationAttribute;
import com.symphony.bdk.gen.api.model.MemberInfo;
import com.symphony.bdk.gen.api.model.ShareContent;
import com.symphony.bdk.gen.api.model.Stream;
import com.symphony.bdk.gen.api.model.StreamAttributes;
Expand All @@ -12,13 +13,11 @@
import com.symphony.bdk.gen.api.model.V3RoomAttributes;
import com.symphony.bdk.gen.api.model.V3RoomDetail;
import com.symphony.bdk.gen.api.model.V3RoomSearchResults;

import org.apiguardian.api.API;

import java.util.List;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.List;

/**
* Service interface exposing OBO-enabled endpoints to manage streams.
Expand Down Expand Up @@ -219,4 +218,13 @@ java.util.stream.Stream<V3RoomDetail> searchAllRooms(@Nonnull V2RoomSearchCriter
* @see <a href="https://developers.symphony.com/restapi/reference/demote-owner">Demote Owner</a>
*/
void demoteUserToRoomParticipant(@Nonnull Long userId, @Nonnull String roomId);

/**
* Lists the current members of an existing room.
*
* @param roomId The room stream id
* @return List of members in the room with the given room id.
* @see <a href="https://developers.symphony.com/restapi/reference#room-members">Room Members</a>
*/
List<MemberInfo> listRoomMembers(@Nonnull String roomId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ public java.util.stream.Stream<V2MemberInfo> listAllStreamMembers(@Nonnull Strin
* @return List of members in the room with the given room id.
* @see <a href="https://developers.symphony.com/restapi/reference#room-members">Room Members</a>
*/
@Override
public List<MemberInfo> listRoomMembers(@Nonnull String roomId) {
return executeAndRetry("listRoomMembers", roomMembershipApi.getApiClient().getBasePath(),
() -> roomMembershipApi.v2RoomIdMembershipListGet(toUrlSafeIdIfNeeded(roomId), authSession.getSessionToken()));
Expand Down
Loading