Пример #1
0
        public static Dictionary <string, IsReady> MapFromJson(Dictionary <string, object> jsonMap)
        {
            Dictionary <string, IsReady> result = new Dictionary <string, IsReady>();

            foreach (var entry in jsonMap)
            {
                IsReady value = CreateFromDictionary(entry.Value as Dictionary <string, object>);
                result.Add(entry.Key, value);
            }
            return(result);
        }
Пример #2
0
        public static IsReady CreateFromDictionary(Dictionary<string, object> jsonMap)
        {
            try
            {
                if (jsonMap == null)
                {
                    return null;
                }

                var request = new IsReady();

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

                var request = new IsReady();


                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 IsReady IsInterstitialAdReady()
 {
     Start();
     return(IsReady.CreateFromJson(IsInterstitialAdReadyJson("{}")));
 }