Exemple #1
0
 public SolveResult(bool success, string layer, string failReason, DetectResult detectResult, [Optional] SessionCookies cookies, [Optional] string userAgent, [Optional] HttpResponseMessage response)
 {
     Success         = success;
     FailReason      = !string.IsNullOrEmpty(failReason) ? $"Cloudflare [{layer}]: {failReason}" : null;
     DetectResult    = detectResult;
     Cookies         = cookies;
     UserAgent       = userAgent;
     NewDetectResult = null;
     Response        = response;
 }
Exemple #2
0
 public SolveResult(bool success, string failReason, DetectResult detectResult, [Optional] SessionCookies cookies, [Optional] string userAgent, [Optional] HttpResponseMessage response)
 {
     Success         = success;
     FailReason      = failReason;
     DetectResult    = detectResult;
     Cookies         = cookies;
     UserAgent       = userAgent;
     NewDetectResult = null;
     Response        = response;
 }
Exemple #3
0
        public SolveResult(bool success, string failReason, DetectResult detectResult, [Optional] HttpResponseMessage response)
        {
            Success = success;

            FailReason = failReason;

            DetectResult = detectResult;

            NewDetectResult = null;

            Response = response;
        }