ArcGISWindowsPhoneSDK.ClosestFacility.GetAttributeParameterValue C# (CSharp) Метод

GetAttributeParameterValue() приватный Метод

private GetAttributeParameterValue ( string attributeParamSelection ) : AttributeParameter
attributeParamSelection string
Результат AttributeParameter
        private AttributeParameter GetAttributeParameterValue(string attributeParamSelection)
        {
            // See Attribute Parameter Values list at
            // http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/ClosestFacility
            if (attributeParamSelection.Equals("None"))
                return null;

            if (attributeParamSelection.Equals("Other Roads"))
                return new AttributeParameter
                {
                    attributeName = "Time",
                    parameterName = "OtherRoads",
                    value = "5"
                };

            return new AttributeParameter
            {
                attributeName = "Time",
                parameterName = attributeParamSelection,
                value = attributeParamSelection.Replace(" MPH", "")
            };
        }