Example #1
0
    private static string EventToString(AttributionEvent e, int?intArg = default(int?), string strArg = null)
    {
        switch (e)
        {
        case AttributionEvent.AdsWatched:
            return($"{intArg}{strArg}AdsWatched");

        case AttributionEvent.CoinsSpent:
            return($"{intArg}CoinsSpent");

        case AttributionEvent.GemsSpent:
            return($"{intArg}GemsSpent");

        case AttributionEvent.FirstOpen:
            return("FirstOpen");

        case AttributionEvent.PlatformConnected:
            return($"{strArg}Connected");

        case AttributionEvent.RatingReached:
            return($"{intArg}RatingReached{strArg}");

        case AttributionEvent.ShopOpened:
            return("ShopOpened");

        case AttributionEvent.TankUpgraded:
            return($"TankUpgraded{intArg}Times");

        default:
            return("");
        }
    }
Example #2
0
    public static void NewAttributionEvent(AttributionEvent e, int?intArg = default(int?), string strArg = null)
    {
        string text = EventToString(e, intArg, strArg);

        if (!string.IsNullOrEmpty(text))
        {
//			AppsFlyer.trackRichEvent(text, new Dictionary<string, string>());
        }
    }