Class CurrencyEvent
Track when user's receive or spend currency.
Inheritance
CurrencyEvent
Assembly: cs.temp.dll.dll
Syntax
public class CurrencyEvent : AnalyticsEventBase, IAnalyticsEvent, IInjectable
Fields
_amountBase
Declaration
protected double _amountBase
Field Value
_amountExp
Declaration
Field Value
_currencyBalanceBase
Declaration
protected double _currencyBalanceBase
Field Value
_currencyBalanceExp
Declaration
protected int _currencyBalanceExp
Field Value
_currencyName
Declaration
protected string _currencyName
Field Value
_direction
Declaration
protected bool _direction
Field Value
_itemCount
Declaration
Field Value
_itemDisplayName
Declaration
protected string _itemDisplayName
Field Value
_itemName
Declaration
protected string _itemName
Field Value
_itemSubtype
Declaration
protected string _itemSubtype
Field Value
_itemType
Declaration
protected string _itemType
Field Value
_source
Declaration
Field Value
_subsource
Declaration
protected string _subsource
Field Value
AMOUNT_BASE_KEY
Declaration
public const string AMOUNT_BASE_KEY = "amountBase"
Field Value
AMOUNT_EXP_KEY
Declaration
public const string AMOUNT_EXP_KEY = "amountExp"
Field Value
CURRENCY_BALANCE_BASE_KEY
Declaration
public const string CURRENCY_BALANCE_BASE_KEY = "currencyBalanceBase"
Field Value
CURRENCY_BALANCE_EXP_KEY
Declaration
public const string CURRENCY_BALANCE_EXP_KEY = "currencyBalanceExp"
Field Value
CURRENCY_NAME_KEY
Declaration
public const string CURRENCY_NAME_KEY = "currencyName"
Field Value
DIRECTION_KEY
Declaration
public const string DIRECTION_KEY = "direction"
Field Value
ITEM_COUNT_KEY
Declaration
public const string ITEM_COUNT_KEY = "itemCount"
Field Value
ITEM_DISPLAY_NAME_KEY
Declaration
public const string ITEM_DISPLAY_NAME_KEY = "itemDisplayName"
Field Value
ITEM_NAME_KEY
Declaration
public const string ITEM_NAME_KEY = "itemName"
Field Value
ITEM_SUBTYPE_KEY
Declaration
public const string ITEM_SUBTYPE_KEY = "itemSubtype"
Field Value
ITEM_TYPE_KEY
Declaration
public const string ITEM_TYPE_KEY = "itemType"
Field Value
SOURCE_KEY
Declaration
public const string SOURCE_KEY = "source"
Field Value
SUBSOURCE_KEY
Declaration
public const string SUBSOURCE_KEY = "subsource"
Field Value
Properties
EventName
Declaration
public override string EventName { get; }
Property Value
Overrides
Methods
EventContent()
Declaration
protected override Dictionary<string, object> EventContent()
Returns
Overrides
Initialize(Double, Int32, String, CurrencyFlow, String, String, String, CurrencyCategory, String, Double, Int32, Int32, String)
Declaration
public virtual void Initialize(double amountBase, int amountExp, string currencyName, CurrencyFlow flow, string source, string subsource, string itemType, CurrencyCategory category, string itemName, double currencyBalanceBase, int currencyBalanceExp, int itemCount = 0, string itemDisplayName = "")
Parameters
Type |
Name |
Description |
Double |
amountBase |
The amount of currency flowing. The base of scientific notation representation.
|
Int32 |
amountExp |
The amount of currency flowing. The exponent of scientific notiation representation.
|
String |
currencyName |
The name of the currency flowing. Liquor
|
CurrencyFlow |
flow |
How the currency is flowing.
|
String |
source |
Where the currency flow originates from. mainGame,5 or some-event-id
|
String |
subsource |
Where in the game did the currency flow come from.
|
String |
itemType |
The kind of currency flowing. hard or soft
|
CurrencyCategory |
category |
Where the item type exists.
|
String |
itemName |
The item currency is flowing for.
|
Double |
currencyBalanceBase |
The amount of currency after flowing. The base of scientific notation representation.
|
Int32 |
currencyBalanceExp |
The amount of currency after flowing. The exponent of scientific notation representation.
|
Int32 |
itemCount |
The item level after the transaction.
|
String |
itemDisplayName |
The display name of the item.
|
Implements
IInjectable