Skip to content

Commit 75895ea

Browse files
Add List Room Members function to OBO list
1 parent 78c2349 commit 75895ea

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

symphony-bdk-core/src/main/java/com/symphony/bdk/core/service/stream/OboStreamService.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22

33
import com.symphony.bdk.core.service.pagination.model.PaginationAttribute;
44
import com.symphony.bdk.core.service.pagination.model.StreamPaginationAttribute;
5-
import com.symphony.bdk.gen.api.model.ShareContent;
6-
import com.symphony.bdk.gen.api.model.Stream;
7-
import com.symphony.bdk.gen.api.model.StreamAttributes;
8-
import com.symphony.bdk.gen.api.model.StreamFilter;
9-
import com.symphony.bdk.gen.api.model.V2Message;
10-
import com.symphony.bdk.gen.api.model.V2RoomSearchCriteria;
11-
import com.symphony.bdk.gen.api.model.V2StreamAttributes;
12-
import com.symphony.bdk.gen.api.model.V3RoomAttributes;
13-
import com.symphony.bdk.gen.api.model.V3RoomDetail;
14-
import com.symphony.bdk.gen.api.model.V3RoomSearchResults;
5+
import com.symphony.bdk.gen.api.model.*;
156

167
import org.apiguardian.api.API;
178

@@ -219,4 +210,13 @@ java.util.stream.Stream<V3RoomDetail> searchAllRooms(@Nonnull V2RoomSearchCriter
219210
* @see <a href="https://developers.symphony.com/restapi/reference/demote-owner">Demote Owner</a>
220211
*/
221212
void demoteUserToRoomParticipant(@Nonnull Long userId, @Nonnull String roomId);
213+
214+
/**
215+
* Lists the current members of an existing room.
216+
*
217+
* @param roomId The room stream id
218+
* @return List of members in the room with the given room id.
219+
* @see <a href="https://developers.symphony.com/restapi/reference#room-members">Room Members</a>
220+
*/
221+
List<MemberInfo> listRoomMembers(@Nonnull String roomId);
222222
}

symphony-bdk-core/src/main/java/com/symphony/bdk/core/service/stream/StreamService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ public java.util.stream.Stream<V2MemberInfo> listAllStreamMembers(@Nonnull Strin
492492
* @return List of members in the room with the given room id.
493493
* @see <a href="https://developers.symphony.com/restapi/reference#room-members">Room Members</a>
494494
*/
495+
@Override
495496
public List<MemberInfo> listRoomMembers(@Nonnull String roomId) {
496497
return executeAndRetry("listRoomMembers", roomMembershipApi.getApiClient().getBasePath(),
497498
() -> roomMembershipApi.v2RoomIdMembershipListGet(toUrlSafeIdIfNeeded(roomId), authSession.getSessionToken()));

0 commit comments

Comments
 (0)