0
0

Move BlackPipeQueryModifier

This commit is contained in:
Serghei Cebotari 2023-09-29 16:26:08 +03:00
parent b369384931
commit aa330461c6
2 changed files with 14 additions and 12 deletions

View File

@ -0,0 +1,14 @@
namespace RhSolutions.Api.Services
{
public class BlackPipeQueryModifier : FlexPipeQueryModifier
{
protected override string diameterPattern => @"16|20|25";
protected override string pipeName => "Black";
protected override Dictionary<string, string> diameterNames => new()
{
["16"] = "16х2,2",
["20"] = "20х2,8",
["25"] = "25х3,5"
};
}
}

View File

@ -4,18 +4,6 @@ using Microsoft.AspNetCore.Http.Extensions;
namespace RhSolutions.Api.Services namespace RhSolutions.Api.Services
{ {
public class BlackPipeQueryModifier : FlexPipeQueryModifier
{
protected override string diameterPattern => @"16|20|25";
protected override string pipeName => "Black";
protected override Dictionary<string, string> diameterNames => new()
{
["16"] = "16х2,2",
["20"] = "20х2,8",
["25"] = "25х3,5"
};
}
public class FlexPipeQueryModifier : IProductQueryModifier public class FlexPipeQueryModifier : IProductQueryModifier
{ {
protected virtual string diameterPattern { get; } = @"16|20|25|32|40|50|63"; protected virtual string diameterPattern { get; } = @"16|20|25|32|40|50|63";