summaryrefslogtreecommitdiff
path: root/RhSolutions.Api/Services/ProductQueryModifierFactory.cs
blob: 46c035b72b4520e946e92ed776d5a60fb0b1dcb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace RhSolutions.Api.Services;

public class ProductQueryModifierFactory
{
	public IProductQueryModifier GetModifier(string productTypeName)
	{
		switch (productTypeName)
		{
			case "Монтажная гильза":
				return new SleeveQueryModifier();
			case "Тройник RAUTITAN":
				return new TPieceQueryModifier();
			case "Flex":
				return new FlexPipeQueryModifier();
			case "Stabil":
				return new StabilPipeQueryModifier();
			default:
				return new BypassQueryModifier();
		}
	}
}