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