mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[store] Reduce amount of hardcoded values.
This commit is contained in:
@@ -6,6 +6,7 @@ namespace West.TelegramBot.ContentStore.Service;
|
||||
public abstract class AnimalAsAService : IRandomMediaService
|
||||
{
|
||||
private readonly HttpClient _httpClient;
|
||||
public abstract StoreItem StoreItem { get; }
|
||||
|
||||
protected AnimalAsAService(Uri baseAddress)
|
||||
{
|
||||
@@ -15,6 +16,7 @@ public abstract class AnimalAsAService : IRandomMediaService
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public async Task<RandomMedia> GetRandomMediaAsync()
|
||||
{
|
||||
var resp = await _httpClient.GetAsync("images/search");
|
||||
|
||||
Reference in New Issue
Block a user