Skip to content
Snippets Groups Projects
ActionSearchMyWalletAnswer.java 637 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.getName()), self);
Michael Kmoch's avatar
Michael Kmoch committed
}