Android Client Reference
Class VaultItem
Namespace: com.playerio
Language: Java
Represents information about an item in a user's Vault.
The methods and properties in a VaultItem are very simliar to those of a DatabaseObject, except that it's read-only, and that there are some extra properties regarding the purchase.
Methods | |||
---|---|---|---|
public boolean |
Returns true if the given property exists on this object |
||
public DatabaseArray |
Get the given DatabaseArray property |
||
public boolean |
Get the given boolean property |
||
public boolean |
Get the given boolean property, or the default if it doesn't exist. |
||
public byte[] |
Get the given byte array property, or the default if it doesn't exist. |
||
public byte[] |
Get the given byte array property |
||
public Date |
Get the given Date property |
||
public Date |
Get the given Date property, or the default if it doesn't exist. |
||
public double |
Get the given double property, or the default if it doesn't exist. |
||
public double |
Get the given double property |
||
public float |
Get the given float property, or the default if it doesn't exist. |
||
public float |
Get the given float property |
||
public String |
The unique id of this particular vault item in the users vault. |
||
public int |
Get the given int property |
||
public int |
Get the given int property, or the default if it doesn't exist. |
||
public String |
The key of the underlying item in the PayVaultItems BigDB table. |
||
public long |
Get the given long property |
||
public long |
Get the given long property, or the default if it doesn't exist. |
||
public DatabaseObject |
Get the given DatabaseObject property |
||
public Date |
The time when the vault item was originally purchased. |
||
public String |
Get the given String property, or the default if it doesn't exist. |
||
public String |
Get the given String property |
||
public int |
Get the given uint property |
||
public int |
Get the given uint property, or the default if it doesn't exist. |
||
public Object |
Get the given property as an object |
||
public ArrayList<String> |
Get the names of all properties on this object |
||
public int |
Returns the number of properties on this object |
VaultItem.contains
public boolean |
|
Returns true if the given property exists on this object
Arguments
String | propertyExpression |
VaultItem.getArray
public DatabaseArray |
|
Get the given DatabaseArray property
Arguments
String | propertyExpression |
VaultItem.getBool
public boolean |
|
Get the given boolean property
Arguments
String | propertyExpression |
VaultItem.getBool
public boolean |
|
Get the given boolean property, or the default if it doesn't exist.
Arguments
String | propertyExpression |
boolean | defaultValue |
VaultItem.getBytes
public byte[] |
|
Get the given byte array property, or the default if it doesn't exist.
Arguments
String | propertyExpression |
byte[] | defaultValue |
VaultItem.getBytes
public byte[] |
|
Get the given byte array property
Arguments
String | propertyExpression |
VaultItem.getDateTime
public Date |
|
Get the given Date property
Arguments
String | propertyExpression |
VaultItem.getDateTime
public Date |
|
Get the given Date property, or the default if it doesn't exist.
Arguments
String | propertyExpression |
Date | defaultValue |
VaultItem.getDouble
public double |
|
Get the given double property, or the default if it doesn't exist.
Arguments
String | propertyExpression |
double | defaultValue |
VaultItem.getDouble
public double |
|
Get the given double property
Arguments
String | propertyExpression |
VaultItem.getFloat
public float |
|
Get the given float property, or the default if it doesn't exist.
Arguments
String | propertyExpression |
float | defaultValue |
VaultItem.getFloat
public float |
|
Get the given float property
Arguments
String | propertyExpression |
VaultItem.getId
public String |
|
The unique id of this particular vault item in the users vault.
VaultItem.getInt
public int |
|
Get the given int property
Arguments
String | propertyExpression |
VaultItem.getInt
public int |
|
Get the given int property, or the default if it doesn't exist.
Arguments
String | propertyExpression |
int | defaultValue |
VaultItem.getItemKey
public String |
|
The key of the underlying item in the PayVaultItems BigDB table.
VaultItem.getLong
public long |
|
Get the given long property
Arguments
String | propertyExpression |
VaultItem.getLong
public long |
|
Get the given long property, or the default if it doesn't exist.
Arguments
String | propertyExpression |
long | defaultValue |
VaultItem.getObject
public DatabaseObject |
|
Get the given DatabaseObject property
Arguments
String | propertyExpression |
VaultItem.getPurchaseDate
public Date |
|
The time when the vault item was originally purchased.
VaultItem.getString
public String |
|
Get the given String property, or the default if it doesn't exist.
Arguments
String | propertyExpression |
String | defaultValue |
VaultItem.getString
public String |
|
Get the given String property
Arguments
String | propertyExpression |
VaultItem.getUInt
public int |
|
Get the given uint property
Arguments
String | propertyExpression |
VaultItem.getUInt
public int |
|
Get the given uint property, or the default if it doesn't exist.
Arguments
String | propertyExpression |
int | defaultValue |
VaultItem.getValue
public Object |
|
Get the given property as an object
Arguments
String | propertyExpression |
VaultItem.properties
public ArrayList<String> |
|
Get the names of all properties on this object
VaultItem.size
public int |
|
Returns the number of properties on this object