@Test public void testFromTxGetSourcesPending() throws Exception { }
public static List<String> fromTxGetSourcesPending(TxJson sourceJson){ List<String> result = new ArrayList<>(); for (History.Elem e : sourceJson.history.sending){ for (String i : e.inputs){ String type = i.substring(0,i.indexOf(":")); String iden = i.substring(i.indexOf(":")+1,i.lastIndexOf(":")); String num = i.substring(i.lastIndexOf(":")); if (type.equals("D")){ result.add(num); }else if(type.equals("T")){ result.add(iden); } } } return result; }
TxJson implements Serializable { public static List<String> fromTxGetSourcesPending(TxJson sourceJson){ List<String> result = new ArrayList<>(); for (History.Elem e : sourceJson.history.sending){ for (String i : e.inputs){ String type = i.substring(0,i.indexOf(":")); String iden = i.substring(i.indexOf(":")+1,i.lastIndexOf(":")); String num = i.substring(i.lastIndexOf(":")); if (type.equals("D")){ result.add(num); }else if(type.equals("T")){ result.add(iden); } } } return result; } }
TxJson implements Serializable { public static List<String> fromTxGetSourcesPending(TxJson sourceJson){ List<String> result = new ArrayList<>(); for (History.Elem e : sourceJson.history.sending){ for (String i : e.inputs){ String type = i.substring(0,i.indexOf(":")); String iden = i.substring(i.indexOf(":")+1,i.lastIndexOf(":")); String num = i.substring(i.lastIndexOf(":")); if (type.equals("D")){ result.add(num); }else if(type.equals("T")){ result.add(iden); } } } return result; }  }
TxJson implements Serializable { public static List<String> fromTxGetSourcesPending(TxJson sourceJson){ List<String> result = new ArrayList<>(); for (History.Elem e : sourceJson.history.sending){ for (String i : e.inputs){ String type = i.substring(0,i.indexOf(":")); String iden = i.substring(i.indexOf(":")+1,i.lastIndexOf(":")); String num = i.substring(i.lastIndexOf(":")); if (type.equals("D")){ result.add(num); }else if(type.equals("T")){ result.add(iden); } } } return result; }  static TxJson fromJson(String response); static List<String> fromTxGetSourcesPending(TxJson sourceJson); static List<Tx> fromTx(TxJson sourceJson, Wallet wallet, Map<String, String> mapMember); static Map<String, List<String>> fromTxGetMapSourcePending(TxJson txJson); }
TxJson implements Serializable { public static List<String> fromTxGetSourcesPending(TxJson sourceJson){ List<String> result = new ArrayList<>(); for (History.Elem e : sourceJson.history.sending){ for (String i : e.inputs){ String type = i.substring(0,i.indexOf(":")); String iden = i.substring(i.indexOf(":")+1,i.lastIndexOf(":")); String num = i.substring(i.lastIndexOf(":")); if (type.equals("D")){ result.add(num); }else if(type.equals("T")){ result.add(iden); } } } return result; }  static TxJson fromJson(String response); static List<String> fromTxGetSourcesPending(TxJson sourceJson); static List<Tx> fromTx(TxJson sourceJson, Wallet wallet, Map<String, String> mapMember); static Map<String, List<String>> fromTxGetMapSourcePending(TxJson txJson); public String currency; public String pubkey; public History history; }