GiftSent

Introduction

  • Backend Name: gift_sent

  • Description: The player sent a gift to 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.
itemID string Required item_id Internal ID of an item within the game
recipientID string Required recipient_id The recipient 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.GiftSent(gift, "X589TY", "R579HJ+X589TY");