change: .wikia slightly changed and refactored

This commit is contained in:
Kwoth
2024-07-31 10:55:34 +00:00
parent 6fefce4c4d
commit 8f181eed85
5 changed files with 80 additions and 42 deletions

View File

@@ -0,0 +1,9 @@
namespace NadekoBot.Modules.Searches.Services;
public enum ErrorType
{
InvalidInput,
NotFound,
Unknown,
ApiKeyMissing
}

View File

@@ -0,0 +1,7 @@
namespace NadekoBot.Modules.Searches.Services;
public sealed class WikiaResponse
{
public required string Url { get; init; }
public required string Title { get; init; }
}

View File

@@ -0,0 +1,11 @@
namespace NadekoBot.Modules.Searches.Services;
public class WikipediaReply
{
public class Info
{
public required string Url { get; init; }
}
public required Info Data { get; init; }
}