Search in sources :

Example 1 with RequestMessageReceived

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);
        }
    });
}
Also used : ResponseVoid(im.actor.core.api.rpc.ResponseVoid) RpcException(im.actor.core.network.RpcException) ApiOutPeer(im.actor.core.api.ApiOutPeer) RequestMessageReceived(im.actor.core.api.rpc.RequestMessageReceived)

Aggregations

ApiOutPeer (im.actor.core.api.ApiOutPeer)1 RequestMessageReceived (im.actor.core.api.rpc.RequestMessageReceived)1 ResponseVoid (im.actor.core.api.rpc.ResponseVoid)1 RpcException (im.actor.core.network.RpcException)1