Made progress on implementing some shops.
Performed some folder restructuring as well.
This commit is contained in:
51
Props-Modules/Props.Shop/Ebay/Actions/SearchRequest.cs
Normal file
51
Props-Modules/Props.Shop/Ebay/Actions/SearchRequest.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Props.Shop.Framework;
|
||||
|
||||
namespace Props.Shop.Ebay.Actions
|
||||
{
|
||||
public class SearchRequest : IAsyncEnumerable<ProductListing>
|
||||
{
|
||||
private HttpClient http;
|
||||
private string[] query;
|
||||
public SearchRequest(HttpClient http, string[] query)
|
||||
{
|
||||
this.http = http ?? throw new ArgumentNullException("http");
|
||||
this.query = query ?? throw new ArgumentNullException("query");
|
||||
}
|
||||
|
||||
public IAsyncEnumerator<ProductListing> GetAsyncEnumerator(CancellationToken cancellationToken = default)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public class Enumerator : IAsyncEnumerator<ProductListing>
|
||||
{
|
||||
private HttpClient http;
|
||||
private string[] query;
|
||||
|
||||
public Enumerator(HttpClient http, string[] query)
|
||||
{
|
||||
this.http = http;
|
||||
this.query = query;
|
||||
}
|
||||
|
||||
public ProductListing Current { get; private set; }
|
||||
|
||||
public ValueTask<bool> MoveNextAsync()
|
||||
{
|
||||
// TODO: Implement this.
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
public ValueTask DisposeAsync()
|
||||
{
|
||||
// TODO: Implement this.
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user