Show / Hide Table of Contents

    Class CurrencyEvent

    Track when user's receive or spend currency.

    Inheritance
    Object
    AnalyticsEventBase
    CurrencyEvent
    Implements
    IAnalyticsEvent
    IInjectable
    Inherited Members
    AnalyticsEventBase.UUID_KEY
    AnalyticsEventBase.EVENT_NAME_KEY
    AnalyticsEventBase.TIMESTAMP_KEY
    AnalyticsEventBase.DEVICE_ID_KEY
    AnalyticsEventBase.DATA_MAX_LENGTH
    AnalyticsEventBase.TimestampInMilliseconds
    AnalyticsEventBase._uuid
    AnalyticsEventBase._timestampInMilliseconds
    AnalyticsEventBase.Inject(IResolver)
    AnalyticsEventBase.Initialize(Int64, Dictionary<String, Object>)
    AnalyticsEventBase.IncludeDeviceId
    AnalyticsEventBase.GetEventData()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Analytics
    Assembly: cs.temp.dll.dll
    Syntax
    public class CurrencyEvent : AnalyticsEventBase, IAnalyticsEvent, IInjectable

    Fields

    _amountBase

    Declaration
    protected double _amountBase
    Field Value
    Type Description
    Double

    _amountExp

    Declaration
    protected int _amountExp
    Field Value
    Type Description
    Int32

    _currencyBalanceBase

    Declaration
    protected double _currencyBalanceBase
    Field Value
    Type Description
    Double

    _currencyBalanceExp

    Declaration
    protected int _currencyBalanceExp
    Field Value
    Type Description
    Int32

    _currencyName

    Declaration
    protected string _currencyName
    Field Value
    Type Description
    String

    _direction

    Declaration
    protected bool _direction
    Field Value
    Type Description
    Boolean

    _itemCount

    Declaration
    protected int _itemCount
    Field Value
    Type Description
    Int32

    _itemDisplayName

    Declaration
    protected string _itemDisplayName
    Field Value
    Type Description
    String

    _itemName

    Declaration
    protected string _itemName
    Field Value
    Type Description
    String

    _itemSubtype

    Declaration
    protected string _itemSubtype
    Field Value
    Type Description
    String

    _itemType

    Declaration
    protected string _itemType
    Field Value
    Type Description
    String

    _source

    Declaration
    protected string _source
    Field Value
    Type Description
    String

    _subsource

    Declaration
    protected string _subsource
    Field Value
    Type Description
    String

    AMOUNT_BASE_KEY

    Declaration
    public const string AMOUNT_BASE_KEY = "amountBase"
    Field Value
    Type Description
    String

    AMOUNT_EXP_KEY

    Declaration
    public const string AMOUNT_EXP_KEY = "amountExp"
    Field Value
    Type Description
    String

    CURRENCY_BALANCE_BASE_KEY

    Declaration
    public const string CURRENCY_BALANCE_BASE_KEY = "currencyBalanceBase"
    Field Value
    Type Description
    String

    CURRENCY_BALANCE_EXP_KEY

    Declaration
    public const string CURRENCY_BALANCE_EXP_KEY = "currencyBalanceExp"
    Field Value
    Type Description
    String

    CURRENCY_NAME_KEY

    Declaration
    public const string CURRENCY_NAME_KEY = "currencyName"
    Field Value
    Type Description
    String

    DIRECTION_KEY

    Declaration
    public const string DIRECTION_KEY = "direction"
    Field Value
    Type Description
    String

    ITEM_COUNT_KEY

    Declaration
    public const string ITEM_COUNT_KEY = "itemCount"
    Field Value
    Type Description
    String

    ITEM_DISPLAY_NAME_KEY

    Declaration
    public const string ITEM_DISPLAY_NAME_KEY = "itemDisplayName"
    Field Value
    Type Description
    String

    ITEM_NAME_KEY

    Declaration
    public const string ITEM_NAME_KEY = "itemName"
    Field Value
    Type Description
    String

    ITEM_SUBTYPE_KEY

    Declaration
    public const string ITEM_SUBTYPE_KEY = "itemSubtype"
    Field Value
    Type Description
    String

    ITEM_TYPE_KEY

    Declaration
    public const string ITEM_TYPE_KEY = "itemType"
    Field Value
    Type Description
    String

    SOURCE_KEY

    Declaration
    public const string SOURCE_KEY = "source"
    Field Value
    Type Description
    String

    SUBSOURCE_KEY

    Declaration
    public const string SUBSOURCE_KEY = "subsource"
    Field Value
    Type Description
    String

    Properties

    EventName

    Declaration
    public override string EventName { get; }
    Property Value
    Type Description
    String
    Overrides
    AnalyticsEventBase.EventName

    Methods

    EventContent()

    Declaration
    protected override Dictionary<string, object> EventContent()
    Returns
    Type Description
    Dictionary<String, Object>
    Overrides
    AnalyticsEventBase.EventContent()

    Initialize(Double, Int32, String, CurrencyFlow, String, String, String, CurrencyCategory, String, Double, Int32, Int32, String)

    Initializes the event.

    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

    IAnalyticsEvent
    IInjectable
    Back to top Copyright © 2020 East Side Games Inc.