Beispiel #1
0
    public static void OnAdjustResult(ResponseData responseDelegate)
    {
        if (StageSystemCheck.pkGoOminiata == null)
        {
            return;
        }
        OmniataComponent component = StageSystemCheck.pkGoOminiata.GetComponent <OmniataComponent>();

        if (component == null)
        {
            return;
        }
        if (responseDelegate.activityKind == ResponseData.ActivityKind.SESSION)
        {
            component.Track("om_adjust", new Dictionary <string, string>
            {
                {
                    "adgroup",
                    responseDelegate.adgroup
                },
                {
                    "campaign",
                    responseDelegate.campaign
                },
                {
                    "creative",
                    responseDelegate.creative
                },
                {
                    "network",
                    responseDelegate.network
                },
                {
                    "trackerName",
                    responseDelegate.trackerName
                },
                {
                    "trackerToken",
                    responseDelegate.trackerToken
                }
            });
        }
    }
Beispiel #2
0
    public static void FileDownloadOmniataLog(string strPath)
    {
        DateTime dateTime  = DateTime.Now.ToLocalTime();
        DateTime arg_29_0  = dateTime;
        DateTime dateTime2 = new DateTime(1970, 1, 1, 0, 0, 0, 0);
        int      num       = (int)(arg_29_0 - dateTime2.ToLocalTime()).TotalSeconds;
        Dictionary <string, string> dictionary = new Dictionary <string, string>();

        dictionary.Add("ts", num.ToString());
        dictionary.Add("file_name", strPath);
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        dictionary.Add("account_id", myCharInfo.m_SN.ToString());
        GameObject gameObject = GameObject.Find("OmniataManager");

        if (gameObject)
        {
            OmniataComponent component = gameObject.GetComponent <OmniataComponent>();
            if (component)
            {
                component.Track("om_funnel_load", dictionary);
            }
        }
    }
Beispiel #3
0
    public void ShowLevelUpAlarm2()
    {
        NrCharUser nrCharUser = NrTSingleton <NkCharManager> .Instance.GetChar(1) as NrCharUser;

        if (nrCharUser != null)
        {
            NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
            if (kMyCharInfo != null)
            {
                int level = kMyCharInfo.GetLevel();
                for (int i = this.startLevel + 1; i <= level; i++)
                {
                    if (this.dic_levelupInfo.ContainsKey(i))
                    {
                        LevelupInfoDLG levelupInfoDLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.LEVELUP_GUIDE_DLG) as LevelupInfoDLG;

                        levelupInfoDLG.Show(this.dic_levelupInfo[i]);
                    }
                }
                this.startLevel = kMyCharInfo.GetLevel();
                BookmarkDlg bookmarkDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BOOKMARK_DLG) as BookmarkDlg;

                if (bookmarkDlg != null)
                {
                    bookmarkDlg.UpdateBookmarkInfo(BookmarkDlg.TYPE.HERO);
                }
                HeroCollect_DLG heroCollect_DLG = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.HEROCOLLECT_DLG) as HeroCollect_DLG;

                if (heroCollect_DLG != null)
                {
                    heroCollect_DLG.Update_Notice();
                }
                Tapjoy.SetUserLevel(kMyCharInfo.GetLevel());
                string comment = string.Format("levelup{0}", kMyCharInfo.GetLevel());
                NrTSingleton <FiveRocksEventManager> .Instance.Placement(comment);

                eSERVICE_AREA currentServiceArea = NrTSingleton <NrGlobalReference> .Instance.GetCurrentServiceArea();

                if (currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_KORGOOGLE || currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_KORQA)
                {
                    NrTSingleton <AdWords> .Instance.LevelUp(kMyCharInfo.GetLevel());
                }
                DateTime dateTime  = DateTime.Now.ToLocalTime();
                DateTime arg_158_0 = dateTime;
                DateTime dateTime2 = new DateTime(1970, 1, 1, 0, 0, 0, 0);
                int      num       = (int)(arg_158_0 - dateTime2.ToLocalTime()).TotalSeconds;
                Dictionary <string, string> dictionary = new Dictionary <string, string>();
                dictionary.Add("ts", num.ToString());
                dictionary.Add("level", kMyCharInfo.GetLevel().ToString());
                dictionary.Add("account_id", kMyCharInfo.m_SN.ToString());
                GameObject pkGoOminiata = StageSystemCheck.pkGoOminiata;
                if (pkGoOminiata)
                {
                    OmniataComponent component = pkGoOminiata.GetComponent <OmniataComponent>();
                    if (component)
                    {
                        component.Track("om_level", dictionary);
                    }
                }
                if (NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetLevel() >= 10 && PlayerPrefs.GetInt(NrPrefsKey.PLAYER_PLAYLOCKDEVICEID_SEND, 0) == 0)
                {
                    TsPlatform.Operator.GetPlayLockID();
                }
            }
            NrTSingleton <NkClientLogic> .Instance.ShowChangeGuestIDUI();
        }
    }