示例#1
0
        /// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public override List <KeyValuePair <string, string> > GetParams()
        {
            var p = new List <KeyValuePair <string, string> >();

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

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

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

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

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

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

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

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

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

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

            return(p);
        }