TPStashEvent

What is TPStashEvent

TPStashEvent is an API class to collect user’s behavioral data in TentuPlay.Api.

How to use TPStashEvent

Use new TPStashEvent() and call the corresponding methods for an event that is called multiple times, uploads will be done automatically according to the Upload Interval, provided that Auto Upload is checked.

  • For example, in the case of getting or using currency, call the collection methods via new TPStashEvent().GetCurrency() and new TPStashEvent().UseCurrency().

  • If new TPStashEvent() is called only at the start of game, the collected data is not uploaded during gameplay.

Methods

The TPStashEvent class contains the following methods:

Name Description

TPStashEvent.Join

User registration

TPStashEvent.LoginApp

User’s login to the game

TPStashEvent.LoginAsCharacter

Character’s login

TPStashEvent.InAppPurchase

Character’s in-app purchase

TPStashEvent.WatchAd

In-app ad for the character

TPStashEvent.PlayQuest

Character’s progress in a quest

TPStashEvent.GetBonus

Character’s acquisition of a bonus

TPStashEvent.ChangeCharacterArchetype

Character’s change in job

TPStashEvent.ChangeStat

Character’s stat change

TPStashEvent.ChangeCustomAbility

Change in custom ability

TPStashEvent.PlayStage

Stage that the character plays

TPStashEvent.PlayStageWithInfrastructure

Infrastructure the character uses in the stage

TPStashEvent.PlayStageWithPet

Pet that the character brings in the stage

TPStashEvent.PlayStageWithConsumable

Consumable item that the character uses in the stage

TPStashEvent.PlayStageWithEquipment

Equipment that the character uses in the stage

TPStashEvent.PlayStageWithCosmetic

Cosmetic item that the character uses in the stage

TPStashEvent.PlayStageWithSkill

Skill that the character equips for the stage

TPStashEvent.GetCharacter

Player’s acquisition of a character

TPStashEvent.GetCurrency

Character’s acquisition of in-game currency

TPStashEvent.GetInfrastructure

Character’s acquisition of an infrastructure

TPStashEvent.GetPet

Character’s acquisition of a pet

TPStashEvent.GetToken

Character’s acquisition of a token

TPStashEvent.GetConsumable

Character’s acquisition of a consumable item

TPStashEvent.GetMaterial

Character’s acquisition of a material item

TPStashEvent.GetEquipment

Character’s acquisition of an equipment item

TPStashEvent.GetCosmetic

Character’s acquisition of an cosmetic item

TPStashEvent.GetRandomBox

Character’s acquisition of a random box item

TPStashEvent.UseCurrency

Character’s spending of an in-game currency

TPStashEvent.EquipInfrastructure

Character’s equipping or unequipping an infrastructure

TPStashEvent.EquipPet

Character’s equipping or unequipping a pet

TPStashEvent.UseToken

Character’s spending of a token

TPStashEvent.UseConsumable

Character’s spending of a consumable item

TPStashEvent.UseMaterial

Character’s spending of a material item

TPStashEvent.EquipEquipment

Character’s equipping or unequipping an equipment

TPStashEvent.EquipCosmetic

Character’s equipping or unequipping a cosmetic

TPStashEvent.OpenRandomBox

Character’s opening of a random box

TPStashEvent.EquipSkill

Character’s equipping or unequipping a skill

TPStashEvent.DismissCharacter

Player’s discharge of a character

TPStashEvent.DismissInfrastructure

Destruction of an infrastructure

TPStashEvent.DismissPet

Destruction of a pet

TPStashEvent.DismissToken

Destruction of a token

TPStashEvent.DismissConsumable

Destruction of a consumable item

TPStashEvent.DismissMaterial

Destruction of a material item

TPStashEvent.DismissEquipment

Destruction of an equipment

TPStashEvent.DismissCosmetic

Destruction of a cosmetic item

TPStashEvent.DismissRandomBox

Destruction of a random box item

TPStashEvent.LevelUpCharacter

The character’s level up

TPStashEvent.LevelUpInfrastructure

The infrastructure item’s level up

TPStashEvent.LevelUpPet

The pet’s level up

TPStashEvent.LevelUpConsumable

The consumable item’s level up

TPStashEvent.LevelUpMaterial

The material item’s level up

TPStashEvent.LevelUpEquipment

The equipment’s level up

TPStashEvent.LevelUpCosmetic

The cosmetic item’s level up

TPStashEvent.LevelUpSkill

Character’s skill level up

TPStashEvent.DepositCurrency

A player deposits a currency to its storage

TPStashEvent.DepositInfrastructure

A player deposits an infrastructure item to its storage

TPStashEvent.DepositPet

A player deposits a pet to its storage

TPStashEvent.DepositToken

A player deposits a token to its storage

TPStashEvent.DepositConsumable

A player deposits a consumable item to its storage

TPStashEvent.DepositMaterial

A player deposits a material item to its storage

TPStashEvent.DepositEquipment

A player deposits a equipment to its storage

TPStashEvent.DepositCosmetic

A player deposits a cosmetic item to its storage

TPStashEvent.DepositRandomBox

A player deposits a random box item to its storage

TPStashEvent.WithdrawCurrency

A player withdraws currencies from its storage

TPStashEvent.WithdrawInfrastructure

A player withdraws a infrastructure item from its storage

TPStashEvent.WithdrawPet

A player withdraws a pet from its storage

TPStashEvent.WithdrawToken

A player withdraws a token item from its storage

TPStashEvent.WithdrawConsumable

A player withdraws a consumable item from its storage

TPStashEvent.WithdrawMaterial

A player withdraws a material item from its storage

TPStashEvent.WithdrawEquipment

A player withdraws an equipment item from its storage

TPStashEvent.WithdrawCosmetic

A player withdraws a cosmetic item from its storage

TPStashEvent.WithdrawRandomBox

A player withdraws a random or loot box item from its storage

TPStashEvent.StashAdviceEvent

Events about the actions that a user takes to interact with an advice message delivered in in-game mails and pop-ups such as opening and closing the window and other button actions.

TPStashEvent.StashOfferEvent

Events about the actions that a user takes to interact with an offer message delivered in in-game mails and pop-ups such as opening and closing the window and other button actions.

TPStashEvent.Record

To enter the method name and parameters of TPStashEvent directly.