예제 #1
0
        public static Dictionary <string, LoadingStarted> MapFromJson(Dictionary <string, object> jsonMap)
        {
            Dictionary <string, LoadingStarted> result = new Dictionary <string, LoadingStarted>();

            foreach (var entry in jsonMap)
            {
                LoadingStarted value = CreateFromDictionary(entry.Value as Dictionary <string, object>);
                result.Add(entry.Key, value);
            }
            return(result);
        }
예제 #2
0
        public static LoadingStarted CreateFromDictionary(Dictionary<string, object> jsonMap)
        {
            try
            {
                if (jsonMap == null)
                {
                    return null;
                }

                var request = new LoadingStarted();

                if(jsonMap.ContainsKey("booleanValue"))
                {
                    request.BooleanValue = (bool) jsonMap["booleanValue"];
                }

                return request;
            }
            catch (System.ApplicationException ex)
            {
                throw new AmazonException("Error encountered while creating Object from dicionary", ex);
            }
        }
예제 #3
0
        public static LoadingStarted CreateFromDictionary(Dictionary <string, object> jsonMap)
        {
            try
            {
                if (jsonMap == null)
                {
                    return(null);
                }

                var request = new LoadingStarted();


                if (jsonMap.ContainsKey("booleanValue"))
                {
                    request.BooleanValue = (bool)jsonMap["booleanValue"];
                }

                return(request);
            }
            catch (System.ApplicationException ex)
            {
                throw new AmazonException("Error encountered while creating Object from dicionary", ex);
            }
        }
예제 #4
0
 public override LoadingStarted LoadInterstitialAd()
 {
     Start();
     return(LoadingStarted.CreateFromJson(LoadInterstitialAdJson("{}")));
 }
예제 #5
0
 public override LoadingStarted LoadAndShowFloatingBannerAd(Ad ad)
 {
     Start();
     return(LoadingStarted.CreateFromJson(LoadAndShowFloatingBannerAdJson(ad.ToJson())));
 }