public final class Asset
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Asset.AssetProperty |
static class |
Asset.Event |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ASSET_FREEZE_HEIGHT_PROPERTY |
static java.lang.String |
ASSET_MIGRATE_HEIGHT_PROPERTY |
Modifier and Type | Method and Description |
---|---|
static boolean |
addListener(Listener<Asset.AssetProperty> listener,
Asset.Event eventType) |
static void |
deleteProperty(long propertyId) |
long |
getAccountId() |
DbIterator<Account.AccountAsset> |
getAccounts(int from,
int to) |
DbIterator<Account.AccountAsset> |
getAccounts(int height,
int from,
int to) |
static DbIterator<Asset> |
getAllAssets(int from,
int to) |
static Asset |
getAsset(long id) |
static Asset |
getAsset(long id,
int height) |
static DbIterator<Asset> |
getAssetsIssuedBy(long accountId,
int from,
int to) |
DbIterator<AssetTransfer> |
getAssetTransfers(int from,
int to) |
static int |
getCount() |
byte |
getDecimals() |
java.lang.String |
getDescription() |
long |
getId() |
java.lang.String |
getName() |
static DbIterator<Asset.AssetProperty> |
getProperties(long assetId,
long setterId,
java.lang.String property,
int firstIndex,
int lastIndex) |
static Asset.AssetProperty |
getProperty(long propertyId) |
Asset.AssetProperty |
getProperty(long setterId,
java.lang.String property) |
long |
getQuantityQNT() |
FixedPrecisionPercentage |
getRoyaltiesPercentage() |
DbIterator<TradeHome.Trade> |
getTrades(ChildChain childChain,
int from,
int to) |
boolean |
hasPhasingControl() |
static void |
importAsset(long assetId,
long issuerId,
java.lang.String name,
java.lang.String description,
byte decimals,
long quantityQNT) |
static void |
init() |
static boolean |
removeListener(Listener<Asset.AssetProperty> listener,
Asset.Event eventType) |
static DbIterator<Asset> |
searchAssets(java.lang.String query,
int from,
int to) |
void |
setProperty(long transactionId,
Account senderAccount,
java.lang.String property,
java.lang.String value) |
public static final java.lang.String ASSET_FREEZE_HEIGHT_PROPERTY
public static final java.lang.String ASSET_MIGRATE_HEIGHT_PROPERTY
public static DbIterator<Asset> getAllAssets(int from, int to)
public static int getCount()
public static Asset getAsset(long id)
public static Asset getAsset(long id, int height)
public static DbIterator<Asset> getAssetsIssuedBy(long accountId, int from, int to)
public static DbIterator<Asset> searchAssets(java.lang.String query, int from, int to)
public static void importAsset(long assetId, long issuerId, java.lang.String name, java.lang.String description, byte decimals, long quantityQNT)
public static void init()
public long getId()
public long getAccountId()
public java.lang.String getName()
public java.lang.String getDescription()
public long getQuantityQNT()
public byte getDecimals()
public boolean hasPhasingControl()
public FixedPrecisionPercentage getRoyaltiesPercentage()
public DbIterator<Account.AccountAsset> getAccounts(int from, int to)
public DbIterator<Account.AccountAsset> getAccounts(int height, int from, int to)
public DbIterator<TradeHome.Trade> getTrades(ChildChain childChain, int from, int to)
public DbIterator<AssetTransfer> getAssetTransfers(int from, int to)
public static boolean addListener(Listener<Asset.AssetProperty> listener, Asset.Event eventType)
public static boolean removeListener(Listener<Asset.AssetProperty> listener, Asset.Event eventType)
public void setProperty(long transactionId, Account senderAccount, java.lang.String property, java.lang.String value)
public static Asset.AssetProperty getProperty(long propertyId)
public Asset.AssetProperty getProperty(long setterId, java.lang.String property)
public static DbIterator<Asset.AssetProperty> getProperties(long assetId, long setterId, java.lang.String property, int firstIndex, int lastIndex)
public static void deleteProperty(long propertyId)