23 lines
671 B
C#
23 lines
671 B
C#
|
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}";
|
|||
|
}
|
|||
|
}
|