From 1136d5e94ae33c3c3c6a4df88b1b326386feca7d Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 7 Dec 2021 08:34:48 +0300 Subject: [PATCH] Rename ResponseOrder default value. Move switch NoSettings to default. --- Source/Assistant/HttpClientUtil.cs | 4 +--- Source/ExcelDNA/AddIn.cs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Assistant/HttpClientUtil.cs b/Source/Assistant/HttpClientUtil.cs index 6277770..6eb0b69 100644 --- a/Source/Assistant/HttpClientUtil.cs +++ b/Source/Assistant/HttpClientUtil.cs @@ -51,11 +51,9 @@ namespace Rehau.Sku.Assist case ResponseOrder.Series: baseUri.Query = "dir=asc&order=sch_product_series&q=" + cleanedRequest; break; - case ResponseOrder.NoSettings: + default: baseUri.Query = "q=" + cleanedRequest; break; - default: - throw new ArgumentException(); } return baseUri.Uri; diff --git a/Source/ExcelDNA/AddIn.cs b/Source/ExcelDNA/AddIn.cs index b3fb9c1..77a2b34 100644 --- a/Source/ExcelDNA/AddIn.cs +++ b/Source/ExcelDNA/AddIn.cs @@ -7,7 +7,7 @@ namespace Rehau.Sku.Assist { public enum ResponseOrder { - NoSettings, + Default, Relevance, Name, Price,