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 transactions = new ArrayList<>(); /** * Initializes a new instance of the GetBundleResponse class. */ public static GetBundleResponse create(List transactions, long duration) { GetBundleResponse res = new GetBundleResponse(); res.transactions = transactions; res.setDuration(duration); return res; } /** * Gets the transactions. * * @return transactions The transactions. */ public List getTransactions() { return transactions; } }