Example #1
0
    private string GetCommonImpressionInfo(string viewInfo)
    {
        bool flag = false;

        if (this.m_commonImpressionInfo == null)
        {
            this.m_commonImpressionInfo = "{\"impression_echo\":" + impressionEcho + "," + AdinmoManager.GetJsonField("version", "3") + AdinmoManager.GetJsonField("user_info", AdinmoManager.s_manager.GetUserInfoJson()) + AdinmoManager.GetJsonField("device_id", AdinmoManager.GetAppUserId()) + AdinmoManager.GetJsonField("dev_env", flag ? "1" : "0");
        }
        return(this.m_commonImpressionInfo + (AdinmoManager.GetJsonField("view_info", viewInfo, true) + "}"));
    }
Example #2
0
    ///////////////////////////////////////////////////////////////////////////
    public override void Show(DialogDoneCallback pfn)
    {
        base.Show(pfn);

        // Make sure we have enough choices and we are online
        if (AdinmoManager.CanShowDialog())
        {
            SetupDialog();
        }
    }
Example #3
0
        ////////////////////////////////////////////////////////////////////////////////////
        // Allow the server to print a debug message to the editor window just once.
        // This message is usually a notification that the SDK is oboslete
        ////////////////////////////////////////////////////////////////////////////////////
        void ShowMessageFromServer()
        {
            if (s_bShowMessageFromServer)
            {
                s_bShowMessageFromServer = false;

                string message = AdinmoManager.GetMessageFromServer();
                if (message != null && message != "")
                {
                    Debug.Log(message);
                }
            }
        }
Example #4
0
    public string GetSavedImprssionJson()
    {
        string str1 = "{" + AdinmoManager.GetJsonField("num_saved", "20000");

        for (int n = 0; n < 20000; ++n)
        {
            string suffix = this.GetSuffix(n);
            string key1   = "when" + suffix;
            string val1   = PlayerPrefs.GetString(this.DecorateKey(key1), DateTime.UtcNow.ToString("yyyy-MM-ddTHH\\:mm\\:ss.fff"));
            string str2   = str1 + AdinmoManager.GetJsonField(key1, val1);
            string key2   = "payload" + suffix;
            print(key2);
            string val2 = PlayerPrefs.GetString(this.DecorateKey(key2), "");
            print("val2 = " + val2);
            str1 = str2 + GetJsonField(key2, val2, n == 20000 - 1);
        }
        string str3 = str1 + "}";

        return(str3);
    }
Example #5
0
 ///////////////////////////////////////////////////////////////////////////
 public void OnChoice(int choice)
 {
     AdinmoManager.SetBrandChoice(choice);
 }
Example #6
0
 ///////////////////////////////////////////////////////////////////////////
 public void OnRecall(int choice)
 {
     AdinmoManager.SetBrandRecall(choice);
     AdinmoManager.CycleTextures();
 }