예제 #1
0
        private static IDictionary <string, string> ConvertListDomains(ListDomainsRequest request)
        {
            IDictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["Action"] = "ListDomains";
            if (request.IsSetMaxNumberOfDomains())
            {
                dictionary["MaxNumberOfDomains"] = request.MaxNumberOfDomains.ToString();
            }
            if (request.IsSetNextToken())
            {
                dictionary["NextToken"] = request.NextToken;
            }
            return(dictionary);
        }
예제 #2
0
        /**
         * Convert ListDomainsRequest to name value pairs
         */
        private IDictionary <String, String> ConvertListDomains(ListDomainsRequest request)
        {
            IDictionary <String, String> parameters = new Dictionary <String, String>();

            parameters.Add("Action", "ListDomains");
            if (request.IsSetMaxNumberOfDomains())
            {
                parameters.Add("MaxNumberOfDomains", request.MaxNumberOfDomains + "");
            }
            if (request.IsSetNextToken())
            {
                parameters.Add("NextToken", request.NextToken);
            }

            return(parameters);
        }
예제 #3
0
        /**
         * Convert ListDomainsRequest to name value pairs
         */
        private static IDictionary <string, string> ConvertListDomains(ListDomainsRequest request)
        {
            IDictionary <string, string> parameters = new Dictionary <string, string>();

            parameters["Action"] = "ListDomains";
            if (request.IsSetMaxNumberOfDomains())
            {
                parameters["MaxNumberOfDomains"] = request.MaxNumberOfDomains.ToString(CultureInfo.InvariantCulture);
            }
            if (request.IsSetNextToken())
            {
                parameters["NextToken"] = request.NextToken;
            }

            return(parameters);
        }