0
0
RhSolutions-Api/RhSolutions.QueryModifiers/DrinkingWaterHeatingFittings/SupportingClip.cs

21 lines
547 B
C#
Raw Normal View History

2023-10-14 13:59:30 +03:00
namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;
public class SupportingClip : DrinkingWaterHeatingFitting
{
2023-10-14 14:41:50 +03:00
protected override string _title => "Фиксирующий желоб для ПЭ-трубы";
protected override string? BuildRhSolutionsName(string query)
{
var diameterMatch = _diameter.Match(query);
if (diameterMatch.Success)
{
string diameter = diameterMatch.Groups["Diameter"].Value;
if (diameter == "16")
{
diameter += "/17";
}
return $"{_title} {diameter}";
}
return null;
}
2023-10-14 13:59:30 +03:00
}