[store] categorize store services

This commit is contained in:
Andriy
2023-07-28 20:04:05 +03:00
parent d2e564cec6
commit 462f3c9836
17 changed files with 52 additions and 52 deletions
@@ -1,7 +0,0 @@
namespace West.TelegramBot.ContentStore.Service;
public class BirdService : SomeRandomApiAbstractService
{
public BirdService(): base("bird", "Птица", 40, 165)
{}
}
@@ -1,7 +0,0 @@
namespace West.TelegramBot.ContentStore.Service;
public class FoxService : SomeRandomApiAbstractService
{
public FoxService(): base("fox", "Лисица", 40, 170)
{}
}
@@ -1,7 +0,0 @@
namespace West.TelegramBot.ContentStore.Service;
public class KangarooService : SomeRandomApiAbstractService
{
public KangarooService(): base("kangaroo", "Кенгуру", 40, 175)
{}
}
@@ -6,7 +6,7 @@ using Telegram.Bot.Types;
using West.TelegramBot.ContentStore.Model;
using West.TelegramBot.ContentStore.Option;
namespace West.TelegramBot.ContentStore.Service;
namespace West.TelegramBot.ContentStore.Service.Kitties;
public abstract class AbstractKittiesService : IRandomMediaService
{
@@ -15,7 +15,7 @@ public abstract class AbstractKittiesService : IRandomMediaService
public abstract StoreItem StoreItem { get; }
private readonly HttpClient _httpClient;
protected AbstractKittiesService(IConfiguration configuration, AllowNsfw allowNsfw)
{
var section = configuration.GetSection("KittiesService");
@@ -3,7 +3,7 @@ using Microsoft.Extensions.Configuration;
using West.TelegramBot.ContentStore.Model;
using West.TelegramBot.ContentStore.Option;
namespace West.TelegramBot.ContentStore.Service;
namespace West.TelegramBot.ContentStore.Service.Kitties;
public class GayKittiesService : AbstractKittiesService
{
@@ -12,4 +12,5 @@ public class GayKittiesService : AbstractKittiesService
}
protected override string VideoType => "gay";
public override StoreItem StoreItem { get; } = new("kitties_gay", "Прон (не геи)", 40, 110);}
public override StoreItem StoreItem { get; } = new("kitties_gay", "Прон (не геи)", 40, 110);
}
@@ -1,9 +1,8 @@
using Kruzya.TelegramBot.Core.Data;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration;
using West.TelegramBot.ContentStore.Model;
using West.TelegramBot.ContentStore.Option;
namespace West.TelegramBot.ContentStore.Service;
namespace West.TelegramBot.ContentStore.Service.Kitties;
public class StraightKittiesService : AbstractKittiesService
{
@@ -1,7 +0,0 @@
namespace West.TelegramBot.ContentStore.Service;
public class PandaService : SomeRandomApiAbstractService
{
public PandaService(): base("panda", "Панда", 40, 160)
{}
}
@@ -1,7 +0,0 @@
namespace West.TelegramBot.ContentStore.Service;
public class RaccoonService : SomeRandomApiAbstractService
{
public RaccoonService(): base("raccoon", "Енот", 40, 160)
{}
}
@@ -1,7 +0,0 @@
namespace West.TelegramBot.ContentStore.Service;
public class RedPandaService : SomeRandomApiAbstractService
{
public RedPandaService(): base("red_panda", "Красная панда", 40, 150)
{}
}
@@ -0,0 +1,7 @@
namespace West.TelegramBot.ContentStore.Service.SomeRandomApi;
public class BirdService : SomeRandomApiAbstractService
{
public BirdService() : base("bird", "Птица", 40, 165)
{ }
}
@@ -0,0 +1,7 @@
namespace West.TelegramBot.ContentStore.Service.SomeRandomApi;
public class FoxService : SomeRandomApiAbstractService
{
public FoxService() : base("fox", "Лисица", 40, 170)
{ }
}
@@ -0,0 +1,7 @@
namespace West.TelegramBot.ContentStore.Service.SomeRandomApi;
public class KangarooService : SomeRandomApiAbstractService
{
public KangarooService() : base("kangaroo", "Кенгуру", 40, 175)
{ }
}
@@ -1,7 +1,7 @@
namespace West.TelegramBot.ContentStore.Service;
namespace West.TelegramBot.ContentStore.Service.SomeRandomApi;
public class KoalaService : SomeRandomApiAbstractService
{
public KoalaService() : base("koala", "Коала", 40, 180)
{}
{ }
}
@@ -0,0 +1,7 @@
namespace West.TelegramBot.ContentStore.Service.SomeRandomApi;
public class PandaService : SomeRandomApiAbstractService
{
public PandaService() : base("panda", "Панда", 40, 160)
{ }
}
@@ -0,0 +1,7 @@
namespace West.TelegramBot.ContentStore.Service.SomeRandomApi;
public class RaccoonService : SomeRandomApiAbstractService
{
public RaccoonService() : base("raccoon", "Енот", 40, 160)
{ }
}
@@ -0,0 +1,7 @@
namespace West.TelegramBot.ContentStore.Service.SomeRandomApi;
public class RedPandaService : SomeRandomApiAbstractService
{
public RedPandaService() : base("red_panda", "Красная панда", 40, 150)
{ }
}
@@ -2,7 +2,7 @@ using Newtonsoft.Json;
using Telegram.Bot.Types;
using West.TelegramBot.ContentStore.Model;
namespace West.TelegramBot.ContentStore.Service;
namespace West.TelegramBot.ContentStore.Service.SomeRandomApi;
public abstract class SomeRandomApiAbstractService : IRandomMediaService
{