Beispiel #1
0
        public void downloadJson(string network, PictureAdsManager manager)
        {
            PictureAdsRequest request = new PictureAdsRequest(network);

            request.setJsonAvailableDelegate(manager.jsonAvailableDelegate);
            request.setOperationCompleteDelegate(jsonOperationComplete);
            _requestsForJSON.Push(request);
            if (_requestsForJSON.Count == 1)
            {
                RequestsForJSONLoop();
            }
        }
Beispiel #2
0
        void RequestsForResourcesLoop()
        {
            if (_requestsForResources.Count == 0)
            {
                return;
            }
            PictureAdsRequest request = _requestsForResources.Pop();

            if (request != null)
            {
                request.downloadAssetsForPictureAd(request.ad);
            }
        }
Beispiel #3
0
        void RequestsForJSONLoop()
        {
            if (_requestsForJSON.Count == 0)
            {
                return;
            }
            PictureAdsRequest request = _requestsForJSON.Pop();

            if (request != null)
            {
                request.downloadJson();
            }
        }
Beispiel #4
0
        public void downloadResourcesForAd(string network, PictureAdsManager manager, PictureAd ad)
        {
            PictureAdsRequest request = new PictureAdsRequest(network);

            request.setResourcesAvailableDelegate(manager.resourcesAvailableDelegate);
            request.setOperationCompleteDelegate(resourcesOperationComplete);
            request.ad = ad;
            _requestsForResources.Push(request);
            if (_requestsForResources.Count == 1)
            {
                RequestsForResourcesLoop();
            }
        }
 public void downloadResourcesForAd(string network, PictureAdsManager manager, PictureAd ad)
 {
     PictureAdsRequest request = new PictureAdsRequest(network);
     request.setResourcesAvailableDelegate(manager.resourcesAvailableDelegate);
     request.setOperationCompleteDelegate(resourcesOperationComplete);
     request.ad = ad;
     _requestsForResources.Push(request);
     if(_requestsForResources.Count == 1)
         RequestsForResourcesLoop();
 }
 public void downloadJson(string network, PictureAdsManager manager)
 {
     PictureAdsRequest request = new PictureAdsRequest(network);
     request.setJsonAvailableDelegate(manager.jsonAvailableDelegate);
     request.setOperationCompleteDelegate(jsonOperationComplete);
     _requestsForJSON.Push(request);
     if(_requestsForJSON.Count == 1)
         RequestsForJSONLoop();
 }