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 .MemberInfo ;
56import com .symphony .bdk .gen .api .model .ShareContent ;
67import com .symphony .bdk .gen .api .model .Stream ;
78import com .symphony .bdk .gen .api .model .StreamAttributes ;
1213import com .symphony .bdk .gen .api .model .V3RoomAttributes ;
1314import com .symphony .bdk .gen .api .model .V3RoomDetail ;
1415import com .symphony .bdk .gen .api .model .V3RoomSearchResults ;
15-
1616import org .apiguardian .api .API ;
1717
18- import java .util .List ;
19-
2018import javax .annotation .Nonnull ;
2119import javax .annotation .Nullable ;
20+ import java .util .List ;
2221
2322/**
2423 * Service interface exposing OBO-enabled endpoints to manage streams.
@@ -219,4 +218,13 @@ java.util.stream.Stream<V3RoomDetail> searchAllRooms(@Nonnull V2RoomSearchCriter
219218 * @see <a href="https://developers.symphony.com/restapi/reference/demote-owner">Demote Owner</a>
220219 */
221220 void demoteUserToRoomParticipant (@ Nonnull Long userId , @ Nonnull String roomId );
221+
222+ /**
223+ * Lists the current members of an existing room.
224+ *
225+ * @param roomId The room stream id
226+ * @return List of members in the room with the given room id.
227+ * @see <a href="https://developers.symphony.com/restapi/reference#room-members">Room Members</a>
228+ */
229+ List <MemberInfo > listRoomMembers (@ Nonnull String roomId );
222230}
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