Exemple #1
0
        public Transfer(string sender, string receiver, int amount, Bank bank)
        {
            this.bank = bank;

            this.operationType = "TRANSFER";
            this.receiverBankName = bank.getName();
            this.sender = sender;
            this.receiver = receiver;
            this.amount = amount;
        }
Exemple #2
0
        public PayIn(string sender, int amount, Bank bank)
        {
            this.bank = bank;

            this.operationType = "PAY IN";
            this.receiverBankName = bank.getName();
            this.senderBankName = bank.getName();
            this.sender = sender;
            this.receiver = "<ACCOUNT>";
            this.amount = amount;
        }