/// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public List <KeyValuePair <string, string> > GetParams()
        {
            var p = new List <KeyValuePair <string, string> >();

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

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

            return(p);
        }
예제 #2
0
        /// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public List <KeyValuePair <string, string> > GetParams()
        {
            var p = new List <KeyValuePair <string, string> >();

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

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

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

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

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

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

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

            return(p);
        }