18 lines
563 B
C#
18 lines
563 B
C#
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;
|
|
}
|