summaryrefslogtreecommitdiff
path: root/RhSolutions.QueryModifiers/DrinkingWaterHeatingFittings/ThreadElbowWallExternal.cs
blob: 47c4b07f48524fbcafa8e36b00f3356e4c1b67ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;

public class ThreadElbowWallExternal : DrinkingWaterHeatingFitting
{
	protected override string _title => "Угольник настенный с наружной резьбой";
	protected override string? BuildRhSolutionsName(string query)
	{
		var diameterMatch = _diameter.Match(query);
		if (!diameterMatch.Success)
		{
			return null;
		}
		var threadMatch = _thread.Match(query);
		if (!threadMatch.Success)
		{
			return null;
		}
		string diameter = diameterMatch.Groups["Diameter"].Value;
		string thread = threadMatch.Groups["Thread"].Value;
		return $"{_title} {diameter}-R {thread}";
	}
}