MS Analytics
Loading...
Searching...
No Matches
MindstormStudios::Analytics::Transaction Class Reference
Inheritance diagram for MindstormStudios::Analytics::Transaction:
MindstormStudios::Analytics::SerializableObject

Public Member Functions

 Transaction (string name, Product spent, Product received)
 Constructor for Economy Transactions.
 Transaction (string name, Product spent, Product received, string productID, string transactionID)
 Constructor for IAP Transactions. Typically used only by IAP Validation package.

Data Fields

string name
Product productReceived
Product productSpent
string transactionID
string productID

Constructor & Destructor Documentation

◆ Transaction() [1/2]

MindstormStudios::Analytics::Transaction::Transaction ( string name,
Product spent,
Product received )
inline

Constructor for Economy Transactions.

⚠️ Note that productsSpent and productsReceived were inverted compared to the old constructor.

Parameters
nameThe name of the transaction
spentThe product that the player spent. Null if the player only received something.
receivedThe product that the player received.

◆ Transaction() [2/2]

MindstormStudios::Analytics::Transaction::Transaction ( string name,
Product spent,
Product received,
string productID,
string transactionID )
inline

Constructor for IAP Transactions. Typically used only by IAP Validation package.

⚠️ Note that productsSpent and productsReceived were inverted compared to the old constructor.

⚠️ productId and transactionId were also inverted.

Parameters
nameThe name of the transaction
spentThe product that the player spent. Null if the player only received something.
receivedThe product that the player received.
productIDThe product ID of the IAP.
transactionIDThe transaction ID of the IAP purchase.

Field Documentation

◆ name

string MindstormStudios::Analytics::Transaction::name

◆ productID

string MindstormStudios::Analytics::Transaction::productID

◆ productReceived

Product MindstormStudios::Analytics::Transaction::productReceived

◆ productSpent

Product MindstormStudios::Analytics::Transaction::productSpent

◆ transactionID

string MindstormStudios::Analytics::Transaction::transactionID

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