Implemented prepareTransfer and getInputs

This commit is contained in:
davassi
2016-12-19 19:03:11 +01:00
parent 937a2b2e38
commit bbe837975e
9 changed files with 576 additions and 75 deletions
@@ -0,0 +1,34 @@
package jota.dto.response;
import java.util.List;
import jota.model.Input;
public class GetBalancesAndFormatResponse extends AbstractResponse {
private List<Input> input;
private long totalBalance;
public List<Input> getInput() {
return input;
}
public void setInput(List<Input> input) {
this.input = input;
}
public long getTotalBalance() {
return totalBalance;
}
public void setTotalBalance(long totalBalance) {
this.totalBalance = totalBalance;
}
public static GetBalancesAndFormatResponse create(List<Input> inputs, long totalBalance2) {
GetBalancesAndFormatResponse res = new GetBalancesAndFormatResponse();
res.setInput(inputs);
res.setTotalBalance(totalBalance2);
return res;
}
}