2021-04-23 20:11:49 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2021-05-09 06:49:37 +00:00
|
|
|
using System.Net.Http;
|
|
|
|
using System.Threading;
|
2021-04-23 20:11:49 +00:00
|
|
|
using System.Threading.Tasks;
|
2021-08-07 22:20:46 +00:00
|
|
|
using Microsoft.Extensions.Logging;
|
2021-04-23 20:11:49 +00:00
|
|
|
|
2021-07-13 05:35:31 +00:00
|
|
|
namespace Props.Shop.Framework
|
2021-04-23 20:11:49 +00:00
|
|
|
{
|
2021-08-12 04:54:52 +00:00
|
|
|
public interface IShop : IAsyncDisposable
|
2021-04-23 20:11:49 +00:00
|
|
|
{
|
|
|
|
string ShopName { get; }
|
|
|
|
string ShopDescription { get; }
|
|
|
|
string ShopModuleAuthor { get; }
|
2021-05-09 06:49:37 +00:00
|
|
|
|
2021-08-07 22:20:46 +00:00
|
|
|
public IAsyncEnumerable<ProductListing> Search(string query, Filters filters);
|
2021-05-09 06:49:37 +00:00
|
|
|
|
2021-08-09 18:32:16 +00:00
|
|
|
public Task<ProductListing> GetProductFromIdentifier(string identifier);
|
2021-08-07 22:20:46 +00:00
|
|
|
|
2021-08-12 04:54:52 +00:00
|
|
|
ValueTask Initialize(string workspaceDir, ILoggerFactory loggerFactory);
|
2021-07-20 22:51:43 +00:00
|
|
|
public SupportedFeatures SupportedFeatures { get; }
|
2021-04-23 20:11:49 +00:00
|
|
|
}
|
|
|
|
}
|