Search in sources :

Example 1 with RequestMessageRead

use of im.actor.core.api.rpc.RequestMessageRead in project actor-platform by actorapp.

the class CursorReaderActor method perform.

@Override
protected void perform(final Peer peer, final long date) {
    ApiOutPeer outPeer = buidOutPeer(peer);
    if (outPeer == null) {
        return;
    }
    request(new RequestMessageRead(outPeer, date), new RpcCallback<ResponseVoid>() {

        @Override
        public void onResult(ResponseVoid response) {
            onCompleted(peer, date);
        }

        @Override
        public void onError(RpcException e) {
            CursorReaderActor.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) RequestMessageRead(im.actor.core.api.rpc.RequestMessageRead)

Aggregations

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