Show / Hide Table of Contents

    Class GachaOpenedEvent

    Track when the user has opened gacha and what their reward was.

    Inheritance
    Object
    AnalyticsEventBase
    GachaOpenedEvent
    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 GachaOpenedEvent : AnalyticsEventBase, IAnalyticsEvent, IInjectable

    Fields

    _itemName

    Declaration
    protected string _itemName
    Field Value
    Type Description
    String

    _itemType

    Declaration
    protected string _itemType
    Field Value
    Type Description
    String

    _rewards

    Declaration
    protected GachaRewardEntry[] _rewards
    Field Value
    Type Description
    GachaRewardEntry[]

    _source

    Declaration
    protected string _source
    Field Value
    Type Description
    String

    _subsource

    Declaration
    protected string _subsource
    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

    REWARD_KEY

    Declaration
    public const string REWARD_KEY = "reward"
    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(String, String, String, GachaRewardEntry[], String)

    Initializes the event.

    Declaration
    public virtual void Initialize(string source, string itemType, string itemName, GachaRewardEntry[] rewards, string subsource = "")
    Parameters
    Type Name Description
    String source

    Where the gacha opened event occurred. stage-3, event-2

    String itemType

    The type of gacha opened. common, event-legendary

    String itemName

    The name of the gacha opened.

    GachaRewardEntry[] rewards

    The rewards obtained from the gacha item.

    String subsource

    A second level of context about the action. ascension_reward, business_01

    Implements

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