mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2025-10-16 11:45:37 +00:00
33 lines
801 B
Java
33 lines
801 B
Java
package jota.dto.response;
|
|
|
|
import jota.model.Transaction;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Response of api request 'getBundle
|
|
**/
|
|
public class GetBundleResponse extends AbstractResponse {
|
|
|
|
private List<Transaction> transactions = new ArrayList<>();
|
|
|
|
/**
|
|
* Initializes a new instance of the GetBundleResponse class.
|
|
*/
|
|
public static GetBundleResponse create(List<Transaction> transactions, long duration) {
|
|
GetBundleResponse res = new GetBundleResponse();
|
|
res.transactions = transactions;
|
|
res.setDuration(duration);
|
|
return res;
|
|
}
|
|
|
|
/**
|
|
* Gets the transactions.
|
|
*
|
|
* @return transactions The transactions.
|
|
*/
|
|
public List<Transaction> getTransactions() {
|
|
return transactions;
|
|
}
|
|
} |