Skip to content
Snippets Groups Projects
ActionSearchMyWalletAnswer.java 632 B
Newer Older
Michael Kmoch's avatar
Michael Kmoch committed
package fucoin.actions.persist;

import akka.actor.ActorRef;
import akka.actor.UntypedActorContext;
Michael Kmoch's avatar
Michael Kmoch committed

Michael Kmoch's avatar
Michael Kmoch committed
public class ActionSearchMyWalletAnswer extends Persist {
Michael Kmoch's avatar
Michael Kmoch committed
    public ActionSearchMyWalletAnswer(AbstractWallet w) {
        this.w = w;
    }

    @Override
    protected void onAction(ActorRef sender, ActorRef self,
                            UntypedActorContext context, AbstractWallet wallet) {
        wallet.setAmount(w.getAmount());
        sender.tell(new ActionInvalidate(wallet.name), self);
    }
Michael Kmoch's avatar
Michael Kmoch committed
}