Ejemplo n.º 1
0
        static IDictionary <string, string> ConvertSetQueueAttributes(SetQueueAttributes request)
        {
            var parameters = new Dictionary <string, string> {
                { "Action", "SetQueueAttributes" }
            };

            if (request.IsSetQueueName())
            {
                parameters.Add("QueueName", request.QueueName);
            }
            var attributeList = request.Attribute;

            foreach (var attribute in attributeList)
            {
                if (attribute.IsSetName())
                {
                    var key = "Attribute" + "." + (attributeList.IndexOf(attribute) + 1) + "." + "Name";
                    parameters.Add(key, attribute.Name);
                }
                if (!attribute.IsSetValue())
                {
                    continue;
                }
                var value = "Attribute" + "." + (attributeList.IndexOf(attribute) + 1) + "." + "Value";
                parameters.Add(value, attribute.Value);
            }

            return(parameters);
        }
Ejemplo n.º 2
0
 public SetQueueAttributesResponse SetQueueAttributes(SetQueueAttributes request)
 {
     return(Invoke <SetQueueAttributesResponse>(ConvertSetQueueAttributes(request)));
 }