Playvoi/Playvoi.Client/Assets/ShiroginSDK/Runtime/Modules/Events/Domains/Rewards.cs

73 lines
No EOL
2.2 KiB
C#

using System;
using ShiroginSDK.Runtime.Modules.IAP.Scripts.SO;
namespace ShiroginSDK.Runtime.Modules.Events
{
public static partial class ShiroginEvents
{
public static class Rewards
{
[Serializable]
public class RewardClaimedEvent
{
public string RewardId;
public string Source;
public int Amount;
public string Currency;
public RewardClaimedEvent(string rewardId, string source, int amount = 0, string currency = "")
{
RewardId = rewardId;
Source = source;
Amount = amount;
Currency = currency;
}
}
[Serializable]
public class RewardGivenEvent
{
public StoreItem StoreItem;
public RewardGivenEvent(StoreItem storeItem)
{
StoreItem = storeItem;
}
}
[Serializable]
public class ChestOpenedEvent
{
public string ChestId;
public bool OpenedWithAd;
public bool OpenedWithCurrency;
public ChestOpenedEvent(string chestId, bool openedWithAd, bool openedWithCurrency)
{
ChestId = chestId;
OpenedWithAd = openedWithAd;
OpenedWithCurrency = openedWithCurrency;
}
}
[Serializable]
public class RewardAnalyticsEvent
{
public string RewardId;
public string Source;
public int Amount;
public string Currency;
public bool Success;
public RewardAnalyticsEvent(string id, string source, int amount, string currency, bool success)
{
RewardId = id;
Source = source;
Amount = amount;
Currency = currency;
Success = success;
}
}
}
}
}