pdftract/pdftract-dotnet/src/Pdftract/Models/Match.cs
jedarden 0932cf1fdc feat(sdks): vendor dotnet/java/node SDKs into the monorepo
Consolidate the .NET, Java, and Node SDKs into root-level pdftract-<lang>/
directories (matching the already-tracked pdftract-go/), per the decision to
make the generated SDKs first-class monorepo members rather than separate repos.
Content imported from the standalone ~/pdftract-<lang> repos (build artifacts
excluded). Removes the broken empty-git nested clones that were polluting the
working tree.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 07:20:19 -04:00

33 lines
751 B
C#

using System.Text.Json.Serialization;
namespace Pdftract.Models;
/// <summary>
/// Represents a search match result.
/// </summary>
public record Match
{
[JsonPropertyName("text")]
public required string Text { get; init; }
[JsonPropertyName("page")]
public required int Page { get; init; }
[JsonPropertyName("bbox")]
public required double[] Bbox { get; init; }
[JsonPropertyName("context")]
public required MatchContext Context { get; init; }
}
/// <summary>
/// Provides surrounding text for a match.
/// </summary>
public record MatchContext
{
[JsonPropertyName("before")]
public required string Before { get; init; }
[JsonPropertyName("after")]
public required string After { get; init; }
}