use of im.actor.core.api.rpc.RequestMessageReceived in project actor-platform by actorapp.
the class CursorReceiverActor method perform.
@Override
protected void perform(final Peer peer, final long date) {
ApiOutPeer outPeer = buidOutPeer(peer);
if (outPeer == null) {
return;
}
request(new RequestMessageReceived(outPeer, date), new RpcCallback<ResponseVoid>() {
@Override
public void onResult(ResponseVoid response) {
onCompleted(peer, date);
}
@Override
public void onError(RpcException e) {
CursorReceiverActor.this.onError(peer, date);
}
});
}
Aggregations