package net.ktnx.mobileledger.json;
-import net.ktnx.mobileledger.async.SendTransactionTask;
import net.ktnx.mobileledger.model.LedgerTransaction;
import java.io.IOException;
import java.text.ParseException;
public abstract class TransactionListParser {
- public static TransactionListParser forApiVersion(SendTransactionTask.API apiVersion,
- InputStream input) throws IOException {
+ public static TransactionListParser forApiVersion(API apiVersion, InputStream input)
+ throws IOException {
switch (apiVersion) {
case v1_14:
return new net.ktnx.mobileledger.json.v1_14.TransactionListParser(input);
return new net.ktnx.mobileledger.json.v1_15.TransactionListParser(input);
case v1_19_1:
return new net.ktnx.mobileledger.json.v1_19_1.TransactionListParser(input);
+ case v1_23:
+ return new net.ktnx.mobileledger.json.v1_23.TransactionListParser(input);
default:
throw new RuntimeException("Unsupported version " + apiVersion.toString());
}