示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
            }
        }
示例#4
0
 public abstract RequestOutput GetPurchaseUpdates(ResetInput resetInput);
示例#5
0
 public override RequestOutput GetPurchaseUpdates(ResetInput resetInput)
 {
     Start();
     return(RequestOutput.CreateFromJson(GetPurchaseUpdatesJson(resetInput.ToJson())));
 }
示例#6
0
 public abstract RequestOutput GetPurchaseUpdates(ResetInput resetInput);