2023-10-01 22:15:01 +03:00
|
|
|
|
namespace RhSolutions.Api.Services;
|
2023-09-19 14:56:55 +03:00
|
|
|
|
|
|
|
|
|
public class ProductQueryModifierFactory
|
|
|
|
|
{
|
2023-09-29 11:20:05 +03:00
|
|
|
|
public IProductQueryModifier GetModifier(string productTypeName)
|
|
|
|
|
{
|
|
|
|
|
switch (productTypeName)
|
|
|
|
|
{
|
|
|
|
|
case "Монтажная гильза":
|
|
|
|
|
return new SleeveQueryModifier();
|
|
|
|
|
case "Тройник RAUTITAN":
|
|
|
|
|
return new TPieceQueryModifier();
|
2023-10-01 22:15:01 +03:00
|
|
|
|
case "Переходник на наружную резьбу":
|
|
|
|
|
return new AdapterExternalModifier();
|
|
|
|
|
case "Переходник на внутреннюю резьбу":
|
|
|
|
|
return new AdapterInternalModifier();
|
|
|
|
|
case "Переходник с накидной гайкой":
|
|
|
|
|
return new AdapterScrewcapModifier();
|
2023-10-01 22:14:47 +03:00
|
|
|
|
case "Муфта соединительная":
|
|
|
|
|
return new CouplingModifier();
|
2023-09-29 11:20:05 +03:00
|
|
|
|
case "Flex":
|
|
|
|
|
return new FlexPipeQueryModifier();
|
|
|
|
|
case "Stabil":
|
|
|
|
|
return new StabilPipeQueryModifier();
|
2023-09-29 16:25:28 +03:00
|
|
|
|
case "Black":
|
|
|
|
|
return new BlackPipeQueryModifier();
|
2023-09-29 11:20:05 +03:00
|
|
|
|
default:
|
|
|
|
|
return new BypassQueryModifier();
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-09-19 14:56:55 +03:00
|
|
|
|
}
|