File tree Expand file tree Collapse file tree
symphony-bdk-core/src/main/java/com/symphony/bdk/core/service/stream Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import com .symphony .bdk .core .service .pagination .model .PaginationAttribute ;
44import 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
167import 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}
Original file line number Diff line number Diff 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 ()));
You can’t perform that action at this time.
0 commit comments