CloudOnce v2.7.5
Unified Game Services API
CloudOnce.Internal.CurrencyValue Class Reference

Data-class to store currency value. More...

Inheritance diagram for CloudOnce.Internal.CurrencyValue:
[legend]
Collaboration diagram for CloudOnce.Internal.CurrencyValue:
[legend]

Public Member Functions

 CurrencyValue ()
 Data-class to store currency value.
 
 CurrencyValue (float additions, float subtractions)
 Data-class to store currency value. More...
 
 CurrencyValue (float value)
 Data-class to store currency value. More...
 
 CurrencyValue (JSONObject jsonObject)
 Data-class to store currency value. More...
 
JSONObject ToJSONObject ()
 Converts the CurrencyValue into a JSONObject. More...
 
void FromJSONObject (JSONObject jsonObject)
 Reconstructs a CurrencyValue from a JSONObject. More...
 
JSONObject ToJSONObject ()
 
void FromJSONObject (JSONObject jsonObject)
 

Properties

float Additions [get, set]
 Total additions made to this currency.
 
float Subtractions [get, set]
 Total subtractions made to this currency.
 
float Value [get, set]
 Current value of this currency.
 

Detailed Description

Data-class to store currency value.

Constructor & Destructor Documentation

◆ CurrencyValue() [1/3]

CloudOnce.Internal.CurrencyValue.CurrencyValue ( float  additions,
float  subtractions 
)
inline

Data-class to store currency value.

Parameters
additionsTotal additions made to this currency.
subtractionsTotal subtractions made to this currency.

◆ CurrencyValue() [2/3]

CloudOnce.Internal.CurrencyValue.CurrencyValue ( float  value)
inline

Data-class to store currency value.

Parameters
valueTotal current value of this currency.

◆ CurrencyValue() [3/3]

CloudOnce.Internal.CurrencyValue.CurrencyValue ( JSONObject  jsonObject)
inline

Data-class to store currency value.

Parameters
jsonObjectJSONObject containing a CurrencyValue

Member Function Documentation

◆ FromJSONObject()

void CloudOnce.Internal.CurrencyValue.FromJSONObject ( JSONObject  jsonObject)
inline

Reconstructs a CurrencyValue from a JSONObject.

Parameters
jsonObjectJSONObject containing a CurrencyValue

Implements CloudOnce.Internal.IJsonDeserializable.

◆ ToJSONObject()

JSONObject CloudOnce.Internal.CurrencyValue.ToJSONObject ( )
inline

Converts the CurrencyValue into a JSONObject.

Returns
JSONObject containing a CurrencyValue

Implements CloudOnce.Internal.IJsonSerializable.


The documentation for this class was generated from the following file: