Reorganized folder structure.

This commit is contained in:
2021-07-10 00:24:29 -05:00
parent 4e12a4b7fc
commit e43d1294c4
21 changed files with 5 additions and 57 deletions

View File

@@ -0,0 +1,8 @@
namespace MultiShop.Shop.Framework
{
public enum Currency
{
CAD,
USD
}
}

View 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();
}
}

View File

@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>

View 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; }
}
}