From 91250af6ffef6d91c395622d89fb9fc6482c0647 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Fri, 18 Oct 2024 18:36:48 -0500 Subject: [PATCH] PartSearch --- .../Browsing/Models/WebPageResponseData.cs | 5 +++++ .../Browsing/Models/WebPageResponseFilter.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/WebPageResponseData.cs b/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/WebPageResponseData.cs index 1d03b0b7..14932118 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/WebPageResponseData.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/WebPageResponseData.cs @@ -7,4 +7,9 @@ public class WebPageResponseData public string ResponseData { get; set; } = null!; public bool ResponseInMemory { get; set; } public DateTime CreatedAt { get; set; } = DateTime.UtcNow; + + public override string ToString() + { + return $"{Url} {ResponseData.Length}"; + } } diff --git a/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/WebPageResponseFilter.cs b/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/WebPageResponseFilter.cs index 935d2282..d9561847 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/WebPageResponseFilter.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/WebPageResponseFilter.cs @@ -13,5 +13,5 @@ public class WebPageResponseFilter /// /// Handle Content-Type: text/x-component /// - public int PartIndex { get; set; } = -1; + public Func? PartSearch { get; set; } = null; }