Show / Hide Table of Contents

    Class PurchaseEvent

    Send when a user makes a purchase using real currency.

    Inheritance
    Object
    AnalyticsEventBase
    PurchaseEvent
    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
    [Serializable]
    public class PurchaseEvent : AnalyticsEventBase, IAnalyticsEvent, IInjectable

    Fields

    _city

    Declaration
    protected string _city
    Field Value
    Type Description
    String

    _country

    Declaration
    protected string _country
    Field Value
    Type Description
    String

    _currency

    Declaration
    protected string _currency
    Field Value
    Type Description
    String

    _isGross

    Declaration
    protected bool _isGross
    Field Value
    Type Description
    Boolean

    _itemAmount

    Declaration
    protected int _itemAmount
    Field Value
    Type Description
    Int32

    _itemName

    Declaration
    protected string _itemName
    Field Value
    Type Description
    String

    _itemType

    Declaration
    protected string _itemType
    Field Value
    Type Description
    String

    _promouid

    Declaration
    protected string _promouid
    Field Value
    Type Description
    String

    _region

    Declaration
    protected string _region
    Field Value
    Type Description
    String

    _revenue

    Declaration
    protected float _revenue
    Field Value
    Type Description
    Single

    _token

    Declaration
    protected string _token
    Field Value
    Type Description
    String

    _transactionId

    Declaration
    protected string _transactionId
    Field Value
    Type Description
    String

    CITY_KEY

    Declaration
    public const string CITY_KEY = "city"
    Field Value
    Type Description
    String

    COUNTRY_KEY

    Declaration
    public const string COUNTRY_KEY = "country"
    Field Value
    Type Description
    String

    CURRENCY_KEY

    Declaration
    public const string CURRENCY_KEY = "currency"
    Field Value
    Type Description
    String

    IS_GROSS_KEY

    Declaration
    public const string IS_GROSS_KEY = "isGross"
    Field Value
    Type Description
    String

    ITEM_AMOUNT_KEY

    Declaration
    public const string ITEM_AMOUNT_KEY = "itemAmount"
    Field Value
    Type Description
    String

    ITEM_NAME_KEY

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

    ITEM_TYPE_KEY

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

    PROMOUID_KEY

    Declaration
    public const string PROMOUID_KEY = "promoUid"
    Field Value
    Type Description
    String

    REGION_KEY

    Declaration
    public const string REGION_KEY = "region"
    Field Value
    Type Description
    String

    REVENUE_KEY

    Declaration
    public const string REVENUE_KEY = "revenue"
    Field Value
    Type Description
    String

    TOKEN_KEY

    Declaration
    public const string TOKEN_KEY = "token"
    Field Value
    Type Description
    String

    TRANSACTION_ID_KEY

    Declaration
    public const string TRANSACTION_ID_KEY = "transactionId"
    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(String, String, Int32, Single, String, String, String, Boolean, String, String, String, String)

    Initializes the event.

    Declaration
    public virtual void Initialize(string itemType, string itemName, int itemAmount, float revenue, string currency, string transactionId, string token, bool isGross, string promouid = "", string city = "", string region = "", string country = "")
    Parameters
    Type Name Description
    String itemType

    The type of item being purchased. gems, promo, event_promo

    String itemName

    The name of the item being purchased. com.canary.gems.small, pack-1, event_promo_facebook

    Int32 itemAmount

    The number of the item included in the purchase.

    Single revenue

    The price of the item in the users local currency. This is currently the same value as cost

    String currency

    The three letter ISO currency code for the currency used to make the purchase. USD, CAD, MXN

    String transactionId

    The transaction ID generated by the platform.

    String token

    The purchase token generated by the platform. This should be data that can be used to look up purchase history on the platforms administration pages.

    Boolean isGross

    Whether the purchase data is a gross or net amount.

    String promouid

    The unique id associated with every promo. (Not the product sku purchased)

    String city

    The city the purchase occurred within. This is optional.

    String region

    The region the purchase occurred within. This is optional.

    String country

    The country the purchase occurred within. This is optional.

    Implements

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