Map<Long, Long> targetId= new HashMap<>();
TestUtil.sendMsg(sdkClient, id, multiMsgList, true, false, new RequestCallBack() {
@Override
public void handleSuccess(Object o, Object o2, Object o3) {
if (((Long) o3) != null && ((SendMsgResult) o2) != null ) {
targetId.put(((Long) o3),((SendMsgResult) o2).getMsgID());
}
@Override
public void handleFailure(int code, String message) {
super.handleFailure(code, message);
}
@Override
public void onError(int code, String message) {
super.onError(code, message);
}
});
网友评论