Completed AliExpress interfacing module.
Began work on assembly loading.
This commit is contained in:
8
src/MultiShop.ShopFramework/Currency.cs
Normal file
8
src/MultiShop.ShopFramework/Currency.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace MultiShop.ShopFramework
|
||||
{
|
||||
public enum Currency
|
||||
{
|
||||
CAD,
|
||||
USD
|
||||
}
|
||||
}
|
16
src/MultiShop.ShopFramework/IShop.cs
Normal file
16
src/MultiShop.ShopFramework/IShop.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MultiShop.ShopFramework
|
||||
{
|
||||
public interface IShop : IDisposable
|
||||
{
|
||||
string ShopName { get; }
|
||||
string ShopDescription { get; }
|
||||
string ShopModuleAuthor { get; }
|
||||
|
||||
void Initiate(Currency currency);
|
||||
Task<IEnumerable<ProductListing>> Search(string query, int maxPage = -1);
|
||||
}
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
15
src/MultiShop.ShopFramework/ProductListing.cs
Normal file
15
src/MultiShop.ShopFramework/ProductListing.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace MultiShop.ShopFramework
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user