Skip to content
Snippets Groups Projects
ActionWalletSendMoney.java 619 B
Newer Older
David Bohn's avatar
David Bohn committed
package fucoin.actions.control;

import akka.actor.ActorRef;
import akka.actor.UntypedActorContext;
import fucoin.actions.ClientAction;
import fucoin.wallet.AbstractWallet;

/**
 *
 */
public class ActionWalletSendMoney extends ClientAction {

    protected String address;
    protected int amount;

    public ActionWalletSendMoney(String address, int amount) {
        this.address = address;
        this.amount = amount;
    }

    @Override
    protected void onAction(ActorRef sender, ActorRef self, UntypedActorContext context, AbstractWallet abstractNode) {
        abstractNode.send(address, amount);
    }
}