mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 18:28:27 -04:00
change: .wikia slightly changed and refactored
This commit is contained in:
9
src/NadekoBot/Modules/Searches/_common/ErrorType.cs
Normal file
9
src/NadekoBot/Modules/Searches/_common/ErrorType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace NadekoBot.Modules.Searches.Services;
|
||||
|
||||
public enum ErrorType
|
||||
{
|
||||
InvalidInput,
|
||||
NotFound,
|
||||
Unknown,
|
||||
ApiKeyMissing
|
||||
}
|
7
src/NadekoBot/Modules/Searches/_common/WikiaResponse.cs
Normal file
7
src/NadekoBot/Modules/Searches/_common/WikiaResponse.cs
Normal 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; }
|
||||
}
|
11
src/NadekoBot/Modules/Searches/_common/WikipediaReply.cs
Normal file
11
src/NadekoBot/Modules/Searches/_common/WikipediaReply.cs
Normal 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; }
|
||||
}
|
Reference in New Issue
Block a user