I'm trying to implement the connecty cube API in my app when using the following code the dialogs ArrayList
is empty. How can I retrieve all the chat dialogs?
This method is giving me an empty list:
@Override
public void onSuccess(ArrayList<ConnectycubeChatDialog> dialogs, Bundle params) {
int totalEntries = params.getInt(Consts.TOTAL_ENTRIES);
}
complete method code:
RequestGetBuilder requestBuilder = new RequestGetBuilder();
requestBuilder.setLimit(50);
requestBuilder.setSkip(100);
//requestBuilder.sortAsc(Consts.DIALOG_LAST_MESSAGE_DATE_SENT_FIELD_NAME);
ConnectycubeRestChatService.getChatDialogs((ConnectycubeDialogType) null, requestBuilder).performAsync(new EntityCallback<ArrayList<ConnectycubeChatDialog>>() {
@Override
public void onSuccess(ArrayList<ConnectycubeChatDialog> dialogs, Bundle params) {
int totalEntries = params.getInt(Consts.TOTAL_ENTRIES);
}
@Override
public void onError(ResponseException exception) {
}
});