73 lines
No EOL
2.1 KiB
C#
73 lines
No EOL
2.1 KiB
C#
using System;
|
|
|
|
namespace ShiroginSDK.Runtime.Modules.Events
|
|
{
|
|
public static partial class ShiroginEvents
|
|
{
|
|
public static class Ads
|
|
{
|
|
[Serializable]
|
|
public class AdWatchedEvent
|
|
{
|
|
public string PlacementId;
|
|
public bool Success;
|
|
public string AdNetwork;
|
|
|
|
public AdWatchedEvent(string placementId, bool success, string network)
|
|
{
|
|
PlacementId = placementId;
|
|
Success = success;
|
|
AdNetwork = network;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class RewardedAdUnavailableEvent
|
|
{
|
|
public string Reason;
|
|
|
|
public RewardedAdUnavailableEvent(string reason = "Rewarded ad not ready")
|
|
{
|
|
Reason = reason;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class AdRevenueEvent
|
|
{
|
|
public string AdNetwork;
|
|
public string AdUnitId;
|
|
public string AdFormat;
|
|
public double RevenueUSD;
|
|
|
|
public AdRevenueEvent(string network, string unitId, string format, double revenueUsd)
|
|
{
|
|
AdNetwork = network;
|
|
AdUnitId = unitId;
|
|
AdFormat = format;
|
|
RevenueUSD = revenueUsd;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class AdAnalyticsEvent
|
|
{
|
|
public string AdNetwork;
|
|
public string Placement;
|
|
public string Format;
|
|
public bool Success;
|
|
public double Revenue;
|
|
|
|
public AdAnalyticsEvent(string network, string placement, string format, bool success,
|
|
double revenue = 0)
|
|
{
|
|
AdNetwork = network;
|
|
Placement = placement;
|
|
Format = format;
|
|
Success = success;
|
|
Revenue = revenue;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |