private static IDictionary <string, string> ConvertGetQueueAttributes(GetQueueAttributesRequest request) { IDictionary <string, string> dictionary = new Dictionary <string, string>(); dictionary["Action"] = "GetQueueAttributes"; if (request.IsSetQueueUrl()) { dictionary["QueueUrl"] = request.QueueUrl; } List <string> attributeName = request.AttributeName; int num = 1; foreach (string str in attributeName) { dictionary["AttributeName" + "." + num] = str; num++; } return(dictionary); }
/** * Convert GetQueueAttributesRequest to name value pairs */ private IDictionary <String, String> ConvertGetQueueAttributes(GetQueueAttributesRequest request) { IDictionary <String, String> parameters = new Dictionary <String, String>(); parameters.Add("Action", "GetQueueAttributes"); if (request.IsSetQueueUrl()) { parameters.Add("QueueUrl", request.QueueUrl); } List <String> getQueueAttributesRequestAttributeNameList = request.AttributeName; int getQueueAttributesRequestAttributeNameListIndex = 1; foreach (String getQueueAttributesRequestAttributeName in getQueueAttributesRequestAttributeNameList) { parameters.Add("AttributeName" + "." + getQueueAttributesRequestAttributeNameListIndex, getQueueAttributesRequestAttributeName); getQueueAttributesRequestAttributeNameListIndex++; } return(parameters); }
/** * Convert GetQueueAttributesRequest to name value pairs */ private static IDictionary <string, string> ConvertGetQueueAttributes(GetQueueAttributesRequest request) { IDictionary <string, string> parameters = new Dictionary <string, string>(); parameters["Action"] = "GetQueueAttributes"; if (request.IsSetQueueUrl()) { parameters["QueueUrl"] = request.QueueUrl; } List <string> getQueueAttributesRequestAttributeNameList = request.AttributeName; int getQueueAttributesRequestAttributeNameListIndex = 1; foreach (string getQueueAttributesRequestAttributeName in getQueueAttributesRequestAttributeNameList) { parameters[String.Concat("AttributeName", ".", getQueueAttributesRequestAttributeNameListIndex)] = getQueueAttributesRequestAttributeName; getQueueAttributesRequestAttributeNameListIndex++; } return(parameters); }