26 lines
742 B
C#
26 lines
742 B
C#
|
namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;
|
|||
|
|
|||
|
public class TPiece : DrinkingWaterHeatingFitting
|
|||
|
{
|
|||
|
protected override string _title => "Тройник RAUTITAN -PLATINUM";
|
|||
|
|
|||
|
protected override string? BuildRhSolutionsName(string query)
|
|||
|
{
|
|||
|
var diameters = _diameter.Matches(query)
|
|||
|
.Select(match => match.Groups["Diameter"].Value)
|
|||
|
.ToArray();
|
|||
|
if (diameters.Length == 1)
|
|||
|
{
|
|||
|
return $"{_title} {diameters[0]}-{diameters[0]}-{diameters[0]}";
|
|||
|
}
|
|||
|
else if (diameters.Length >= 3)
|
|||
|
{
|
|||
|
return $"{_title} {diameters[0]}-{diameters[1]}-{diameters[2]}";
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return null;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|