hellbound/Assets/Scripts/Managers/Statistics/UserAcquisition/TenjinSDK.cs

34 lines
822 B
C#

namespace RND.SDK.UserAcquisitionSDK
{
public class TenjinSDK : IUserAcquisitionSDK
{
#if RND_TENJIN
private BaseTenjin _instance = null;
#endif
public void Init()
{
#if RND_TENJIN
_instance = Tenjin.getInstance(Settings.TENJIN_KEY);
_instance.Connect();
#endif
}
public void SendEvent(string eventName)
{
#if RND_TENJIN
_instance.SendEvent($"{eventName}");
#endif
}
public void Transaction(string productId, string currencyCode, int quantity, double unitPrice,
string transactionId,
string receipt, string signature)
{
#if RND_TENJIN
_instance.Transaction(productId, currencyCode, quantity, unitPrice, transactionId, receipt, signature);
#endif
}
}
}