summaryrefslogtreecommitdiff
path: root/RhSolutions.Api/Services/ThreadTPieceExternal.cs
blob: 5515c6b8eac8ca34fedd67fa8033d7db2416e5e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

using System.Text.RegularExpressions;

namespace RhSolutions.Api.Services;

public class ThreadTPieceExternal : ThreadTPieceWall
{	
	protected override string ConstructName(MatchCollection diameters, Match thread)
	{
		Capture t = thread.Groups["Thread"].Captures.First();
		if (diameters.Count == 1)		
		{
			return $"Тройник RAUTITAN с наружной резьбой {diameters[0]}-{diameters[0]}-R {t}";
		}
		else
		{
			return $"Тройник RAUTITAN с наружной резьбой {diameters[0]}-{diameters[1]}-R {t}";
		}
	}	
}