Class GachaOpenedEvent
Track when the user has opened gacha and what their reward was.
Inheritance
GachaOpenedEvent
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class GachaOpenedEvent : AnalyticsEventBase, IAnalyticsEvent, IInjectable
Fields
_itemName
Declaration
protected string _itemName
Field Value
_itemType
Declaration
protected string _itemType
Field Value
_rewards
Declaration
protected GachaRewardEntry[] _rewards
Field Value
_source
Declaration
Field Value
_subsource
Declaration
protected string _subsource
Field Value
ITEM_NAME_KEY
Declaration
public const string ITEM_NAME_KEY = "itemName"
Field Value
ITEM_TYPE_KEY
Declaration
public const string ITEM_TYPE_KEY = "itemType"
Field Value
REWARD_KEY
Declaration
public const string REWARD_KEY = "reward"
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(String, String, String, GachaRewardEntry[], String)
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
IInjectable