Renamed everything from MultiShop to Props.
This commit is contained in:
8
Props-Modules/Props.Shop/Framework/Currency.cs
Normal file
8
Props-Modules/Props.Shop/Framework/Currency.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Props.Shop.Framework
|
||||
{
|
||||
public enum Currency
|
||||
{
|
||||
CAD,
|
||||
USD
|
||||
}
|
||||
}
|
||||
19
Props-Modules/Props.Shop/Framework/IShop.cs
Normal file
19
Props-Modules/Props.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 Props.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();
|
||||
}
|
||||
}
|
||||
16
Props-Modules/Props.Shop/Framework/ProductListing.cs
Normal file
16
Props-Modules/Props.Shop/Framework/ProductListing.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Props.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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user