added GetTransferResponse and SendTransferResponse

This commit is contained in:
pinpong
2016-12-28 14:59:33 +01:00
parent a66a9afb8b
commit 15fda3f488
3 changed files with 55 additions and 6 deletions
@@ -0,0 +1,25 @@
package jota.dto.response;
import jota.model.Bundle;
import jota.model.Transfer;
import java.util.ArrayList;
import java.util.List;
/**
* Created by pinpong on 28.12.16.
*/
public class GetTransferResponse {
private List<Transfer> transfers = new ArrayList<>();
public static GetTransferResponse create(Bundle[] transfers) {
GetTransferResponse res = new GetTransferResponse();
res.transfers = transfers;
return res;
}
public List<Transfer> getTransfers() {
return transfers;
}
}