GiftReceived
Introduction
Backend Name:
gift_received
Description: The player received a gift from another player
Event Type:
Social
Priority:
P3
Parameters
Name | Type | Select | Backend name | Description |
---|---|---|---|---|
additionalData | Dictionary |
Optional | additional_data | Any additional information |
gift | Reward | Required | reward | The reward object which contains the name, type, amount and such. |
giftAccepted | bool | Optional | gift_accepted | If the gift is accepted. Default value is false |
senderID | string | Required | sender_id | The sender ID |
uniqueTracking | string | Optional | unique_tracking | This is used to match a Sent event with corresponding Received event. |
Code example
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");