public static Dictionary <string, ShouldEnable> MapFromJson(Dictionary <string, object> jsonMap) { Dictionary <string, ShouldEnable> result = new Dictionary <string, ShouldEnable>(); foreach (var entry in jsonMap) { ShouldEnable value = CreateFromDictionary(entry.Value as Dictionary <string, object>); result.Add(entry.Key, value); } return(result); }
public static ShouldEnable CreateFromDictionary(Dictionary<string, object> jsonMap) { try { if (jsonMap == null) { return null; } var request = new ShouldEnable(); 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); } }
public static ShouldEnable CreateFromDictionary(Dictionary <string, object> jsonMap) { try { if (jsonMap == null) { return(null); } var request = new ShouldEnable(); 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); } }
public override void EnableGeoLocation(ShouldEnable shouldEnable) { Start(); Jsonable.CheckForErrors(Json.Deserialize(EnableGeoLocationJson(shouldEnable.ToJson())) as Dictionary<string, object>); }
public abstract void EnableGeoLocation(ShouldEnable shouldEnable);
public abstract void EnableTesting(ShouldEnable shouldEnable);
public abstract void EnableLogging(ShouldEnable shouldEnable);
public abstract void EnableGeoLocation(ShouldEnable shouldEnable);
public abstract void EnableTesting(ShouldEnable shouldEnable);
public abstract void EnableLogging(ShouldEnable shouldEnable);
public override void EnableGeoLocation(ShouldEnable shouldEnable) { Start(); Jsonable.CheckForErrors(Json.Deserialize(EnableGeoLocationJson(shouldEnable.ToJson())) as Dictionary <string, object>); }