我有一个拥有自定义数据的QBChatDialog,我正在尝试保存用户的ID,因为他们接受了我的邀请"已接受"我的对话框的自定义数据的arraylist,但是当我更新对话框时,自定义数据尚未在retu中更新。你可以帮我解决这个问题。
QBDialogCustomData customData = firstDialog.getCustomData();
ArrayList<Integer>goingArray= (ArrayList<Integer>)customData.get("accepted");
goingArray.add(17429329);
customData.put("accepted", goingArray); firstDialog.setCustomData(customData);
QBDialogRequestBuilder requestBuilder = new QBDialogRequestBuilder();
Performer performer = QBRestChatService.updateGroupChatDialog(firstDialog,requestBuilder);
performer.performAsync( new QBEntityCallback<QBChatDialog>() {
@Override
public void onSuccess(QBChatDialog qbDialog, Bundle bundle) {
refresh(qbDialog);
}
@Override
public void onError(QBResponseException e) {
Log.d(TAG, "e"+e); }
});