Reorganized folder structure.
This commit is contained in:
8
MultiShop-Modules/MultiShop.Shop/Framework/Currency.cs
Normal file
8
MultiShop-Modules/MultiShop.Shop/Framework/Currency.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace MultiShop.Shop.Framework
|
||||
{
|
||||
public enum Currency
|
||||
{
|
||||
CAD,
|
||||
USD
|
||||
}
|
||||
}
|
19
MultiShop-Modules/MultiShop.Shop/Framework/IShop.cs
Normal file
19
MultiShop-Modules/MultiShop.Shop/Framework/IShop.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MultiShop.Shop.Framework
|
||||
{
|
||||
public interface IShop : IAsyncEnumerable<ProductListing>, IDisposable
|
||||
{
|
||||
string ShopName { get; }
|
||||
string ShopDescription { get; }
|
||||
string ShopModuleAuthor { get; }
|
||||
|
||||
public void SetupSession(string query, Currency currency);
|
||||
|
||||
void Initialize();
|
||||
}
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
16
MultiShop-Modules/MultiShop.Shop/Framework/ProductListing.cs
Normal file
16
MultiShop-Modules/MultiShop.Shop/Framework/ProductListing.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace MultiShop.Shop.Framework
|
||||
{
|
||||
public struct ProductListing
|
||||
{
|
||||
public float LowerPrice { get; set; }
|
||||
public float UpperPrice { get; set; }
|
||||
public float? Shipping { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string URL { get; set; }
|
||||
public string ImageURL { get; set; }
|
||||
public float? Rating { get; set; }
|
||||
public int? PurchaseCount { get; set; }
|
||||
public int? ReviewCount { get; set; }
|
||||
public bool ConvertedPrices { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user