public interface RepresentableAsync
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<AccountAsync> |
getAccount(java.lang.String accountId)
Looks up a funding bank account linked to Token.
|
io.reactivex.Observable<java.util.List<AccountAsync>> |
getAccounts()
Links a funding bank account to Token and returns it to the caller.
|
io.reactivex.Observable<io.token.proto.common.member.MemberProtos.AddressRecord> |
getAddress(java.lang.String addressId)
Looks up an address by id.
|
io.reactivex.Observable<java.util.List<io.token.proto.common.member.MemberProtos.AddressRecord>> |
getAddresses()
Looks up member addresses.
|
io.reactivex.Observable<io.token.proto.common.transaction.TransactionProtos.Balance> |
getBalance(java.lang.String accountId,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up account balance.
|
io.reactivex.Observable<java.util.List<io.token.proto.common.transaction.TransactionProtos.Balance>> |
getBalances(java.util.List<java.lang.String> accountIds,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up balances for a list of accounts.
|
io.reactivex.Observable<io.token.proto.common.transaction.TransactionProtos.Transaction> |
getTransaction(java.lang.String accountId,
java.lang.String transactionId,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up an existing transaction for a given account.
|
io.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.transaction.TransactionProtos.Transaction,java.lang.String>> |
getTransactions(java.lang.String accountId,
java.lang.String offset,
int limit,
io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
Looks up transactions for a given account.
|
io.reactivex.Observable<java.util.List<io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint>> |
resolveTransferDestinations(java.lang.String accountId)
Resolves transfer destinations for the given account ID.
|
io.reactivex.Observable<java.util.List<io.token.proto.common.member.MemberProtos.AddressRecord>> getAddresses()
io.reactivex.Observable<io.token.proto.common.member.MemberProtos.AddressRecord> getAddress(java.lang.String addressId)
addressId
- the address idio.reactivex.Observable<java.util.List<AccountAsync>> getAccounts()
io.reactivex.Observable<AccountAsync> getAccount(java.lang.String accountId)
accountId
- account idio.reactivex.Observable<io.token.proto.common.transaction.TransactionProtos.Balance> getBalance(java.lang.String accountId, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
accountId
- the account idkeyLevel
- key levelio.reactivex.Observable<java.util.List<io.token.proto.common.transaction.TransactionProtos.Balance>> getBalances(java.util.List<java.lang.String> accountIds, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
accountIds
- list of account idskeyLevel
- key levelio.reactivex.Observable<io.token.proto.PagedList<io.token.proto.common.transaction.TransactionProtos.Transaction,java.lang.String>> getTransactions(java.lang.String accountId, @Nullable java.lang.String offset, int limit, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
accountId
- the account idoffset
- optional offset to start atlimit
- max number of records to returnkeyLevel
- key levelio.reactivex.Observable<io.token.proto.common.transaction.TransactionProtos.Transaction> getTransaction(java.lang.String accountId, java.lang.String transactionId, io.token.proto.common.security.SecurityProtos.Key.Level keyLevel)
accountId
- the account idtransactionId
- ID of the transactionkeyLevel
- key levelio.reactivex.Observable<java.util.List<io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint>> resolveTransferDestinations(java.lang.String accountId)
accountId
- account ID