Newer
Older
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;
Luca Keidel
committed
protected ActorRef observer;
public ActionWalletSendMoney(String address, int amount, ActorRef observer) {
Luca Keidel
committed
this.observer = observer;
}
public ActionWalletSendMoney(String address, int amount){
this(address, amount, null);
}
@Override
protected void onAction(ActorRef sender, ActorRef self, UntypedActorContext context, AbstractWallet abstractNode) {
Luca Keidel
committed
abstractNode.send(address, amount, observer);