コード例 #1
0
        public override string getParameterString()
        {
            StringBuilder builder = new StringBuilder(base.getParameterString());

            if (CQuery != null)
                builder.Append2("&cquery=", HttpUtility.UrlEncode(CQuery));

            return builder.ToString();
        }
コード例 #2
0
        public override string getParameterString()
        {
            StringBuilder builder = new StringBuilder(base.getParameterString());

            if (SourceTextMode != SourceTextModes.None)
            {
                if (SourceTextMode == SourceTextModes.CleanedOrRaw)
                    builder.Append("&sourceText=cleaned_or_raw");
                else if (SourceTextMode == SourceTextModes.Cquery)
                    builder.Append("&sourceText=cquery");
                else if (SourceTextMode == SourceTextModes.Cquery)
                    builder.Append("&sourceText=xpath");
            }

            if (CQuery != null)
                builder.Append2("&cquery=", HttpUtility.UrlEncode(CQuery));
            if (XPath != null)
                builder.Append2("&xpath=", HttpUtility.UrlEncode(XPath));
            if (BaseUrl != null)
                builder.Append2("&baseUrl=", HttpUtility.UrlEncode(BaseUrl));

            return builder.ToString();
        }