0
0
RhSolutions-Api/RhSolutions.Api/Services/ProductQueryModifierFactory.cs

32 lines
985 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace RhSolutions.Api.Services;
public class ProductQueryModifierFactory
{
public IProductQueryModifier GetModifier(string productTypeName)
{
switch (productTypeName)
{
case "Монтажная гильза":
return new SleeveQueryModifier();
case "Тройник RAUTITAN":
return new TPieceQueryModifier();
case "Переходник на наружную резьбу":
return new AdapterExternalModifier();
case "Переходник на внутреннюю резьбу":
return new AdapterInternalModifier();
case "Переходник с накидной гайкой":
return new AdapterScrewcapModifier();
case "Муфта соединительная":
return new CouplingModifier();
case "Flex":
return new FlexPipeQueryModifier();
case "Stabil":
return new StabilPipeQueryModifier();
case "Black":
return new BlackPipeQueryModifier();
default:
return new BypassQueryModifier();
}
}
}