コード例 #1
0
        // Token: 0x06000113 RID: 275 RVA: 0x0000652C File Offset: 0x0000492C
        private void didFailToLoadInPlayEvent(string dataString)
        {
            Hashtable         hashtable = (Hashtable)CBJSON.Deserialize(dataString);
            CBImpressionError arg       = Chartboost.impressionErrorFromInt(hashtable["errorCode"]);

            if (Chartboost.didFailToLoadInPlay != null)
            {
                Chartboost.didFailToLoadInPlay(CBLocation.locationFromName(hashtable["location"] as string), arg);
            }
        }
コード例 #2
0
        // Token: 0x06000109 RID: 265 RVA: 0x000062F0 File Offset: 0x000046F0
        private void didFailToRecordClickEvent(string dataString)
        {
            Hashtable    hashtable = (Hashtable)CBJSON.Deserialize(dataString);
            CBClickError arg       = Chartboost.clickErrorFromInt(hashtable["errorCode"]);

            if (Chartboost.didFailToRecordClick != null)
            {
                Chartboost.didFailToRecordClick(CBLocation.locationFromName(hashtable["location"] as string), arg);
            }
        }
コード例 #3
0
        private void didFailToLoadInPlayEvent(string dataString)
        {
            Hashtable         data  = (Hashtable)CBJSON.Deserialize(dataString);
            CBImpressionError error = impressionErrorFromInt(data["errorCode"]);

            if (didFailToLoadInPlay != null)
            {
                didFailToLoadInPlay(CBLocation.locationFromName(data["location"] as string), error);
            }
        }
コード例 #4
0
        private void didFailToLoadRewardedVideoEvent(string dataString)
        {
            Debug.Log(dataString);
            Hashtable         data  = (Hashtable)CBJSON.Deserialize(dataString);
            CBImpressionError error = impressionErrorFromInt(data["errorCode"]);

            if (didFailToLoadRewardedVideo != null)
            {
                didFailToLoadRewardedVideo(CBLocation.locationFromName(data["location"] as string), error);
            }
        }
コード例 #5
0
        private void didCompleteRewardedVideoEvent(string dataString)
        {
            Hashtable data = (Hashtable)CBJSON.Deserialize(dataString);
            int       reward;

            try {
                reward = Convert.ToInt32(data["reward"]);
            } catch {
                reward = 0;
            }

            if (didCompleteRewardedVideo != null)
            {
                didCompleteRewardedVideo(CBLocation.locationFromName(data["location"] as string), reward);
            }
        }
コード例 #6
0
        // Token: 0x06000110 RID: 272 RVA: 0x00006464 File Offset: 0x00004864
        private void didCompleteRewardedVideoEvent(string dataString)
        {
            Hashtable hashtable = (Hashtable)CBJSON.Deserialize(dataString);
            int       arg;

            try
            {
                arg = Convert.ToInt32(hashtable["reward"]);
            }
            catch
            {
                arg = 0;
            }
            if (Chartboost.didCompleteRewardedVideo != null)
            {
                Chartboost.didCompleteRewardedVideo(CBLocation.locationFromName(hashtable["location"] as string), arg);
            }
        }