GiftReceived

The player received a gift from another player

Name
Type
Select
Backend name
Description

gift

Reward

Required

reward

The reward object which contains the name, type, amount and such.

senderID

string

Required

sender_id

The sender ID

giftAccepted

bool

Optional

gift_accepted

If the gift is accepted. Default value is false

uniqueTracking

string

Optional

unique_tracking

This is used to match a Sent event with corresponding Received event.

additionalData

Dictionary<string, object>

Optional

additional_data

Any additional information

Code examples:

Product product = new Product();
List<VirtualCurrency> virtualCurrencies = new List<VirtualCurrency>
{ new VirtualCurrency("coins", "gold", 100) };
product.virtualCurrencies = virtualCurrencies;
Reward gift = new Reward(product)
{
rewardProducts = product,
rewardName = "Money"
};
LionAnalytics.GiftReceived(gift, "R579HJ", true, "R579HJ+X589TY");

Last updated