public interface Asset extends CaptainUpObject
getType()
, to track a player's progress on
an asset check the corresponding AcquiredAsset object that is stored in the player objectModifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAcquireOn()
A list of #
List badges ID's that are required to achieve this asset (optional). |
java.util.Date |
getCreatedAt()
The #
Date the asset was created. |
java.util.Map<java.lang.String,java.lang.Long> |
getCurrencies()
The currencies required to acquire this asset.
|
java.lang.String |
getDescription()
The asset description
|
java.lang.String |
getDescriptionHtml()
The asset description in html format, can be used to display dynamic links or text formats.
|
java.lang.String |
getID()
The asset ID
|
ImageFiles |
getImageFiles()
The asset images file, can be used to fetch high quality version of the asset image.
|
java.lang.String |
getName()
The Asset name
|
java.lang.String |
getPresetImage()
The asset preset image
|
Reward |
getReward()
The Asset Reward Object
|
java.util.Collection<Reward> |
getRewards()
The Asset Rewards Array
|
long |
getStock()
Asset stock, can be set in the admin panel to manage products availability in your shop.
|
AssetType |
getType()
The Asset type
|
java.util.Date |
getUpdatedAt()
The #
Date the asset was updated. |
int |
getWeight()
Asset weight, can be set in the admin panel.
|
boolean |
hasReward()
Does the asset has a reward object attached to it
|
java.lang.Boolean |
isActive()
The asset state
|
boolean |
isUnlimitedStock()
An asset can have unlimited stock, you can set up unlimited stock for an asset in the admin panel.
|
java.lang.String getID()
java.lang.Boolean isActive()
java.lang.String getName()
java.lang.String getDescription()
java.lang.String getPresetImage()
java.util.Date getCreatedAt()
Date
the asset was created.java.util.Date getUpdatedAt()
Date
the asset was updated.java.util.List<java.lang.String> getAcquireOn()
List
badges ID's that are required to achieve this asset (optional).List
of badges ID's.int getWeight()
long getStock()
boolean isUnlimitedStock()
java.util.Map<java.lang.String,java.lang.Long> getCurrencies()
String
and value is currency amount #Long
java.lang.String getDescriptionHtml()
ImageFiles getImageFiles()
ImageFiles
.java.util.Collection<Reward> getRewards()
Collection
Array or Null if there is no reward for this assetReward getReward()
Object or Null if there is no reward for this asset
boolean hasReward()
true if the asset has a reward object or false if reward object is null