@Test public void testWithClient() { final WalletApi walletApi = supplyWalletApi(); final AergoClient aergoClient = new AergoClientBuilder().build(); final PreparedWalletApi preparedWalletApi = walletApi.with(aergoClient); assertNotNull(preparedWalletApi); assertNotNull(preparedWalletApi.transaction()); assertNotNull(preparedWalletApi.query()); }
@Override public PreparedWalletApi with(final AergoClient aergoClient) { assertNotNull(aergoClient, "AergoClient must not null"); return new PreparedWalletApiImpl(aergoClient, this.proxySigner, this.txRequester); }
WalletApiImpl extends AbstractApi implements WalletApi, Signer { @Override public PreparedWalletApi with(final AergoClient aergoClient) { assertNotNull(aergoClient, "AergoClient must not null"); return new PreparedWalletApiImpl(aergoClient, this.proxySigner, this.txRequester); } }
WalletApiImpl extends AbstractApi implements WalletApi, Signer { @Override public PreparedWalletApi with(final AergoClient aergoClient) { assertNotNull(aergoClient, "AergoClient must not null"); return new PreparedWalletApiImpl(aergoClient, this.proxySigner, this.txRequester); } WalletApiImpl(final KeyStore keyStore, final TryCountAndInterval tryCountAndInterval); }
WalletApiImpl extends AbstractApi implements WalletApi, Signer { @Override public PreparedWalletApi with(final AergoClient aergoClient) { assertNotNull(aergoClient, "AergoClient must not null"); return new PreparedWalletApiImpl(aergoClient, this.proxySigner, this.txRequester); } WalletApiImpl(final KeyStore keyStore, final TryCountAndInterval tryCountAndInterval); @Override void bind(final AergoClient aergoClient); @Override PreparedWalletApi with(final AergoClient aergoClient); @Override boolean unlock(final Authentication authentication); @Override boolean lock(final Authentication authentication); @Override boolean lock(); @Override TransactionApi transactionApi(); @Override QueryApi queryApi(); @Override Transaction sign(final RawTransaction rawTransaction); @Override Signature signMessage(final BytesValue message); @Override Signature signMessage(final Hash hashedMessage); @Override AccountAddress getPrincipal(); @Override String toString(); }
WalletApiImpl extends AbstractApi implements WalletApi, Signer { @Override public PreparedWalletApi with(final AergoClient aergoClient) { assertNotNull(aergoClient, "AergoClient must not null"); return new PreparedWalletApiImpl(aergoClient, this.proxySigner, this.txRequester); } WalletApiImpl(final KeyStore keyStore, final TryCountAndInterval tryCountAndInterval); @Override void bind(final AergoClient aergoClient); @Override PreparedWalletApi with(final AergoClient aergoClient); @Override boolean unlock(final Authentication authentication); @Override boolean lock(final Authentication authentication); @Override boolean lock(); @Override TransactionApi transactionApi(); @Override QueryApi queryApi(); @Override Transaction sign(final RawTransaction rawTransaction); @Override Signature signMessage(final BytesValue message); @Override Signature signMessage(final Hash hashedMessage); @Override AccountAddress getPrincipal(); @Override String toString();  }