public final class Account
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Account.AccountAsset |
static class |
Account.AccountLease |
static class |
Account.Event |
Modifier and Type | Method and Description |
---|---|
static boolean |
addAssetListener(Listener<Account.AccountAsset> listener,
Account.Event eventType) |
static boolean |
addLeaseListener(Listener<Account.AccountLease> listener,
Account.Event eventType) |
static boolean |
addListener(Listener<Account> listener,
Account.Event eventType) |
byte[] |
decryptFrom(EncryptedData encryptedData,
java.lang.String recipientSecretPhrase) |
EncryptedData |
encryptTo(byte[] data,
java.lang.String senderSecretPhrase) |
static Account |
getAccount(byte[] publicKey) |
static Account |
getAccount(java.lang.Long id) |
static java.util.Collection<Account> |
getAllAccounts() |
java.util.Map<java.lang.Long,java.lang.Long> |
getAssetBalancesQNT() |
long |
getBalanceNQT() |
int |
getCurrentLeasingHeightFrom() |
int |
getCurrentLeasingHeightTo() |
java.lang.Long |
getCurrentLesseeId() |
java.lang.String |
getDescription() |
long |
getEffectiveBalanceNXT() |
long |
getForgedBalanceNQT() |
long |
getGuaranteedBalanceNQT(int numberOfConfirmations) |
java.lang.Long |
getId() |
static java.lang.Long |
getId(byte[] publicKey) |
java.util.Set<java.lang.Long> |
getLessorIds() |
java.lang.String |
getName() |
int |
getNextLeasingHeightFrom() |
int |
getNextLeasingHeightTo() |
java.lang.Long |
getNextLesseeId() |
byte[] |
getPublicKey() |
java.lang.Long |
getUnconfirmedAssetBalanceQNT(java.lang.Long assetId) |
java.util.Map<java.lang.Long,java.lang.Long> |
getUnconfirmedAssetBalancesQNT() |
long |
getUnconfirmedBalanceNQT() |
static boolean |
removeAssetListener(Listener<Account.AccountAsset> listener,
Account.Event eventType) |
static boolean |
removeLeaseListener(Listener<Account.AccountLease> listener,
Account.Event eventType) |
static boolean |
removeListener(Listener<Account> listener,
Account.Event eventType) |
public static boolean addListener(Listener<Account> listener, Account.Event eventType)
public static boolean removeListener(Listener<Account> listener, Account.Event eventType)
public static boolean addAssetListener(Listener<Account.AccountAsset> listener, Account.Event eventType)
public static boolean removeAssetListener(Listener<Account.AccountAsset> listener, Account.Event eventType)
public static boolean addLeaseListener(Listener<Account.AccountLease> listener, Account.Event eventType)
public static boolean removeLeaseListener(Listener<Account.AccountLease> listener, Account.Event eventType)
public static java.util.Collection<Account> getAllAccounts()
public static Account getAccount(java.lang.Long id)
public static Account getAccount(byte[] publicKey)
public static java.lang.Long getId(byte[] publicKey)
public java.lang.Long getId()
public java.lang.String getName()
public java.lang.String getDescription()
public byte[] getPublicKey()
public EncryptedData encryptTo(byte[] data, java.lang.String senderSecretPhrase)
public byte[] decryptFrom(EncryptedData encryptedData, java.lang.String recipientSecretPhrase)
public long getBalanceNQT()
public long getUnconfirmedBalanceNQT()
public long getForgedBalanceNQT()
public long getEffectiveBalanceNXT()
public long getGuaranteedBalanceNQT(int numberOfConfirmations)
public java.lang.Long getUnconfirmedAssetBalanceQNT(java.lang.Long assetId)
public java.util.Map<java.lang.Long,java.lang.Long> getAssetBalancesQNT()
public java.util.Map<java.lang.Long,java.lang.Long> getUnconfirmedAssetBalancesQNT()
public java.lang.Long getCurrentLesseeId()
public java.lang.Long getNextLesseeId()
public int getCurrentLeasingHeightFrom()
public int getCurrentLeasingHeightTo()
public int getNextLeasingHeightFrom()
public int getNextLeasingHeightTo()
public java.util.Set<java.lang.Long> getLessorIds()