public void FilmEarned(int playerFilm, FilmSourceType source) { if (ShouldSkipSendEvent) { DebugLog($"[ANALYTICS] [Skip] {Constants.Analytics.Events.FilmEvent}: {MapFilmEvent(source).ToString()} " + $"{Constants.Analytics.Parameters.PlayerFilm}: {playerFilm} "); return; } QLFilmEvent filmEvent = new QLFilmEvent(MapFilmEvent(source), playerFilm); TrackEvent(filmEvent); DebugLog($"[ANALYTICS]][FILM] {Constants.Analytics.Events.FilmEvent}: {MapFilmEvent(source).ToString()} " + $"{Constants.Analytics.Parameters.PlayerFilm}: {playerFilm} "); }
// film event analytics private QLFilmSourceType MapFilmEvent(FilmSourceType source) { switch (source) { case FilmSourceType.RewardedVideo: return(QLFilmSourceType.QLFilmSourceTypeRewardedVideo); case FilmSourceType.CoinPurchase: return(QLFilmSourceType.QLFilmSourceTypeCoinPurchase); case FilmSourceType.DailyReward: return(QLFilmSourceType.QLFilmSourceTypeDailyReward); default: //TODO add asset here? -> SHouldn't reach here return(QLFilmSourceType.QLFilmSourceTypeRewardedVideo); } }