.NET Client Reference
Class BuyItemInfo
Namespace: PlayerIOClient
Language: C# / .NET
Represents information about the purchase of a PayVault item.
The minimum information necessary to create an instance of this class is an itemKey representing the PayVaultItem that should be purchased.
It is also possible to add a custom payload, and this data will always be present when reading the item from the user's Vault. For example: Imagine that we have a racing game and users should be able to buy different cars of different colors, but that color doesn't affect the price of the car. Instead of creating one PayVaultItem for each combination of type and color, we need only create one item for each type and give them a different price, and color can then be added in the payload when buying a car.
Setting the payload works exactly like manipulating a DatabaseObject from BigDB.
Properties | |||
---|---|---|---|
public int |
Returns the number of properties on this object |
||
public ICollection<string> |
Get the names of all properties on this object |
||
Methods | |||
public void |
Removes all properties on this object |
||
public bool |
Returns true if the given property exists on this object |
||
public DatabaseArray |
Get the given array property |
||
public bool |
Get the given bool property |
||
public bool |
Get the given bool property, falling back to the given default value if the bool property does not exist |
||
public Byte[] |
Get the given byte array property |
||
public Byte[] |
Get the given byte array property, falling back to the given default value if the byte array property does not exist |
||
public DateTime |
Get the given datetime property |
||
public DateTime |
Get the given datetime property, falling back to the given default value if the datetime property does not exist |
||
public Double |
Get the given double property |
||
public Double |
Get the given double property, falling back to the given default value if the double property does not exist |
||
public Single |
Get the given float property, falling back to the given default value if the float property does not exist |
||
public Single |
Get the given float property |
||
public int |
Get the given int property, falling back to the given default value if the int property does not exist |
||
public int |
Get the given int property |
||
public Int64 |
Get the given long property |
||
public Int64 |
Get the given long property, falling back to the given default value if the long property does not exist |
||
public DatabaseObject |
Get the given object property |
||
public string |
Get the given string property, falling back to the given default value if the string property does not exist |
||
public string |
Get the given string property |
||
public uint |
Get the given uint property |
||
public uint |
Get the given uint property, falling back to the given default value if the uint property does not exist |
||
public object |
Get the given property as an object |
||
public BuyItemInfo |
Removes the value of the given property from this object |
||
public BuyItemInfo |
Set the given property to the given datetime value |
||
public BuyItemInfo |
Set the given property to the given byte array value |
||
public BuyItemInfo |
Set the given property to the given object |
||
public BuyItemInfo |
Set the given property to the given float value |
||
public BuyItemInfo |
Set the given property to the given array |
||
public BuyItemInfo |
Set the given property to the given long value |
||
public BuyItemInfo |
Set the given property to the given uint value |
||
public BuyItemInfo |
Set the given property to the given int value |
||
public BuyItemInfo |
Set the given property to the given double value |
||
public BuyItemInfo |
Set the given property to the given string value |
||
public BuyItemInfo |
Set the given property to the given bool value |
BuyItemInfo.Count
public int |
|
Returns the number of properties on this object
BuyItemInfo.Properties
public ICollection<string> |
|
Get the names of all properties on this object
BuyItemInfo.Clear
public void |
|
Removes all properties on this object
BuyItemInfo.Contains
public bool |
|
Returns true if the given property exists on this object
Arguments
string | propertyExpression |
BuyItemInfo.GetArray
public DatabaseArray |
|
Get the given array property
Arguments
string | propertyExpression |
BuyItemInfo.GetBool
public bool |
|
Get the given bool property
Arguments
string | propertyExpression |
BuyItemInfo.GetBool
public bool |
|
Get the given bool property, falling back to the given default value if the bool property does not exist
Arguments
string | propertyExpression |
bool | defaultValue |
BuyItemInfo.GetBytes
public Byte[] |
|
Get the given byte array property
Arguments
string | propertyExpression |
BuyItemInfo.GetBytes
public Byte[] |
|
Get the given byte array property, falling back to the given default value if the byte array property does not exist
Arguments
string | propertyExpression |
Byte[] | defaultValue |
BuyItemInfo.GetDateTime
public DateTime |
|
Get the given datetime property
Arguments
string | propertyExpression |
BuyItemInfo.GetDateTime
public DateTime |
|
Get the given datetime property, falling back to the given default value if the datetime property does not exist
Arguments
string | propertyExpression |
DateTime | defaultValue |
BuyItemInfo.GetDouble
public Double |
|
Get the given double property
Arguments
string | propertyExpression |
BuyItemInfo.GetDouble
public Double |
|
Get the given double property, falling back to the given default value if the double property does not exist
Arguments
string | propertyExpression |
Double | defaultValue |
BuyItemInfo.GetFloat
public Single |
|
Get the given float property, falling back to the given default value if the float property does not exist
Arguments
string | propertyExpression |
Single | defaultValue |
BuyItemInfo.GetFloat
public Single |
|
Get the given float property
Arguments
string | propertyExpression |
BuyItemInfo.GetInt
public int |
|
Get the given int property, falling back to the given default value if the int property does not exist
Arguments
string | propertyExpression |
int | defaultValue |
BuyItemInfo.GetInt
public int |
|
Get the given int property
Arguments
string | propertyExpression |
BuyItemInfo.GetLong
public Int64 |
|
Get the given long property
Arguments
string | propertyExpression |
BuyItemInfo.GetLong
public Int64 |
|
Get the given long property, falling back to the given default value if the long property does not exist
Arguments
string | propertyExpression |
Int64 | defaultValue |
BuyItemInfo.GetObject
public DatabaseObject |
|
Get the given object property
Arguments
string | propertyExpression |
BuyItemInfo.GetString
public string |
|
Get the given string property, falling back to the given default value if the string property does not exist
Arguments
string | propertyExpression |
string | defaultValue |
BuyItemInfo.GetString
public string |
|
Get the given string property
Arguments
string | propertyExpression |
BuyItemInfo.GetUInt
public uint |
|
Get the given uint property
Arguments
string | propertyExpression |
BuyItemInfo.GetUInt
public uint |
|
Get the given uint property, falling back to the given default value if the uint property does not exist
Arguments
string | propertyExpression |
uint | defaultValue |
BuyItemInfo.GetValue
public object |
|
Get the given property as an object
Arguments
string | propertyExpression |
BuyItemInfo.Remove
public BuyItemInfo |
|
Removes the value of the given property from this object
Arguments
string | propertyExpression |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given datetime value
Arguments
string | propertyExpression |
DateTime | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given byte array value
Arguments
string | propertyExpression |
Byte[] | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given object
Arguments
string | propertyExpression |
DatabaseObject | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given float value
Arguments
string | propertyExpression |
Single | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given array
Arguments
string | propertyExpression |
DatabaseArray | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given long value
Arguments
string | propertyExpression |
Int64 | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given uint value
Arguments
string | propertyExpression |
uint | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given int value
Arguments
string | propertyExpression |
int | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given double value
Arguments
string | propertyExpression |
Double | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given string value
Arguments
string | propertyExpression |
string | value |
BuyItemInfo.Set
public BuyItemInfo |
|
Set the given property to the given bool value
Arguments
string | propertyExpression |
bool | value |