@Override public void onRetry() { searchMessagesByText(text, rooms, beforeLimit, afterLimit, nextBatch, callback); } }));
/** * Perform a remote text search. * * @param text the text to search for. * @param nextBatch the token to pass for doing pagination from a previous response. * @param callback the request callback */ public void searchMessagesByText(String text, String nextBatch, final ApiCallback<SearchResponse> callback) { checkIfAlive(); if (null != callback) { mEventsRestClient.searchMessagesByText(text, null, 0, 0, nextBatch, callback); } }
/** * Perform a remote text search. * * @param text the text to search for. * @param rooms a list of rooms to search in. nil means all rooms the user is in. * @param nextBatch the token to pass for doing pagination from a previous response. * @param callback the request callback */ public void searchMessagesByText(String text, List<String> rooms, String nextBatch, final ApiCallback<SearchResponse> callback) { checkIfAlive(); if (null != callback) { mEventsRestClient.searchMessagesByText(text, rooms, 0, 0, nextBatch, callback); } }
/** * Perform a remote text search. * * @param text the text to search for. * @param rooms a list of rooms to search in. nil means all rooms the user is in. * @param beforeLimit the number of events to get before the matching results. * @param afterLimit the number of events to get after the matching results. * @param nextBatch the token to pass for doing pagination from a previous response. * @param callback the request callback */ public void searchMessageText(String text, List<String> rooms, int beforeLimit, int afterLimit, String nextBatch, final ApiCallback<SearchResponse> callback) { checkIfAlive(); if (null != callback) { mEventsRestClient.searchMessagesByText(text, rooms, beforeLimit, afterLimit, nextBatch, callback); } }