mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[store] categorize store services
This commit is contained in:
@@ -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)
|
||||
{}
|
||||
}
|
||||
+1
-1
@@ -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
|
||||
{
|
||||
+3
-2
@@ -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);
|
||||
}
|
||||
+2
-3
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
namespace West.TelegramBot.ContentStore.Service;
|
||||
namespace West.TelegramBot.ContentStore.Service.SomeRandomApi;
|
||||
|
||||
public class KoalaService : SomeRandomApiAbstractService
|
||||
{
|
||||
@@ -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)
|
||||
{ }
|
||||
}
|
||||
+1
-1
@@ -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
|
||||
{
|
||||
Reference in New Issue
Block a user