AuthorBuddy/Models/WikipediaResult.cs

19 lines
563 B
C#
Raw Normal View History

2026-05-20 06:12:54 +02:00
namespace AuthorBuddy.Web.Models;
public class WikipediaResult
{
public string Title { get; set; } = string.Empty;
public string Snippet { get; set; } = string.Empty;
public string Url { get; set; } = string.Empty;
public string Language { get; set; } = "de";
public string? Extract { get; set; }
}
public class WikipediaSearchRequest
{
public string Query { get; set; } = string.Empty;
public bool SearchGerman { get; set; } = true;
public bool SearchEnglish { get; set; } = true;
public int MaxResults { get; set; } = 3;
}