Ejemplo n.º 1
0
        /// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public override List <KeyValuePair <string, string> > GetParams()
        {
            var p = new List <KeyValuePair <string, string> >();

            if (IsoCode != null)
            {
                p.Add(new KeyValuePair <string, string>("IsoCode", IsoCode.ToString()));
            }

            if (Continent != null)
            {
                p.Add(new KeyValuePair <string, string>("Continent", Continent));
            }

            if (CountryCode != null)
            {
                p.Add(new KeyValuePair <string, string>("CountryCode", CountryCode));
            }

            if (LowRiskNumbersEnabled != null)
            {
                p.Add(new KeyValuePair <string, string>("LowRiskNumbersEnabled", LowRiskNumbersEnabled.Value.ToString().ToLower()));
            }

            if (HighRiskSpecialNumbersEnabled != null)
            {
                p.Add(new KeyValuePair <string, string>("HighRiskSpecialNumbersEnabled", HighRiskSpecialNumbersEnabled.Value.ToString().ToLower()));
            }

            if (HighRiskTollfraudNumbersEnabled != null)
            {
                p.Add(new KeyValuePair <string, string>("HighRiskTollfraudNumbersEnabled", HighRiskTollfraudNumbersEnabled.Value.ToString().ToLower()));
            }

            if (PageSize != null)
            {
                p.Add(new KeyValuePair <string, string>("PageSize", PageSize.ToString()));
            }

            return(p);
        }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(IsoCode.ToString());
 }