From 54fc3320e7d64d7903b4d091fe0d5c15df01fd78 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Sun, 26 Dec 2021 18:22:32 +0300 Subject: Move to /src --- src/Assistant/SkuAssist.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/Assistant/SkuAssist.cs (limited to 'src/Assistant/SkuAssist.cs') diff --git a/src/Assistant/SkuAssist.cs b/src/Assistant/SkuAssist.cs new file mode 100644 index 0000000..6c68288 --- /dev/null +++ b/src/Assistant/SkuAssist.cs @@ -0,0 +1,22 @@ +using System.Threading.Tasks; + +namespace RehauSku.Assistant +{ + public enum ProductField + { + Name, + Id, + Price + } + + static class SkuAssist + { + public static async Task GetProductAsync(string request) + { + var content = await HttpClientUtil.GetContentByRequest(request); + var document = await ParseUtil.ContentToDocAsync(content); + + return ParseUtil.GetProduct(document); + } + } +} \ No newline at end of file -- cgit v1.2.3