How to invoke V2RoomSearchCriteria API to fetch the RoomId?
How to invoke V2RoomSearchCriteria API to fetch the RoomId?
Hi, I have created a room and want to upate it from my bot. I am trying to use `V2RoomSearchCriteria` to search my room first then retrieve roomId to further use it to update room details and add remove members. Can you please show an example how to populate the `V2RoomSearchCriteria` object? What will be the query specifically to retrieve the roomId?
NOTE : I am using JAVA 8.
I tried someting like this..
```java
V2RoomSearchCriteria sc = new V2RoomSearchCriteria(); // ** want to know how to set the search criteria here**
V3RoomSearchResults roomSearchResults = bdk.streams().searchRooms(sc);
V3RoomDetail v3RoomDetail1 = roomSearchResults.getRooms().get(0); // retrieve the room info assuming the search criteria fetches a single room
// Add a member to the new room
String roomId = v3RoomDetail1.getRoomSystemInfo().getId(); // retrieve the roomid.
bdk.streams().addMemberToRoom(userId1, roomId);
```
Thanks in advance.
Hi, I have created a room and want to upate it from my bot. I am trying to use V2RoomSearchCriteria to search my room first then retrieve roomId to further use it to update room details and add remove members. Can you please show an example how to populate the V2RoomSearchCriteria object? What will be the query specifically to retrieve the roomId?
NOTE : I am using JAVA 8.
I tried someting like this..
V2RoomSearchCriteria sc = new V2RoomSearchCriteria(); **// want to know how to set the search criteria here**
V3RoomSearchResults roomSearchResults = bdk.streams().searchRooms(sc);
V3RoomDetail v3RoomDetail1 = roomSearchResults.getRooms().get(0); // retrieve the room info assuming the search criteria fetches a single room
// Add a member to the new room
String roomId = v3RoomDetail1.getRoomSystemInfo().getId(); // retrieve the roomid.
bdk.streams().addMemberToRoom(userId1, roomId);
Thanks in advance.
#question
How to invoke V2RoomSearchCriteria API to fetch the RoomId?
How to invoke V2RoomSearchCriteria API to fetch the RoomId?
Hi, I have created a room and want to upate it from my bot. I am trying to use V2RoomSearchCriteria to search my room first then retrieve roomId to further use it to update room details and add remove members. Can you please show an example how to populate the V2RoomSearchCriteria object? What will be the query specifically to retrieve the roomId?
NOTE : I am using JAVA 8.
I tried someting like this..
V2RoomSearchCriteria sc = new V2RoomSearchCriteria(); **// want to know how to set the search criteria here**
V3RoomSearchResults roomSearchResults = bdk.streams().searchRooms(sc);
V3RoomDetail v3RoomDetail1 = roomSearchResults.getRooms().get(0); // retrieve the room info assuming the search criteria fetches a single room
// Add a member to the new room
String roomId = v3RoomDetail1.getRoomSystemInfo().getId(); // retrieve the roomid.
bdk.streams().addMemberToRoom(userId1, roomId);
Thanks in advance.
Hi, I have created a room and want to upate it from my bot. I am trying to use V2RoomSearchCriteria to search my room first then retrieve roomId to further use it to update room details and add remove members. Can you please show an example how to populate the V2RoomSearchCriteria object? What will be the query specifically to retrieve the roomId?
NOTE : I am using JAVA 8.
I tried someting like this..
V2RoomSearchCriteria sc = new V2RoomSearchCriteria(); **// want to know how to set the search criteria here**
V3RoomSearchResults roomSearchResults = bdk.streams().searchRooms(sc);
V3RoomDetail v3RoomDetail1 = roomSearchResults.getRooms().get(0); // retrieve the room info assuming the search criteria fetches a single room
// Add a member to the new room
String roomId = v3RoomDetail1.getRoomSystemInfo().getId(); // retrieve the roomid.
Thanks in advance.
#question
How to invoke V2RoomSearchCriteria API to fetch the RoomId?
Hi, I have created a room and want to upate it from my bot. I am trying to use V2RoomSearchCriteria to search my room first then retrieve roomId to further use it to update room details and add remove members. Can you please show an example how to populate the V2RoomSearchCriteria object? What will be the query specifically to retrieve the roomId?
NOTE : I am using JAVA 8.
I tried someting like this..
V2RoomSearchCriteria sc = new V2RoomSearchCriteria(); **// want to know how to set the search criteria here**
V3RoomSearchResults roomSearchResults = bdk.streams().searchRooms(sc);
V3RoomDetail v3RoomDetail1 = roomSearchResults.getRooms().get(0); // retrieve the room info assuming the search criteria fetches a single room
// Add a member to the new room
String roomId = v3RoomDetail1.getRoomSystemInfo().getId(); // retrieve the roomid.
Thanks in advance.