Exemplo n.º 1
0
        public void didFailToLoadMoreApps(string dataString)
        {
            Hashtable         data  = (Hashtable)CBJSON.Deserialize(dataString);
            CBImpressionError error = impressionErrorFromInt(data["errorCode"]);

            if (didFailToLoadMoreAppsEvent != null)
            {
                didFailToLoadMoreAppsEvent(error);
            }
        }
Exemplo n.º 2
0
        public void didFailToLoadMoreApps(string dataString)
        {
            Hashtable hashtable = (Hashtable)CBJSON.Deserialize(dataString);

            CBManager.CBImpressionError obj = CBManager.impressionErrorFromInt(hashtable["errorCode"]);
            if (CBManager.didFailToLoadMoreAppsEvent != null)
            {
                CBManager.didFailToLoadMoreAppsEvent(obj);
            }
        }
Exemplo n.º 3
0
        public void didFailToLoadInterstitial(string dataString)
        {
            Hashtable         data  = (Hashtable)CBJSON.Deserialize(dataString);
            CBImpressionError error = impressionErrorFromInt(data["errorCode"]);

            if (didFailToLoadInterstitialEvent != null)
            {
                didFailToLoadInterstitialEvent(data["location"] as string, error);
            }
        }
Exemplo n.º 4
0
        public void didFailToLoadInterstitial(string dataString)
        {
            Hashtable hashtable = (Hashtable)CBJSON.Deserialize(dataString);

            CBManager.CBImpressionError arg = CBManager.impressionErrorFromInt(hashtable["errorCode"]);
            if (CBManager.didFailToLoadInterstitialEvent != null)
            {
                CBManager.didFailToLoadInterstitialEvent(hashtable["location"] as string, arg);
            }
        }
Exemplo n.º 5
0
        /// Tracks an event with a value and additional metadata
        public static void trackEventWithValueAndMetadata(string eventIdentifier, float val, Hashtable metadata)
        {
            if (!checkInitialized())
            {
                return;
            }

#if UNITY_ANDROID
            _plugin.Call("trackEventWithValueAndMetadata", eventIdentifier, val, CBJSON.Serialize(metadata));
#elif UNITY_IPHONE
            _chartBoostTrackEventWithValueAndMetadata(eventIdentifier, val, CBJSON.Serialize(metadata));
#endif
        }