示例#1
0
        public static Dictionary <string, AdShown> MapFromJson(Dictionary <string, object> jsonMap)
        {
            Dictionary <string, AdShown> result = new Dictionary <string, AdShown>();

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

                var request = new AdShown();

                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 AdShown CreateFromDictionary(Dictionary <string, object> jsonMap)
        {
            try
            {
                if (jsonMap == null)
                {
                    return(null);
                }

                var request = new AdShown();


                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 AdShown ShowInterstitialAd()
 {
     Start();
     return(AdShown.CreateFromJson(ShowInterstitialAdJson("{}")));
 }