Move BlackPipeQueryModifier
This commit is contained in:
parent
b369384931
commit
aa330461c6
14
RhSolutions.Api/Services/BlackPipeQueryModifier.cs
Normal file
14
RhSolutions.Api/Services/BlackPipeQueryModifier.cs
Normal 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"
|
||||
};
|
||||
}
|
||||
}
|
@ -4,18 +4,6 @@ using Microsoft.AspNetCore.Http.Extensions;
|
||||
|
||||
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
|
||||
{
|
||||
protected virtual string diameterPattern { get; } = @"16|20|25|32|40|50|63";
|
||||
|
Loading…
Reference in New Issue
Block a user