public static Dictionary <string, ResetInput> MapFromJson(Dictionary <string, object> jsonMap) { Dictionary <string, ResetInput> result = new Dictionary <string, ResetInput>(); foreach (var entry in jsonMap) { ResetInput value = CreateFromDictionary(entry.Value as Dictionary <string, object>); result.Add(entry.Key, value); } return(result); }
public static ResetInput CreateFromDictionary(Dictionary<string, object> jsonMap) { try { if (jsonMap == null) { return null; } var request = new ResetInput(); if(jsonMap.ContainsKey("reset")) { request.Reset = (bool) jsonMap["reset"]; } return request; } catch (System.ApplicationException ex) { throw new AmazonException("Error encountered while creating Object from dicionary", ex); } }
public static ResetInput CreateFromDictionary(Dictionary <string, object> jsonMap) { try { if (jsonMap == null) { return(null); } var request = new ResetInput(); if (jsonMap.ContainsKey("reset")) { request.Reset = (bool)jsonMap["reset"]; } return(request); } catch (System.ApplicationException ex) { throw new AmazonException("Error encountered while creating Object from dicionary", ex); } }
public abstract RequestOutput GetPurchaseUpdates(ResetInput resetInput);
public override RequestOutput GetPurchaseUpdates(ResetInput resetInput) { Start(); return(RequestOutput.CreateFromJson(GetPurchaseUpdatesJson(resetInput.ToJson()))); }