From b0973dcd31a56bee264b91ecc2730c675e2e004f Mon Sep 17 00:00:00 2001 From: Andriy <30056636+West14@users.noreply.github.com> Date: Tue, 30 Aug 2022 00:48:49 +0300 Subject: [PATCH] [store] add capybara purchase --- modules/ContentStore/Service/CapyApiService.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/ContentStore/Service/CapyApiService.cs diff --git a/modules/ContentStore/Service/CapyApiService.cs b/modules/ContentStore/Service/CapyApiService.cs new file mode 100644 index 0000000..0352250 --- /dev/null +++ b/modules/ContentStore/Service/CapyApiService.cs @@ -0,0 +1,12 @@ +using West.TelegramBot.ContentStore.Model; + +namespace West.TelegramBot.ContentStore.Service; + +public class CapyApiService : IRandomMediaService +{ + public StoreItem StoreItem { get; } = new("capybara", "Капибара", 60, 25); + public async Task GetRandomMediaAsync() + { + return new RandomMedia("https://api.capy.lol/v1/capybara"); + } +} \ No newline at end of file