public static Dictionary <string, ApplicationKey> MapFromJson(Dictionary <string, object> jsonMap) { Dictionary <string, ApplicationKey> result = new Dictionary <string, ApplicationKey>(); foreach (var entry in jsonMap) { ApplicationKey value = CreateFromDictionary(entry.Value as Dictionary <string, object>); result.Add(entry.Key, value); } return(result); }
public static ApplicationKey CreateFromDictionary(Dictionary<string, object> jsonMap) { try { if (jsonMap == null) { return null; } var request = new ApplicationKey(); if(jsonMap.ContainsKey("stringValue")) { request.StringValue = (string) jsonMap["stringValue"]; } return request; } catch (System.ApplicationException ex) { throw new AmazonException("Error encountered while creating Object from dicionary", ex); } }
public static ApplicationKey CreateFromDictionary(Dictionary <string, object> jsonMap) { try { if (jsonMap == null) { return(null); } var request = new ApplicationKey(); if (jsonMap.ContainsKey("stringValue")) { request.StringValue = (string)jsonMap["stringValue"]; } return(request); } catch (System.ApplicationException ex) { throw new AmazonException("Error encountered while creating Object from dicionary", ex); } }
public override void SetApplicationKey(ApplicationKey applicationKey) { Start(); Jsonable.CheckForErrors(Json.Deserialize(SetApplicationKeyJson(applicationKey.ToJson())) as Dictionary<string, object>); }
// AmazonMobileAds API public abstract void SetApplicationKey(ApplicationKey applicationKey);
public override void SetApplicationKey(ApplicationKey applicationKey) { Start(); Jsonable.CheckForErrors(Json.Deserialize(SetApplicationKeyJson(applicationKey.ToJson())) as Dictionary <string, object>); }