fetchPublicChatRoomsFromServer method

Future<PageResult<ChatRoom>> fetchPublicChatRoomsFromServer({
  1. int pageNum = 1,
  2. int pageSize = 200,
})

Implementation

Future<PageResult<ChatRoom>> fetchPublicChatRoomsFromServer({
  int pageNum = 1,
  int pageSize = 200,
}) {
  return checkResult(ChatSDKEvent.fetchPublicChatRoomsFromServer, () {
    return Client.getInstance.chatRoomManager.fetchPublicChatRoomsFromServer(
      pageNum: pageNum,
      pageSize: pageSize,
    );
  });
}