Class JtProgressionEvent
You can use this event to track all details related to the progression of the user in the game.
Hierarchy
AppEvent
+ JtProgressionEvent
Constructors
Constructor
new JtProgressionEvent(
jt_action: string,
jt_progression_1?: undefined | string,
jt_progression_2?: undefined | string,
jt_progression_3?: undefined | string,
duration?: null | number,
unit?: null | TimeUnitGroup,
): JtProgressionEvent
Parameters
Name | Type | Description |
---|---|---|
jt_action | string | - |
jt_progression_1 | undefined | string = undefined | - |
jt_progression_2 | undefined | string = undefined | - |
jt_progression_3 | undefined | string = undefined | - |
duration | null | number = null | - |
unit | null | TimeUnitGroup = null | - |
Returns
JtProgressionEvent
Overrides AppEvent.constructor
Methods
addDimension
addDimension(key: string, value?: undefined | string): AppEvent
Add a dimension with the given name and value.
Parameters
Name | Type | Description |
---|---|---|
key | string | A unique name to be added to dimension's map |
value | undefined | string = undefined | A value that associate to the given name. |
Returns
AppEvent
The modified app event for chaining.
getDimensions
getDimensions(): Record<string, string>
Get the dimension of the event.
Returns
Record<string, string>
The dimension of the event.
getName
getName(): string
Get the name of the event.
Returns
string
The name of the event.
getValue
getValue(): null | Value | Money
Get the Value or Money of the event.
Returns
null | Value | Money
The Value of Money of the event.